WHAT IS RUNNABLE STATE?
Runnable state : Rub able state means that the thread is ready for execution and it waiting for the availability of the processor. Thread has joined the queue of threads that are waiting for execution. If all threads have equal priority then they are given time slots for execution in round rooming fashion that is fast come fast surp manner.
However if you want a thread to a relinquishing control to another thread of equal priority before its turn common we can do by using yield method.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment