What an Operating System Manages

An operating system coordinates execution, memory, devices, and persistent data so applications can request those resources under defined interfaces.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Follow a program reading a file
  2. Name separate responsibilities
  3. Follow one file load across several resources
  4. Identify which resource explains a bottleneck

Follow a program reading a file

A program supplies a pathname and reads bytes through an operating-system interface. The filesystem interprets the path and a device or cache supplies the bytes. File access in binary mode describes what reaches the application.

Name separate responsibilities

A job running calculations also needs CPU time and memory. Allocating those resources can involve independent decisions. See scheduling queues for how runnable work receives CPU time.[1]

Follow one file load across several resources

A program asks to open a file and read data into memory. The operating system resolves the name, checks permissions, obtains storage bytes when needed and schedules the program's execution. A cached read can reduce device work while still needing access checks and copying. See system calls.

CPU scheduling: gives programs time to execute
Virtual memory: maps process addresses
Filesystem: resolves and retrieves data
Access control: permits or denies the operation

Identify which resource explains a bottleneck

A process waiting for storage can use little CPU despite long elapsed time. A computation with data already in memory may instead run close to a core's limit. Inspect the phase before attributing delay to one resource.

References

  1. Remzi H. Arpaci-Dusseau and Andrea C. Arpaci-Dusseau, Operating Systems: Three Easy Pieces ↩