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
Explain the difference between object state and behavior?
what is Activation Instantinator?
Is the session factory thread safe?
Are enterprise beans allowed to use thread.sleep()?
which book is better for jdbc ,servlets and jsp
What is in-memory replication?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
What is TL and its use?
What method is invoked to cause an object to begin executing as a separate thread?
What is the purpose of the notifyall() method?
What do you need to set-up a cluster with jboss?
What is the relationship between local interfaces and container-managed relationships?
what are RemoteObjects?
How database connectivity in XML is achieved?
How would you detect a keypress in a jcombobox?