---
title: "What is the difference between preemptive scheduling and time slicing?"  
description: "What is the difference between preemptive scheduling and time slicing?"  
author: "Anonymous User"  
published: 2015-05-05  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/2488/what-is-the-difference-between-preemptive-scheduling-and-time-slicing  
category: "java"  
tags: ["java", "multiple threading"]  
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 Anonymous User

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/2488/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.
