What are preemptive scheduling and time slicing and what is
the difference between them?
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 |
How to send a request to garbage collector?
Why are my checkboxes not being set from on to off?
What is the difference between a menuitem and a checkboxmenuitem?
Is 'synchronised' a modifier?
How do you iterate in Hashmap?
What is JasperReports?
Difference Between java & javax
5 Answers Sun Microsystems, Wipro,
What is a thread?
What is the use of Semaphore?
what is the difference between System.out.println and out.println in java
difference between sql exception class and sql warning class
What is the infobus?