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 is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What event results from the clicking of a button?
Will the general public have access to the infobus apis?
Do we need to override service() method
whats is mean by tiles in struts
what is a non-repeatable read?
What is a policy?
What is the difference between the string and stringbuffer classes?
Explain the different types of memory used by jvm?
What is the argument type of a programs main() method?
What are various types of class loaders used by jvm?
What is the difference between the font and fontmetrics classes?
Explain about thread synchronization inside a monitor?
What modifiers may be used with an interface declaration?
Which javutil classes and interfaces support event handling?