What is the difference between preemptive scheduling and time slicing in java programming?
Answer / Shruti Goswami
Preemptive scheduling allows a higher-priority task to interrupt a lower-priority task, whereas time slicing (also known as cooperative multitasking) requires tasks to relinquish the CPU voluntarily at regular intervals. In Java, the thread scheduling is preemptive.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is stream api in java8?
What is externalizable?
What is the difference between heap memory and stack memory?
Can we have more than one package statement in source file ?
What is integer valueof?
What is constructor and virtual function?
Is list ordered in java?
What is a pattern what is an anti pattern?
Does treeset allow null in java?
Define an applet in java?
How can two threads be made to communicate with each other?
What is the final variable?