Interview Questions

Are you aware of preemptive scheduling and time slicing?

Java Interview Questions and Answers (part 4)


(Continued from previous question...)

23. Are you aware of preemptive scheduling and time slicing?

In preemptive scheduling, the highest priority thread executes until it enters into the waiting or dead state.

In time slicing, a thread executes for a certain predefined time and then enters runnable pool. Than thread can enter running state when selected by thread scheduler.

(Continued on next question...)

Other Interview Questions