Computer scienceLearning library

Operating systems

Understand how operating systems manage CPU time, memory, concurrency, files, and devices.

Beginner19 chapters14 practice questions5 references
Start coursePractise questions

Get an in-app notice when new lessons or practice are added.

19 chapters across 5 modules

Course chapters

Explore all 19 chapters in any order. Each chapter has learning goals, a practice prompt, and a primary reference; expanded reading pages are linked from their chapter titles.

01 · Execution and processes4 chapters
  1. The operating-system abstraction

    • Separate a program, process, kernel, and system call

    Practice: Trace a program reading a file through the kernel.

    Read the primary referenceLesson guide · Ready
  2. Processes and context switching

    Understand what the operating system schedules and which state must be preserved.

    • Explain saved execution state and isolation

    Practice: Compare two processes that run the same executable.

    Read the primary referenceExpanded reading · Ready
  3. Scheduling

    • Reason about response time, throughput, and fairness

    Practice: Simulate a short queue under two scheduling policies.

    Read the primary referenceLesson guide · Ready
  4. Threads and shared state

    • Distinguish shared address space from independent execution state

    Practice: Identify which data two threads share.

    Read the primary referenceLesson guide · Ready
02 · Memory management4 chapters
  1. Address spaces and allocation

    • Distinguish virtual addresses and physical memory

    Practice: Draw a process address space and describe allocation lifetimes.

    Read the primary referenceLesson guide · Ready
  2. Paging and translation

    • Trace page-number and offset translation conceptually

    Practice: Translate a small virtual address with a sample page table.

    Read the primary referenceLesson guide · Ready
  3. Page faults and replacement

    • Explain demand paging and replacement policy tradeoffs

    Practice: Simulate accesses with a limited number of frames.

    Read the primary referenceLesson guide · Ready
  4. Memory safety foundations

    • Recognize invalid access and lifetime mistakes

    Practice: Describe a use-after-free and a safer ownership choice.

    Read the primary referenceLesson guide · Ready
03 · Concurrency4 chapters
  1. Race conditions

    Reason about shared updates by tracing operations, not by assuming source lines are atomic.

    • Explain why a compound update may not be atomic

    Practice: Interleave two increments and show a lost update.

    Read the primary referenceExpanded reading · Ready
  2. Locks and critical sections

    • Define the state protected by a lock

    Practice: Choose a lock boundary for a shared queue.

    Read the primary referenceLesson guide · Ready
  3. Condition variables and coordination

    • Wait for a state predicate rather than relying on timing

    Practice: Sketch a producer-consumer protocol.

    Read the primary referenceLesson guide · Ready
  4. Deadlocks

    • Identify circular waiting and compare prevention approaches

    Practice: Analyze a two-lock ordering failure.

    Read the primary referenceLesson guide · Ready
04 · Persistence and I/O4 chapters
  1. Files and directories

    • Distinguish names, metadata, handles, and contents

    Practice: Trace opening, reading, and closing a file.

    Read the primary referenceLesson guide · Ready
  2. File-system implementation

    • Describe blocks, metadata, caching, and free-space management

    Practice: Map a tiny file to simplified storage structures.

    Read the primary referenceLesson guide · Ready
  3. Crash consistency

    • Explain why interrupted updates require recovery mechanisms

    Practice: Compare a partial update with a journaled transaction.

    Read the primary referenceLesson guide · Ready
  4. Mini project: system observation

    • Connect process, memory, and I/O behavior to measurements

    Practice: Investigate a local program using read-only system tools.

    Read the primary referenceLesson guide · Ready
05 · Isolation and observability extensions3 chapters
  1. System-call boundaries

    • Explain the transition between user operations and kernel services

    Practice: Trace a file read across the user-kernel boundary.

    Read the primary referenceLesson guide · Ready
  2. Virtual machines and containers

    • Compare kernel sharing, resource isolation, and virtualized hardware

    Practice: Identify what changes when moving a process into a container.

    Read the primary referenceLesson guide · Ready
  3. Performance diagnosis

    • Separate CPU saturation, memory pressure, and I/O waiting

    Practice: Create a hypothesis-driven investigation of a slow local program.

    Read the primary referenceLesson guide · Ready

Learn it. Check it. Try again.

14 original questions with worked explanations and source references. Filter by difficulty, revisit mistakes, and save your attempt as you go.

Open Operating systems practice

In-depth study guide

Follow the subject from its foundations through worked examples and practice. Each guide includes its scope, version assumptions, solutions, and sources for further study.

OpenLearning study guideEdition 2026.12

Operating systems, from processes to persistence

A substantial original guide to processes, scheduling, virtual memory, concurrency, files, crash behavior, I/O, isolation, and resource-aware programs.

pages
80
chapters
14
diagrams
14
exercises with solutions
28

7,024 words of explanations and practice · 16 worked examples · 14 review questions

Improve this guide on GitHubOriginal text · CC BY-SA 4.0

Browse all study guides

Books & references

Free reading at the publisher or author’s site. External materials keep their own licenses.