What is the difference between preemptive scheduling and time slicing in java programming?



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

Post New Answer

More Core Java Interview Questions

What is stream api in java8?

1 Answers  


What is externalizable?

1 Answers  


What is the difference between heap memory and stack memory?

1 Answers   Aspiring Minds,


Can we have more than one package statement in source file ?

1 Answers  


What is integer valueof?

1 Answers  


What is constructor and virtual function?

5 Answers  


Is list ordered in java?

1 Answers  


What is a pattern what is an anti pattern?

1 Answers  


Does treeset allow null in java?

1 Answers  


Define an applet in java?

1 Answers  


How can two threads be made to communicate with each other?

3 Answers   HCL,


What is the final variable?

2 Answers  


Categories