Difference between preemptive scheduling and time slicing in Java


Preemptive scheduling and time slicing in Java

Next question>>
Preemptive scheduling and time slicing in Java - April 02, 2009 at 17:00 PM by Vidya Sagar

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.

preemptive scheduling and time slicing - July 31, 2009 at 14:00 PM by Amit Satpute

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, then 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..

Next question>>

Also read     

What are Native methods in Java?

Answer: Java applications can call code written in C, C++, or assembler. This is sometimes done.........  

Explain the impact of private constructor.

Answer: Private Constructors can't be access from any derived classes neither from another class......  

What are daemon threads?

Answer: Threads that work in the background to support the runtime environment are called daemon threads.....  

Why do we need wrapper classes?

Answer: Wrapper classes are used to be able to use the primitive datatypes as objects........  

How does thread synchronization occurs inside a monitor?

Answer: A Monitor defines a lock and condition variables for managing concurrent access to shared data.......  

What causes the "No suitable driver" error?

Answer - Failure to load the appropriate JDBC driver before giving a call to .....  

Interview questions
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us