Operating Systems Roadmap

Follow a 14-week operating systems roadmap covering processes, memory, file systems, and concurrency, with safe lab exercises and an optional OS capstone.

published: reading time: 20 min read author: Geek Workbench updated: November 23, 2026
Quick Summary

Follow a 14-week operating systems roadmap covering processes, memory, file systems, and concurrency, with safe lab exercises and an optional OS capstone.

Operating Systems Roadmap

Operating systems schedule processes, manage memory, and define how programs reach files and devices. This roadmap moves from computing fundamentals to OS internals through short readings, simulations, and labs. It assumes basic programming experience, but no systems background.

By the end, you will have traced system calls, compared scheduling and memory policies, simulated file-system recovery, and built a bounded thread pool. The practical exercises help connect the concepts to an operating system you can inspect.

Before You Start

You are ready to start if you can:

  • Write and run a small program with variables, functions, loops, and conditionals.
  • Use a terminal to move between directories, run a program, and inspect its output.
  • Explain the difference between working memory and a file saved to disk.

You do not need prior systems programming experience. If one of these checks is unfamiliar, spend a few days reviewing basic programming and command-line use before starting. Python is enough for most simulations; the roadmap marks the exercises that use C, Linux interfaces, or x86 assembly.

Lab Setup and Topic Scope

Use a disposable Linux virtual machine for Linux-specific labs. Take a snapshot before privileged experiments such as system-wide tracing, namespace or security-control changes, and kernel modules. Commands that need sudo or packet-capture capabilities can affect the VM or collect sensitive traffic, so use a narrow filter and keep captures local. Do not point crash or file-system experiments at your host disk. Run bootloader and kernel projects in QEMU with a virtual disk; do not boot an experimental kernel on your everyday machine.

Scheduling, virtual memory, isolation, deadlock, and file-system recovery are general operating-systems concepts. fork and exec are POSIX interfaces; /proc, perf, namespaces, cgroups, seccomp, and Linux kernel modules are Linux-specific. The x86 instruction-set and assembly exercises, including GDT and IDT setup, apply to x86 systems. Other architectures use different instructions and boot details. Treat those examples as platform-specific labs, not rules that apply to every OS.

The Roadmap

1

๐Ÿ“š Computing Fundamentals

How Computers Work CPU, memory, I/O devices, and the bus architecture that connects them
Number Systems & Data Representation Binary, hexadecimal, signed integers, floating-point, and character encodings
Boolean Logic & Gates AND, OR, NOT gates and how they combine into arithmetic logic units
Instruction Set Architecture RISC vs CISC, x86 vs ARM, opcodes, operands, and instruction formats
Assembly Language Basics Reading and writing simple programs in x86 or ARM assembly
Building a Simple CPU Simulator Implement fetch-decode-execute cycle in code
โ†“
2

๐Ÿง  Operating System Basics

What Is an Operating System? Kernel, shell, system calls, and the layer between hardware and software
OS History & Evolution From batch processing to Unix, Windows, and modern distributed OS
Kernel Architecture Monolithic, microkernel, and hybrid kernel design trade-offs
System Calls Interface How user programs request kernel services (open, read, write, fork, exec)
Boot Process BIOS/UEFI, bootloader, kernel initialization, and user space startup
Virtualization Basics Hypervisors, VMs, containers, and OS-level virtualization
โ†“
3

โšก Process & Thread Management

Process Concept Process states, PCB (Process Control Block), and process creation
Process Scheduling Schedulers (long/short/medium term), scheduling algorithms, and context switching
Threads & Lightweight Processes User threads vs kernel threads, thread pools, and thread models
Fork & Exec System Calls Process creation, duplicate address spaces, and program replacement
Process Scheduling Algorithms FCFS, SJF, Round Robin, Priority scheduling, and multi-level feedback queues
CPU Affinity & Real-Time Binding processes to cores, real-time scheduling classes, and latency considerations
โ†“
4

๐Ÿ’พ Memory Management

