GkSeries.com

Q.

A thread becomes not runnable when

[A] its sleep method is invoked
[B] the program terminates
[C] a network connection is established
[D] an event occurs
Answer & Explanation
Option: [A]

A thread becomes not runnable when any of the following conditions satisfied:

(i) If sleep method is invoked

(ii) The thread calls the wait method to satisfy some specific conditions

(iv) The thread is blocking on I/O.

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Please share this page

Click Here to Read more questions

Teacher Eligibility Test