Process Management
Process Management
What is a Process?
• Definition: A process is an instance of a program in execution.
• States of a Process:
◦ New: Process is being created.
◦ Ready: Waiting to be assigned CPU time.
◦ Running: Instructions are being executed.
◦ Waiting: Process is waiting for I/O.
◦ Terminated: Process execution is complete.
Process Scheduling
• Goal: Optimize CPU usage and reduce process waiting time.
• Schedulers:
1. Long-term Scheduler: Determines which processes are
admitted.
2. Short-term Scheduler: Allocates CPU to ready processes.
3. Medium-term Scheduler: Temporarily removes processes from
memory.