Memory Hierarchy Registers, cache (L1/L2/L3), RAM, and storage โ€” speed vs capacity trade-offs
Logical vs Physical Address Space Address translation, segmentation, and the OS view of memory
Paging & Page Tables Pages, frames, page tables, TLB (Translation Lookaside Buffer), and page faults
Virtual Memory Demand paging, page replacement algorithms (LRU, Clock, Working Set)
Memory Allocation Kernel memory allocators, slab allocation, buddy system, and memory zones
Cache & Buffer Management CPU cache architecture, cache coherence, buffer cache, and write policies
โ†“
5

๐Ÿ—„๏ธ File Systems & Storage

File System Abstraction Files, directories, inodes, and the hierarchical file system concept
Disk Structure & Layout CHS addressing, LBA, disk geometry, partitions, and MBR/GPT
File Allocation Methods Contiguous, linked, and indexed allocation; FAT, ext2/3/4, NTFS internals
Directory Implementation Linear search, hash tables, B-trees for directories, and path resolution
Journaling & Crash Recovery Write-ahead logging, journal checksum, and recovery from system crashes
Virtual File Systems (VFS) How Linux abstracts multiple file systems through a common interface
โ†“
6

๐Ÿ”’ Concurrency & Synchronization

The Concurrency Problem Race conditions, shared mutable state, and why simultaneous access breaks things
Mutexes & Mutex Implementation Mutual exclusion, spinlocks, blocking locks, and kernel mutex internals
Semaphores & Condition Variables Counting semaphores, producer-consumer problem, and CV signaling
Deadlock & Starvation Deadlock conditions (Coffman), prevention strategies, detection & recovery
Readers-Writer Locks Shared vs exclusive access, read-preferring vs write-preferring variants
Lock-Free Data Structures Atomic operations, CAS (Compare-And-Swap), and concurrent queue implementations
โ†“
7

๐Ÿ“ก Inter-Process Communication

Pipes & Named Pipes (FIFO) Anonymous pipes for related processes, named pipes for unrelated processes
Message Queues POSIX mq_* and System V msg queues, message priorities, and kernel implementation
Shared Memory mmap, shmget/shmat, memory-mapped I/O, and cache coherence challenges
Signals Signal handling, signal masks, sigaction, and async notifications between processes
Sockets & Network IPC Unix domain sockets, TCP/UDP sockets for local and network IPC
โ†“
8

๐ŸŽฎ Device Management

Device Drivers Architecture Character vs block devices, driver layers, and kernel vs user mode drivers
I/O Scheduling Algorithms FCFS, SSTF, SCAN, C-SCAN, and elevator algorithm for disk arm scheduling
Interrupts & Polling Hardware interrupts, IRQ handling, interrupt bottom halves (tasklets, workqueues)
DMA (Direct Memory Access) Bypass CPU for device-memory transfers, DMA buffers, and scatter-gather I/O
Buffer Cache & Page Cache Caching disk blocks in RAM, write-back vs write-through, and sync semantics
โ†“
9

๐ŸŒ Networking & Security

OS Networking Stack TCP/IP implementation, socket buffers (sk_buff), and protocol layers in the kernel
System Call Security Syscall filtering, seccomp, capability-based security, and least privilege
Namespaces & Cgroups Linux container primitives: PID, network, mount, user namespaces for isolation
SELinux & AppArmor Mandatory Access Control (MAC), security policies, and label-based enforcement
User & Group Management UID/GID, privilege escalation, setuid binaries, and PAM authentication
ASLR & Stack Protection Address Space Layout Randomization, stack canaries, and exploit mitigation
โ†“
10

๐Ÿš€ Advanced Topics

Kernel Module Development Writing Linux kernel modules, character drivers, and ioctl interfaces
Performance Profiling perf, ftrace, BCC tools, flame graphs, and analyzing kernel bottlenecks
Distributed OS Concepts Distributed file systems (NFS, GFS2), RPC, and cluster scheduling
Real-Time Operating Systems RTOS concepts, scheduling guarantees, latency bounds, and PREEMPT_RT patch
OS Design Patterns Monolithic vs micro-kernel trade-offs, IPC design, and extensibility
Optional: Build Your Own OS Extended project: boot loader, kernel, scheduler, and file system from scratch; run it in QEMU with a virtual disk

