Featured Post

NoSQL use cases

Here are a simple summary of use cases for Cassandra, MongoDB and Redis MongoDB Storing Log Data Speed is the primary perfor...

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