Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

What are preemptive scheduling and time slicing and what is
the difference between them?

What are preemptive scheduling and time slicing and what is the difference between them?..

Answer / prashanth001

Preemptive Scheduling is where one thread continues to
execute till such time its execution has completed or until
a thread of a higher priority comes into existence or the
priority of one of the waiting threads is increased.

Time Slicing is where each thread that is waiting to
execute will share the CPU time equally. One thread will
exeucte for n seconds or milliseconds, then go to the
waiting state again. the CPU scheduler will then determine
which of the other waiting threads will execute next.

Is This Answer Correct ?    11 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

what is the port number of RMI?

2 Answers  

In HashTable I am storing null value..then what is the error it will show

2 Answers   GM General Motors,

Wt is the main difference between Java and Java J2EE and Advanced java?

5 Answers   Wipro,

What is the main functionality of RRL(Remote Reference Layer)?

3 Answers  

Will the general public have access to the infobus apis?

0 Answers  

How many requests can a server fetch at a time?

1 Answers  

How is a java object message delivered to a non-java client?

0 Answers  

What happens when a thread cannot acquire a lock on an object?

0 Answers  

How do you iterate in Hashmap?

1 Answers   HCL, Infotech,

can any one tell me how to learn good coding techniques

3 Answers  

Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

0 Answers  

Different between Struts and Spring? or Why use Spring, if you are already using Struts?

3 Answers   HP,