os2
os2
1. Process Concept
Process: A program in execu on. It includes the program code, current ac vity, and process
control block (PCB).
Process States:
Process ID
Process state
Program counter
CPU registers
Accoun ng info
I/O status
3. Process Scheduling
Long-term Scheduler (Job Scheduler): Selects processes from the job pool.
4. Context Switching
When the CPU switches from one process to another, it saves the current state and loads the saved
state of the new process. This switch is called context switching.
5. Opera ons on Processes
Termina on
7. Threads
Mul threading: Mul ple threads within a process share code, data, and files.