COMPUTER SCIENCE AND ENGINEERING
OPERATING SYSTEM
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
process can be paused by system
|
|
process cannot be halted once execution begins
|
|
process has high priority
|
|
process is short
|
Detailed explanation-1: -When a higher priority process becomes dispatchable, the kernel interrupts its computation and forces the context switch, preempting the currently running process. A process can be preempted at any time if the kernel finds that a higher-priority process is now dispatchable.
Detailed explanation-2: -In computing, preemption is the act of temporarily interrupting an executing task, with the intention of resuming it at a later time. This interrupt is done by an external scheduler with no assistance or cooperation from the task.
Detailed explanation-3: -Overview. The preemption doctrine refers to the idea that a higher authority of law will displace the law of a lower authority of law when the two authorities come into conflict.
Detailed explanation-4: -Preemption is temporarily interrupting an executing task and later resuming it. For example, if a process P1 is using a resource and a high priority process P2 requests for the resource, process P1 is stopped and the resources are allocated to P2.