Semester 3Operating Systems
Multiprogramming
This is when the CPU keep multiple programs in memory so when one program waits for some I/O or something, other program can be executed.
Context switching comes as a requirement of this.
| Term | What's actually happening |
|---|---|
| Uniprogramming | One program at a time; CPU idles during I/O |
| Multiprogramming | Several programs resident; CPU switched on blocking to maximize utilization |
| Multitasking / time-sharing | CPU preempted on a timer, switching rapidly for interactive responsiveness |
| Multiprocessing | Multiple CPUs/cores executing in genuine parallel — a hardware property, not a scheduling policy |
| Multithreading | Multiple threads of execution inside one process |