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


Please Help Members By Posting Answers For Below Questions

what are RemoteObjects?

2466


Write a singleton program?

778


What are the different methods of identifying an object?

774


How to pass parameters in RMI?

1958


What is a clone?

781


What is meant by method chaining?

878


What is the difference between long.class and long.type?

768


What value does read() return when it has reached the end of a file?

744


Which containers use a border layout as their default layout?

833


Do I have to use jsps with my application?

752


When a thread blocks on i/o?

776


what is a non-repeatable read?

2030


Have you used threads in Servelet?

2205


What state does a thread enter when it terminates its processing?

811


What is Stream Tokenizer?

1951