tags: os process scheduler is_child_of: process
Process table
A process table is a data structure used by scheduler to store process information and state.
It has process information entries, also known as process control block. This process control block contains information about:
- Process management
- Registers
- Program counter
- Program status word
- Process id
- Stack
- Process group
- Signals
- and so on.
- Memory management
- Pointer to text segment
- Pointer to data segment
- Pointer to stack segment
- File management
- File descriptors
- Root directory
- Working directory
- User ID
- Group ID
Bonus:
/proc
directory in Linux machine, we can see information stored about each process in user program space. Commands such asps
uses this information to show the process. However,ps
also uses information from process table residing in kernel memory.