Process Control Block, Scheduling Algorithms Pre-emptive Flashcards
What is and the purpose of the Process Control Block?
The Process Control Block (PCB) is a data structure used by an operating system to manage processes or threads. The PCB contains information about each process or thread, including its current state, priority level, memory usage, input/output status, and other important information that the operating system needs to manage the process or thread.
Non-Preemptive Algorithm
* Cannot stop the program until the process is completed.
* The currently executing process or thread will continue to hold the resource until it voluntarily releases it or completes its task.
Preemptive Algorithm
* Which program has the highest priority will take the ‘right of way’ (goes first).
* The scheduler can interrupt the currently executing process or thread to allocate the CPU to a higher-priority process or thread