Struggling to work out the difference between a process control block and a process table.
A process table as far as I can see is a table that stores what was the last 'processed' instruction, and what is next in that queue?
As far as I can see a process control block seems to do the same?
Can someone clarify this to me please?
The process table is a data structure maintained by the operating system to facilitate context switching and scheduling, and other activities discussed later.
A process control block (PCB) is a data structure used by computer operating systems to store all the information about a process. It is also known as a process descriptor. When a process is created (initialized or installed), the operating system creates a corresponding process control block.
PCB(Process Control Block) contains Page Table along with other info, and PCB is in system space.
The Process Table (PT) contains an entry for each process present in the system. The entry is created when the process is created by a Fork system call. Each entry contains several fields that stores all the information pertaining to a single process.
A process control block (pcb) contains information about the process, I.e. registers, quantum, priority, etc.
The process table is an array of pcb's.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With