Introduction (เคชเคฐเคฟเคเคฏ)
เคเคฌ เคญเฅ เคเคช computer เคฎเฅเค เคเฅเค program run เคเคฐเคคเฅ เคนเฅเค, เคคเฅ เคตเคน เคธเคฟเคฐเฅเคซ program เคจเคนเฅเค เคฐเคนเคคเคพ โ
เคตเคน เคเค Process เคฌเคจ เคเคพเคคเคพ เคนเฅเฅค
Program = passive (static file)
Process = active (running program)
Process เคเฅเคฏเคพ เคนเฅเคคเคพ เคนเฅ
Process เคเค program เคเคพ execution เคนเฅเคคเคพ เคนเฅเฅค
เคฏเคพเคจเฅ เคเคฌ program memory เคฎเฅเค load เคนเฅเคเคฐ run เคนเฅเคคเคพ เคนเฅ, เคคเฅ เคเคธเฅ process เคเคนเคคเฅ เคนเฅเคเฅค
Simple Definition
Process = Program in execution
Program vs Process (Important)
| Program | Process |
|---|---|
| Static (file) | Dynamic (running) |
| Disk เคฎเฅเค stored | Memory เคฎเฅเค execute |
| Passive | Active |
Process Memory Layout (เคฌเคนเฅเคค important)
เคเค process memory เคฎเฅเค เค เคฒเค-เค เคฒเค เคญเคพเคเฅเค เคฎเฅเค divide เคนเฅเคคเคพ เคนเฅ:

1. Text Section
- Program code (instructions)
2. Data Section
- Global variables
3. Heap
- Dynamic memory allocation
4. Stack
- Function calls, local variables
Process States (Life Cycle)
Process execution เคเฅ เคฆเฅเคฐเคพเคจ เค เคฒเค-เค เคฒเค states เคฎเฅเค เคเคพเคคเคพ เคนเฅ:

1. New (Creation State)
- เคเคฌ process เคชเคนเคฒเฅ เคฌเคพเคฐ create เคนเฅเคคเคพ เคนเฅ
- OS process เคเฅ เคฒเคฟเค resources allocate เคเคฐเคคเคพ เคนเฅ
- เค เคญเฅ process execution เคถเฅเคฐเฅ เคจเคนเฅเค เคนเฅเค เคนเฅ
Example:
เคเคชเคจเฅ program run เคเคฟเคฏเคพ โ process create เคนเฅเค
2. Ready (Ready Queue State)
- Process ready เคนเฅ execution เคเฅ เคฒเคฟเค
- เคฒเฅเคเคฟเคจ CPU available เคจเคนเฅเค เคนเฅ
- Process ready queue เคฎเฅเค wait เคเคฐเคคเคพ เคนเฅ
Important:
เคฏเคนเคพเค process wait เคเคฐเคคเคพ เคนเฅ CPU เคเฅ เคฒเคฟเค, I/O เคเฅ เคฒเคฟเค เคจเคนเฅเค
Example:
Multiple apps open เคนเฅเค โ เคธเคญเฅ ready queue เคฎเฅเค
3. Running (Execution State)
- Process เคเฅ CPU เคฎเคฟเคฒ เคเคฏเคพ
- เค เคฌ process actively execute เคนเฅ เคฐเคนเคพ เคนเฅ
เคเฅเคตเคฒ เคเค process เคเค เคธเคฎเคฏ เคฎเฅเค CPU use เคเคฐเคคเคพ เคนเฅ
Example:
เคเคชเคเคพ browser เค
เคญเฅ active เคนเฅ โ running state
4. Waiting (Blocked State)
- Process CPU เคเฅเคกเคผเคเคฐ I/O operation เคเฅ เคฒเคฟเค wait เคเคฐเคคเคพ เคนเฅ
- เคเฅเคธเฅ file read, keyboard input
Example:
Program data load เคนเฅเคจเฅ เคเคพ เคเคเคคเคเคพเคฐ เคเคฐ เคฐเคนเคพ เคนเฅ
5. Terminated (Exit State)
- Process เคเคพ execution complete เคนเฅ เคเคฏเคพ
- OS เคเคธเคเฅ resources release เคเคฐ เคฆเฅเคคเคพ เคนเฅ
Example:
Program close เคนเฅ เคเคฏเคพ
Process Control Block (PCB)
PCB เคเค data structure เคนเฅ เคเฅ OS maintain เคเคฐเคคเคพ เคนเฅเฅค
เคเคธเคฎเฅเค process เคเฅ เคธเคพเคฐเฅ information เคนเฅเคคเฅ เคนเฅ:
- Process ID
- Process state
- CPU registers
- Memory information
- Scheduling information
Process Operations
OS process เคชเคฐ เคเค operations perform เคเคฐเคคเคพ เคนเฅ:
- Process creation
- Process termination
- Process suspension
- Process resumption
Example (เคธเคฎเคเคจเฅ เคเฅ เคฒเคฟเค)
เคฎเคพเคจ เคฒเฅ เคเคช browser open เคเคฐเคคเฅ เคนเฅเค:
- Browser program โ memory เคฎเฅเค load เคนเฅเค
- Process เคฌเคจเคพ
- CPU เคเคธเฅ execute เคเคฐ เคฐเคนเคพ เคนเฅ
เค เคฌ browser เคเค process เคนเฅ
Key Points
- Process = running program
- OS process เคเฅ manage เคเคฐเคคเคพ เคนเฅ
- PCB เคฌเคนเฅเคค important concept เคนเฅ
- Process states exam เคฎเฅเค เคชเฅเคเคพ เคเคพเคคเคพ เคนเฅ
Conclusion
Process Concept Operating System เคเคพ foundation เคนเฅเฅค
เคฏเคน เคธเคฎเคเคจเคพ เคเคฐเฅเคฐเฅ เคนเฅ เคเคฟ program execution เคเฅเคธเฅ เคนเฅเคคเคพ เคนเฅ เคเคฐ OS เคเคธเฅ เคเฅเคธเฅ manage เคเคฐเคคเคพ เคนเฅเฅค