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 diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

0 Answers  


What is the purpose of the notify() method?

0 Answers  


Is “abc” a primitive value?

0 Answers  


What are the high-level thread states?

1 Answers  


How do u supress the parameters from the displaying in the url?

2 Answers  






What are the types of data passing mechanisams under JMS specification?

1 Answers  


which type of objects reference will be given to client?

0 Answers  


Can we have more than one action servlet?

7 Answers   HP,


what is an isolation level?

0 Answers  


Is 'synchronised' a modifier?

2 Answers   NIIT,


How would you detect a keypress in a jcombobox?

0 Answers  


What is the purpose of the finally clause of a try-catch-finally statement?

0 Answers  


Categories