Concept Flow - Why process control manages running programs
User starts a program
Shell creates a process
Process runs
Process control manages
Pause
Process ends
This flow shows how process control starts, manages, and ends running programs.
sleep 10 & ps kill %1 ps
| Step | Command | Action | Process State | Output |
|---|---|---|---|---|
| 1 | sleep 10 & | Start sleep in background | Running (background) | Process started with job ID 1 |
| 2 | ps | List processes | Sleep process running | Shows sleep process in list |
| 3 | kill %1 | Send terminate signal to job 1 | Terminating | Job 1 terminated |
| 4 | ps | List processes | Sleep process ended | Sleep process no longer listed |
| Variable | Start | After Step 1 | After Step 3 | Final |
|---|---|---|---|---|
| sleep_process | Not running | Running (background) | Terminated | Ended |
Process control manages running programs by starting, pausing, resuming, and terminating them. In Linux shell, '&' runs a program in background allowing shell to continue. 'kill' command sends signals to control processes. 'ps' lists running processes. Process ends when terminated or completed.