Timeline & Milestones

โฑ๏ธ

Estimated Timeline

Weeks 1โ€“2 Computing fundamentals: how computers work, number systems, Boolean logic, ISA, and assembly. Deliverable: a small CPU simulator or register trace with a few instructions.
Weeks 3โ€“4 OS types, kernel architecture, system calls, boot, and virtualization. In the VM, save a trace from a small process with `strace -f -o syscalls.txt ./program`, then label the Linux-specific observations.
Weeks 5โ€“6 Processes, scheduling, threads, fork/exec, and CPU affinity. Deliverable: a scheduler simulation that compares waiting time and turnaround time for FCFS and Round Robin.
Weeks 7โ€“8 Memory hierarchy, address spaces, paging, virtual memory, and allocation. Deliverable: a page-replacement simulation that reports hits and faults for a fixed reference string.
Weeks 9โ€“10 File abstraction, disk layout, allocation methods, journaling, and VFS. Deliverable: a file-system recovery simulation that checks which writes survive a crash.
Weeks 11โ€“12 Mutexes, semaphores, deadlock, lock-free structures, pipes, messages, signals, and sockets. Deliverable: a bounded thread pool with a fixed worker count and queue limit; test saturation and shutdown.
Weeks 13โ€“14 Drivers, DMA, networking, namespaces, seccomp, kernel modules, and RTOS. Deliverable: document one request's path through a Linux socket and kernel boundary, noting which observations require privileges.
๐ŸŽ“

๐ŸŽ“ Capstone Track

Treat the weekly deliverables as the core path. Capstones 1โ€“4 extend the CPU, scheduler, memory, and file-system simulations; choose one to deepen during the 14 weeks. Capstone 5 is an optional project after the core path and needs at least three additional weeks.

Capstone 1: Build a CPU Simulator Implement the full fetch-decode-execute cycle in code
  • Design an instruction set with 8โ€“10 opcodes
  • Build fetch, decode, and execute stages
  • Implement ALU operations and register file
  • Add memory read/write and I/O
  • Write and run assembly programs
Capstone 2: Implement a Process Scheduler Build a multi-level feedback queue scheduler
  • Implement FCFS, SJF, and Round Robin
  • Design a multi-level feedback queue (MLFQ)
  • Add context switching and PCB management
  • Handle process creation via fork/exec simulation
  • Verify with empirical latency/throughput tests
Capstone 3: Build a Virtual Memory Manager Implement demand paging with page replacement
  • Design page table structures (single-level, multi-level)
  • Implement TLB lookups and page fault handling
  • Build LRU and Clock page replacement algorithms
  • Add copy-on-write for fork simulation
  • Measure page fault rates under different workloads
Capstone 4: Design a File System Create a journaling file system from scratch
  • Design inode and free space management
  • Implement contiguous, linked, and indexed allocation
  • Add journaling with write-ahead logging
  • Build directory lookup with hash table or B-tree
  • Simulate crash recovery and verify consistency
Optional Capstone 5: Build Your Own OS Extend the earlier CPU and scheduler work into a small kernel
  • Write a bootloader (GRUB multiboot or custom)
  • Set up protected mode, GDT, and IDT on x86
  • Implement a basic kernel with text output and memory management
  • Build a simple scheduler and kernel-level system calls
  • Run and test only in QEMU with a virtual disk

Milestone Markers

Milestone When What you can do
System Foundations Weeks 1โ€“2 Run the CPU simulator and explain how an instruction changes register or memory state.
OS Interfaces Weeks 3โ€“4 Capture a system-call trace in the VM and separate the OS concept from the Linux command used to inspect it.
Process & Memory Layer Weeks 5โ€“8 Compare scheduler outcomes, explain address translation, and use a page-reference trace to count faults.
Storage & I/O Layer Weeks 9โ€“10 Compare file allocation strategies and show which journaled writes survive the recovery simulation.
Concurrency & Communication Weeks 11โ€“12 Demonstrate that the bounded thread pool respects its worker and queue limits under load.
Systems Boundaries Weeks 13โ€“14 Trace a Linux network request and identify which observations require elevated privileges or a platform-specific tool.
Optional OS Capstone Weeks 15โ€“17+ (after the 14-week core) Extend the artifacts into a small kernel and run it in QEMU. Add time for debugging or extra features.

