What is waiting state? In what ways a thread can enter into
waiting state?

Answer Posted / sandya

In 3 ways:
1.A Thread can enter the waiting state by invoking it's
sleep() method
2.By blocking on i/o by unsuccessfully attempting to
acquire an object's lock or by invoking an object's wait()
method.
3.It can also enter the waiting state by invoking it's
suspend() method.

Is This Answer Correct ?    27 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are there books about seam?

636


What are the oops concept?

581


how do you Handle Front End Application data against DB with example?

1480


What’s jboss cache in short?

604


What is the difference between RMI registry and OS Agent?

634






Can I run seam with jdk 1.4 and earlier?

561


Do we need to override service() method

1145


Can I use javascript to submit a form?

617


What are transaction attributes?

616


What are the purpose of introspection?

680


What do you know about seam?

602


What is the difference between long.class and long.type?

571


Explain what is orm?

681


What class is used to create Server side object ?

1676


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

1762