Difference between sleep and suspend?

Answer Posted / vikneswaran

following three method to block the thread
1.sleep()
2.suspend()
3.wait()
sleep() its move to waiting state for particular time
for example
Thread.sleep(3000);
but
suspend() method its move to waiting state until called
resume() method.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between object state and behavior?

560


what is Activation Instantinator?

1903


Is the session factory thread safe?

666


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

642


which book is better for jdbc ,servlets and jsp

1642






What is in-memory replication?

551


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

561


What is TL and its use?

1987


What method is invoked to cause an object to begin executing as a separate thread?

566


What is the purpose of the notifyall() method?

601


What do you need to set-up a cluster with jboss?

570


What is the relationship between local interfaces and container-managed relationships?

587


what are RemoteObjects?

2252


How database connectivity in XML is achieved?

1764


How would you detect a keypress in a jcombobox?

669