Core Topics: When to Use / When Not to Use

Process Scheduling โ€” When to Use vs When Not to Use
When to Use When NOT to Use
Interactive systems where response time matters โ€” use Round Robin or MFQ to bound latency Batch jobs with known runtimes where SJF gives optimal throughput but risks starvation
Real-time workloads with hard deadlines โ€” use rate-monotonic or earliest-deadline-first scheduling When overhead of context switching exceeds scheduling benefit โ€” short-lived processes get demoted
Multi-tenant servers sharing a CPU โ€” use fair-share scheduling to prevent one tenant from monopolizing When task priorities are dynamic and change frequently โ€” fixed priority causes priority inversion

Trade-off Summary: Scheduling is fundamentally a tradeoff between responsiveness (interactive), throughput (batch), and fairness (multi-tenant). No single algorithm excels at all three โ€” your workloadโ€™s dominant concern should drive the choice. MFQ adapts reasonably well across mixed workloads but adds complexity; simpler algorithms like FCFS are predictable but can starve interactive work.

Virtual Memory โ€” When to Use vs When Not to Use
When to Use When NOT to Use
Running applications larger than physical RAM โ€” use demand paging with page replacement Embedded systems with tight real-time constraints โ€” page faults introduce unbounded latency
Multi-process environments needing isolation โ€” each process gets its own virtual address space When every microsecond matters โ€” address translation via TLB miss incurs 100+ cycle cost
Shared libraries where memory pages can be remapped read-only across processes Systems with deterministic memory access patterns where paging is a liability

Trade-off Summary: Virtual memory provides isolation and the illusion of abundant memory at the cost of translation overhead and potential thrashing under memory pressure. For workloads that fit in RAM and demand real-time guarantees, the overhead of address translation may be unacceptable โ€” consider direct physical addressing with fixed memory partitions instead.

File Allocation Methods โ€” When to Use vs When Not to Use
When to Use When NOT to Use
Sequential access patterns (log files, tape backups) โ€” contiguous allocation gives best throughput When files frequently change size โ€” contiguous allocation causes external fragmentation
Read-only media (CDs, SSDs with no wear concerns) โ€” indexed allocation minimizes seek time Systems with strict real-time constraints โ€” access time variance from linked traversal is unpredictable
Small embedded FAT file systems โ€” linked allocation keeps metadata minimal High-performance databases needing random access โ€” indexed allocation adds indirection overhead

Trade-off Summary: Contiguous allocation is simple and fast for sequential reads but fragile under modification. Linked allocation handles dynamic growth but destroys random access performance. Indexed methods (ext2/3/4, NTFS) balance both at the cost of metadata overhead and complex recovery from crash inconsistencies.

Mutexes vs Semaphores โ€” When to Use vs When Not to Use
When to Use When NOT to Use
Protecting a single shared resource (queue, counter, buffer) โ€” mutex gives ownership semantics When multiple identical resources must be managed โ€” counting semaphore for pool management
When you need condition variable signaling to wake a waiting thread โ€” mutex + CV is the standard pattern As a message-passing mechanism โ€” semaphore count is not safe for passing data
Recursive locking scenarios โ€” use a recursive mutex, not a counting semaphore When you need priority inheritance to prevent priority inversion โ€” use mutex with PI support

Trade-off Summary: Mutexes provide mutual exclusion with ownership semantics (only the owner unlocks), making them safer for single-resource protection. Semaphores are a lower-level signaling mechanism useful for resource pools and producer-consumer patterns, but they lack ownership tracking which makes misuse easier โ€” especially when the same thread decrements a semaphore it didnโ€™t increment.

