Preemptive scheduling and time slicing

What is the difference between preemptive scheduling and time slicing?

- Preemptive scheduling enables the highest priority task execution until waiting or dead states entered. It also executes, until a higher priority task enters.

- Time slicing allows a task to execute for a stipulated time slice and then reenters the pool of ready tasks. At that time the scheduler determines the executable task, based on the priority and various other tasks.

- If a certain task is running and the scheduling method used is preemptive, and then if there is another task that has a higher priority than the executing task, the executing task is preempted by the higher priority task.

- In time slicing methods, a task executes for a predefined slice of time. After the execution of that task, if there is another task with a higher priority, the scheduler executes the priority task the next depending on priority and other factors.
What is a task's priority and how is it used in scheduling?
What is a task's priority and how is it used in scheduling? - Every task is assigned a priority for execution. The task with the highest priority is executed first...
What is a monitor?
What is a monitor? - The mechanism that Java uses to support synchronization is the monitor...
Use of synchronization keyword
Use of synchronization keyword - A method, declared as synchronized, first attains a lock over an object before beginning an execution...
Post your comment
Discussion Board
interview preparation
It is to good year....
It helped me to increase my knowledge.
Thanks again for this contents
sudhir Kumar giri 10-12-2014