What is the difference between preemptive scheduling and time slicing?

What is the difference between preemptive scheduling and time slicing?

Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.
However, in preemptive scheduling a task with a higher priority interrupts a task with a lower priority and executes itself.
Java serializable Interface - What is serializable Interface?
Java serializable Interface - If we want to transfer data over a network then it needs to be serialized. Objects cannot be transferred as they are...
How does thread synchronization occurs inside a monitor?
Java thread synchronization - A Monitor defines a lock and condition variables for managing concurrent access to shared data...
Difference between AWT and Swing
Java Swing - Classes in swing are not OS dependent. They don’t create peer components, so they are light weight unlike AWT...
Post your comment