0
0
Operating Systemsknowledge~10 mins

What is a process in Operating Systems - Visual Explanation

Choose your learning style9 modes available
Concept Flow - What is a process
Start Program
Load Program into Memory
Create Process
Process Executes Instructions
Process Uses CPU & Resources
Process Completes or Waits
Process Ends or Suspends
A process starts when a program is loaded into memory, then it runs instructions using CPU and resources until it finishes or waits.
Execution Sample
Operating Systems
1. Load program
2. Create process
3. Execute instructions
4. Use CPU
5. Finish or wait
This shows the steps from loading a program to running it as a process.
Analysis Table
StepActionResultProcess State
1Load program into memoryProgram code readyNot running
2Create processProcess created with IDReady
3Execute instructionsCPU starts running processRunning
4Process uses CPU and resourcesInstructions processedRunning
5Process waits for inputProcess pausedWaiting
6Process resumesContinues executionRunning
7Process completesProcess endsTerminated
💡 Process ends after completing all instructions or is terminated.
State Tracker
VariableStartAfter Step 2After Step 3After Step 5Final
Process StateNoneReadyRunningWaitingTerminated
CPU Usage0%0%High0%0%
MemoryProgram loadedAllocatedUsedUsedFreed
Key Insights - 2 Insights
Why is a process different from a program?
A program is just code on disk, but a process is the program running with its own state and resources, as shown in execution_table steps 1 and 2.
What happens when a process is waiting?
The process pauses and does not use CPU until it resumes, as seen in execution_table step 5 where state changes to Waiting.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the process state after step 3?
AReady
BRunning
CWaiting
DTerminated
💡 Hint
Check the 'Process State' column at step 3 in the execution_table.
At which step does the process stop using CPU temporarily?
AStep 5
BStep 4
CStep 2
DStep 7
💡 Hint
Look for the step where the process state changes to Waiting in the execution_table.
If the process never waits, which step would be skipped?
AStep 3
BStep 6
CStep 5
DStep 7
💡 Hint
Refer to the execution_table to see which step involves waiting.
Concept Snapshot
A process is a running instance of a program.
It starts when the program is loaded into memory.
The process uses CPU and resources to execute instructions.
It can be in states: Ready, Running, Waiting, or Terminated.
Processes end when they complete or are stopped.
Full Transcript
A process begins when a program is loaded into memory and a process is created. The process then runs instructions using the CPU and other resources. It can be in different states such as Ready, Running, Waiting, or Terminated. When waiting, the process pauses and does not use CPU until it resumes. Finally, the process ends when it completes all instructions or is terminated.