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 bean? Where can it be used?
How primary key is implemented in Oracle?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
How many times may an objects finalize() method be invoked by the garbage collector?
Difference between DurableSubscription and non- DurableSubscription?
Which textcomponent method is used to set a textcomponent to the read-only state?
Define aop(assepct oriented programing)?
Describe activation process?
What state does a thread enter when it terminates its processing?
What is a session? Can you share a session object between different theads?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
What are the design considerations while making a choice between using interface and abstract class?
Why use POJO when I can use hashmap
For which statements does it make sense to use a label?