1
What is an Operating System ★★★★★
Operating System
An operating system is system software that manages computer hardware and provides services to programs. Examples: Windows, Linux, macOS, Android.
The OS is the layer between programs and hardware
Main functions: process management, memory management, file system management, device (I/O) management, security and protection, user interface.
| Type | Idea | Example |
|---|---|---|
| Batch | Jobs grouped and run without interaction | Early mainframes |
| Multiprogramming | Several programs in memory, CPU switches when one waits for I/O | — |
| Time-sharing (multitasking) | CPU time is sliced between users/programs | Unix, Windows |
| Real-time | Must respond within a strict deadline | Air-bag controller, RTOS |
| Distributed | Many computers act like one system | Cluster systems |
Q & A
- What is the kernel?
The core part of the OS that runs in privileged mode and directly controls CPU, memory and devices. - Monolithic vs microkernel?
Monolithic: all services (drivers, file system) run inside the kernel, fast (Linux). Microkernel: only minimal services in the kernel, the rest in user space, more stable and secure but slower (Minix, QNX).