Featured Post

Scalability Techniques

Scalability is about the capability of a system to manage the increase workload of a system without causing qualities impact (i.e. perfo...

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