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
What are the call back methods in entity bean?
What is the purpose of the wait() method?
What are the different algorithms used for clustering?
Are we allowed to change the transaction isolation property in middle of a transaction?
How many times may an objects finalize() method be invoked by the garbage collector?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
What is mdb and what is the special feature of that?
How would you detect a keypress in a jcombobox?
Why a component architecture for the java platform?
What do you know about seam?
Where can I find seam examples and documentation?
When a thread blocks on i/o, what state does it enter?
What is the difference between the font and fontmetrics classes?
What is the purpose of the finally clause of a try-catch-finally statement?
Why does the tag url-encode javascript and mailto links?