Process Control Block, Scheduling Algorithms Pre-emptive Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is and the purpose of the Process Control Block?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Non-Preemptive Algorithm

A

* 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Preemptive Algorithm

A

* 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly