An operating system multiplexes hardware while preserving boundaries between programs. The kernel schedules threads on CPUs, maps each process’s virtual addresses to physical memory, mediates device access, and exposes persistent files and network sockets through system calls. User-mode programs receive stable abstractions; the kernel owns the privileged mechanisms that make those abstractions safe enough to share.

A web server makes the boundary concrete. A socket accept operation creates a connection handle, a read copies received bytes into a process buffer, the scheduler runs worker threads, and a write returns a response through the network stack. A blocked disk or network operation lets another runnable thread use the CPU. A bad pointer faults inside one process instead of overwriting the kernel or an unrelated process.

References

7 items under this folder.