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
Which javutil classes and interfaces support event handling?
What method is invoked to cause an object to begin executing as a separate thread?
Define aop(assepct oriented programing)?
How to implement RMI in Java?
Why use a datasource when you can directly specify a connection details?
What are local interfaces? Describe.
Why do I get a duplicate name error when loading a jar file?
How messaging services are done, before release of JMS?
Describe activation process?
What is chat area? Explain.
What state does a thread enter when it terminates its processing?
What is the difference between ear, jar and war file?
What are the different types of exception?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
What does module-relative mean?