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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the call back methods in entity bean?

538


What is the purpose of the wait() method?

595


What are the different algorithms used for clustering?

524


Are we allowed to change the transaction isolation property in middle of a transaction?

540


How many times may an objects finalize() method be invoked by the garbage collector?

651






How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2533


What is mdb and what is the special feature of that?

548


How would you detect a keypress in a jcombobox?

647


Why a component architecture for the java platform?

550


What do you know about seam?

577


Where can I find seam examples and documentation?

540


When a thread blocks on i/o, what state does it enter?

551


What is the difference between the font and fontmetrics classes?

540


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

535


Why does the tag url-encode javascript and mailto links?

563