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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / anonymous

2 ways.
wait( time ---);
sleep();

Is This Answer Correct ?    6 Yes 7 No

Post New Answer

More Advanced Java Interview Questions

whats is mean by jndi

4 Answers   SolutionNET,


How we set Bean Id when we are creating web application using SpringMVC and Hibernet Integration

1 Answers  


Can I run seam outside of jboss as?

0 Answers  


Differences between applications and applets?

3 Answers  


How task's priority is used in scheduling?

0 Answers   HCL,






Java is fully object oriented languages or not?

0 Answers  


What is the difference between a menuitem and a checkboxmenuitem?

0 Answers  


what is a dirty read?

1 Answers  


Which containers use a border layout as their default layout?

0 Answers  


What is the difference between the font and fontmetrics classes?

0 Answers  


What is the priority of Garbage collector thread?

3 Answers  


What is Introspection?

2 Answers  


Categories