What is the difference between yield(), suspend() and resume() methods

This question is related to Oracle Interview

Showing Answers 1 - 3 of 3 Answers

Bindu

  • Dec 15th, 2006
 

Yield - this method allows one thread to give away the processor to the next thread in the ready queue.suspend - was used to stop thread execution, however this method is depricated in the current API.resume - resumes the suspended thread. this is aslo depricated.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions