Day 01Part 18- Operating system- Process State Diagram new ready running waiting and termination

Day 01Part 18- Operating system- Process State Diagram new ready running waiting and termination



play-rounded-fill play-rounded-outline play-sharp-fill play-sharp-outline
pause-sharp-outline pause-sharp-fill pause-rounded-outline pause-rounded-fill
00:00

In operating systems, a process state diagram illustrates the various stages a process undergoes during its lifecycle. Understanding these states is crucial for grasping how an operating system manages and schedules processes.

Primary Process States:

  1. New: The process is being created.

  2. Ready: The process is prepared to run and is waiting for CPU allocation.

  3. Running: The process is currently executing instructions on the CPU.

  4. Waiting (Blocked): The process cannot proceed until a specific event occurs (e.g., I/O completion).

  5. Terminated: The process has finished execution and is awaiting removal from memory.

Process State Transitions:

  • New → Ready: After creation, the process moves to the ready state, awaiting CPU time.

  • Ready → Running: The scheduler assigns CPU to the process, transitioning it to running.

  • Running → Waiting: If the process requires I/O or an event, it moves to waiting.

  • Waiting → Ready: Once the event is resolved, the process returns to ready.

  • Running → Terminated: Upon completion, the process terminates.

  • Running → Ready: In preemptive multitasking, a process may return to ready if interrupted.

These states and transitions enable the operating system to manage multiple processes efficiently, ensuring optimal resource utilization and system performance.

For a visual representation and more details, consider this resource:

Contents [hide]

Day 01Part 18- Operating system- Process State Diagram new ready running waiting and termination

OPERATING SYSTEM Lecture Notes On

Operating System



Leave a Reply

Your email address will not be published. Required fields are marked *

error: