Definition
Process Creation
Triggers
Creation Triggers
A process can be created when:
- System Initialisation: Background processes (daemons) started at boot
- User Login: Session process created via shell or GUI
- User Command: Starting an application (text processor, browser)
- Process Spawning: Existing process creates a sub-task, forming a process hierarchy
Steps
Creation Steps
- Assign PID: OS finds available slot in process table
- Allocate Space: Memory segments (Text, Data, Stack) allocated
- Initialise PCB: State set to “New” or “Ready”, registers initialised
- Linkage: Process linked to parent and admitted to ready queue