Featured Post

Event Sourcing Video from Michael Ploed

Event Sourcing I want to share a great video I found few days ago that describes very well what Event Sourcing is.

Friday, May 25, 2012

Thread States

Thread states are these shown below.


Threads are only created by the JVM after starting thread with start() method.


The thread is available to the scheduler, waiting to use the processor.


The thread is using the processor.

Time Waiting

The thread must wait a determinate period before resuming.
Methods that take threads to this state are: sleep(long mill),wait(long mill), join(long timeout)


Threads are wating for a condition to be verified.
Methods that take threads in this state are: wait(), join()


Threads are wating for the availability of an implicit lock (monitor lock) because of synchronized code.


A thread that has finished to work

No comments :

Post a Comment