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 difference between static and non-static with examples?
Difference between new operator and class.forname().newinstance()?
What is the difference between the font and fontmetrics classes?
What is Remote Server?
which type of objects reference will be given to client?
Define the remote object implementation?
Explain the different types of memory used by jvm?
What are the different methods of identifying an object?
What are the benefits of detached objects?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What is message driven beam?
How messaging services are done, before release of JMS?
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
What is the infobus?
Do I have to use jsps with my application?