What are preemptive scheduling and time slicing and what is
the difference between them?



What are preemptive scheduling and time slicing and what is the difference between them?..

Answer / 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

More Advanced Java Interview Questions

How JNDI is used in JMS ?

1 Answers  


what do u mean by java bean??

2 Answers   ADP,


Can we sent objects using Sockets?

0 Answers  


Is jvm a overhead?

0 Answers  


what is Activation Instantinator?

0 Answers  






How many layers are there in RMI and what are they?

1 Answers  


Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

2 Answers   Wipro,


Is System.err.println(""Statement"); is execute the output on console . Example: System.err.println("Hello JAVA");

8 Answers  


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

0 Answers  


Difference between DurableSubscription and non- DurableSubscription?

0 Answers  


Can I use multiple html form elements with the same name?

0 Answers  


what about static?

1 Answers  


Categories