---
title: "What is the difference between preemptive scheduling and time slicing?"  
description: "What is the difference between preemptive scheduling and time slicing?"  
author: "Sumit Kesarwani"  
published: 2014-08-26  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/2017/what-is-the-difference-between-preemptive-scheduling-and-time-slicing  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is the difference between preemptive scheduling and time slicing?

Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence.

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.

## Answers

### Answer by Sumit Kesarwani

Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence.

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.


---

Original Source: https://www.mindstick.com/interview/2017/what-is-the-difference-between-preemptive-scheduling-and-time-slicing

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
