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 proxy pattern?

1 Answers  


What is rmic?

4 Answers  


What is Lock Based Protocol and what is its use?

2 Answers   Wipro,


1) Scenario: I developed my application on local system and everything is perfect and tested. Now on UAT this application is deployed on clustered server environment. They are logical or physically clustered. But application is not working over there.  What is the issue with application?  What are the first things which come in your mind?

1 Answers   L&T,


What is the difference between the ‘font’ and ‘fontmetrics’ class?

0 Answers  






What is multithread synchronizing ?

4 Answers   Sun Microsystems,


Can I have an action without a form?

0 Answers  


What is threadfactory?

0 Answers  


how can u cal servlet from java?

7 Answers  


whats is mean by class.forName() whats the return type of class

3 Answers   SolutionNET,


Where does the session Object stores? If 100 users are connecting to the server. How does it recognize which session belongs to which user?

5 Answers   HCL, Mobillo Venture,


What is bean? Where can it be used?

0 Answers  


Categories