Pipes vs Sockets vs Shared Memory โ€” When to Use for IPC
When to Use When NOT to Use
Related processes with parent-child relationship โ€” anonymous pipes are zero-configuration Unrelated processes on the same machine โ€” use Unix domain sockets for named, bidirectional communication
High-throughput streaming data (shell pipelines, log aggregation) โ€” pipes are kernel-buffered and fast When sender and receiver have vastly different speeds โ€” message queues add backpressure
When you need atomic, single-writer single-reader queues โ€” use SOCK_DGRAM Unix domain sockets Multi-process shared state requiring cache coherence โ€” use mmap with MAP_SHARED, not message passing
Network IPC between machines โ€” TCP/UDP sockets are the standard abstraction When you need kernel-managed durability โ€” file-backed mmap gives persistence at memory access speed

Trade-off Summary: Pipes are the simplest IPC mechanism but limited to single-direction unidirectional communication between related processes. Shared memory offers highest bandwidth but requires explicit synchronization (mutexes or atomics) to avoid race conditions. Sockets provide the most flexibility (network, Unix domain, connection-oriented or datagram) at the cost of higher kernel overhead per message.

Kernel Modules vs Userspace Services โ€” When to Use vs When Not to Use
When to Use When NOT to Use
Low-latency device drivers that must interact directly with hardware interrupts โ€” kernel space is unavoidable Complex business logic requiring large dependencies โ€” kernel module development lacks debug tooling
When you need to intercept syscalls or modify kernel behavior โ€” seccomp, LSM hooks require kernel context When stability across kernel versions matters โ€” kernel APIs change between releases, modules break
Performance-critical path where context switch overhead is unacceptable When rapid iteration is needed โ€” module reload requires root, crashes panic the system

Trade-off Summary: Kernel modules give direct hardware access and zero syscall overhead but carry severe risks: a bug crashes the entire system, API stability across kernel versions is not guaranteed, and development/debugging is significantly harder than userspace. For most driver needs, consider eBPF programs or user-space drivers with UIO/VFIO for direct hardware access without kernel module liability.

Resources

Books

  • Operating System Concepts by Silberschatz, Galvin, Gagne โ€” the classic OS textbook, now in its 10th edition
  • Modern Operating Systems by Andrew Tanenbaum โ€” excellent for understanding microkernel and distributed OS design
  • Linux Kernel Development by Robert Love โ€” focused, practical guide to Linux kernel internals
  • Understanding the Linux Kernel by Daniel Bovet & Marco Cesati โ€” deep dive into Linux internals
  • The Design and Implementation of the FreeBSD OS โ€” if you want to understand a real Unix-like system

Online Courses & Tutorials

  • MIT 6.828: Operating System Engineering โ€” build a mini OS from scratch, free on MIT OpenCourseWare
  • University of Helsinki: Free Operating Systems Course โ€” hands-on with Linux internals
  • Linux Kernel Documentation โ€” the official docs for kernel APIs and internals

Practice Platforms

  • OSDev Wiki โ€” comprehensive resources for building your own operating system
  • xv6 โ€” a simple Unix-like OS used in MIT and Stanford courses for learning
  • QEMU โ€” emulator for testing your OS code without real hardware

Reference

  • The Linux Kernel documentation at kernel.org
  • LWN.net โ€” excellent Linux kernel news and deep technical articles
  • man 2 pages for Linux system calls โ€” run man 2 intro to explore

Whatโ€™s Next

After mastering operating systems fundamentals, consider exploring these related roadmaps:

  • System Design โ€” apply OS knowledge to design large-scale distributed systems
  • DevOps โ€” leverage OS internals knowledge for infrastructure and containerization
  • Distributed Systems โ€” extend your understanding to multi-machine computing

Category

Related Posts

Cybersecurity Fundamentals Roadmap

Build practical cybersecurity skills from core principles to networks, identity, cryptography, secure software, vulnerability handling, and incident response.

#cybersecurity #cybersecurity-roadmap #learning-path

Object-Oriented Design & Design Patterns Roadmap

Learn object-oriented design from core modeling principles through SOLID, GRASP, GoF patterns, refactoring, and a practical design capstone.

#object-oriented-design #design-patterns #learning-path

React + TypeScript Fundamentals Roadmap

Learn React and TypeScript through accessible, tested interfaces, from JSX and typed components to state, forms, effects, and a complete project.

#react #typescript #react-roadmap