Please enable JavaScript.
Coggle requires JavaScript to display documents.
Thread - Coggle Diagram
Thread
Lifecycle
Start State
Runnbale State
Wait State
Bock state
Timed Wait
Terminated
Killed by the system
It completed its work
Thread methods
Yield
used when we know that the work
running in the current thread is not so important
Sleep
It makes the thread to sleep
Join
When you call join, thread wait for another thread to complete its work
Inter thread communication
wait
notifiy
notifyall
Synchronized