Study Atlas › Computer Science › Systems

Operating systems: processes, scheduling and memory

Software that manages hardware and gives programs processes, files, memory and devices.

Edited by Alex C, EduAlx · Sources cited below

Explanation

Processes are isolated running programs; threads share memory. Schedulers (round robin, priority, Linux CFS) share the CPU. Virtual memory with paging gives each process its own address space. Unix (Thompson and Ritchie, 1969) shaped modern OSes; Linux (Torvalds, 1991) runs most servers and Android.

Example

Opening 20 browser tabs: the OS pages less-used memory and time-slices the CPU among processes.

How it works, step by step

  1. Process is created (fork/exec)
  2. Scheduler gives it CPU time slices
  3. Virtual addresses translate to physical via page tables
  4. System calls request OS services
  5. Process exits; resources are freed

Open the interactive page with diagrams →

People behind it

References

  1. D. M. Ritchie, K. Thompson, Commun. ACM 1974, 17, 365–375.

Textbooks

Related topics

Concurrency: deadlock and synchronisationCloud computingFile systems and storageVirtualisation and containersVon Neumann architectureRelational databases and SQLBoolean logic and digital circuitsComputer networks and the TCP/IP modelP versus NPWorld Wide Web, HTTP and HTML