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 are RemoteObjects?
Write a singleton program?
What are the different methods of identifying an object?
How to pass parameters in RMI?
What is a clone?
What is meant by method chaining?
What is the difference between long.class and long.type?
What value does read() return when it has reached the end of a file?
Which containers use a border layout as their default layout?
Do I have to use jsps with my application?
When a thread blocks on i/o?
what is a non-repeatable read?
Have you used threads in Servelet?
What state does a thread enter when it terminates its processing?
What is Stream Tokenizer?