What are preemptive scheduling and time slicing and what is
the difference between them?
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 |
What if the static modifier is removed from the signature of the main method?
how can u cal servlet from java?
What is thread deadlock? How to resolve thread deadlock?
Write a singleton program?
Is 'synchronised' a modifier?
What is the difference between Super and This Keyword?
How a component can be placed on Windows?
Explain RMI Architecture?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
When a thread terminates its processing, it enters into what state?
What is in-memory replication?
Why won’t the jvm terminate when I close all the application windows?