What are the states associated in the thread?

Answer Posted / s.ramesh

Thread States.

1. RUNNABLE --- When a thread is Processed by CPU
2. BLOCKED --- When a thread is Deadlocked or blocked by
some other resources
3. WAITING --- When a thread is waiting to process
4. TIMED_WAITING -- When a thread is in sleeping
5. Dead --- When a thread is completely processed

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a session? Can you share a session object between different theads?

546


What is JTS?

1857


difference between  ejb,struts,hibernate,spring and jsp

2291


What is the highest-level event class of the event-delegation model?

564


what is a portable component?

1458






If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

559


Can you control when passivation occurs?

591


What’s jboss jbpm?

572


what are getters and setters in Java with examples?

1278


what is a non-repeatable read?

1822


Are enterprise beans allowed to use thread.sleep()?

639


What are JTA/JTS and how they used by client?

1710


What are the different methods of identifying an object?

563


Is the infobus client side only?

598


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

1917