1.

A thread becomes non runnable when?(a) Its stop method is invoked(b) Its sleep method is invoked(c) Its finish method is invoked(d) Its init method is invokedThe question was asked in an international level competition.I would like to ask this question from Multithreading topic in chapter Operating Systems of Computer Fundamentals

Answer» CORRECT ANSWER is (B) Its sleep method is invoked

To explain: A thread becomes Not Runnable when ONE of these events occurs:

•Its sleep method is invoked.

•The thread calls the wait method to wait for a SPECIFIC condition to be satisfied.

•The thread is blocking on I/O.


Discussion

No Comment Found

Related InterviewSolutions