Identify Process States
A process is always in exactly one of five states: New, Ready, Running, Waiting, Terminated. Determine the state transition for each scenario.
Problem
For each system call below, identify what state transition occurs and why:
fork()— a parent process creates a child.read(fd, buf, size)on a blocking socket with no data available.exit(0)— the process finishes its work.time slice expires— the scheduler preempts the running process.- `I/O completion interrupt fires — a device signals data is ready.
Hints
- If a process yields the CPU or blocks, it stops being "Running."
- If a process becomes eligible to run (either newly created or woken from a wait), it goes to "Ready."
- If a process finishes or is killed, it becomes "Terminated."