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 characters may be used as the second character of an identifier, but not as the first character of an identifier?
Can I run seam outside of jboss as?
How will you pass parameters in RMI? Why do you serialize?
How would you detect a keypress in a jcombobox?
why static class in java
Can I import same package/class twice? Will the jvm load the package twice at runtime?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
Why are component architectures useful?
Why do I get a duplicate name error when loading a jar file?
For which statements does it make sense to use a label?
What value does readline() return when it has reached the end of a file?
Is there a guarantee of uniqueness for entity beans?
What is the relation between the infobus and rmi?
How are the elements of a borderlayout organized?
which book is better for jdbc ,servlets and jsp