Syllabus

  1. 01How computers workThe four jobs of every computer and where the operating system fits, the CPU's parts and its fetch-decode-execute cycle, the memory hierarchy from registers to disks, buses, and how a computer boots.3 lessons
    1. 01The four jobs of every computer
    2. 02Inside the CPU
    3. 03Memory, storage and booting
  2. 02Operating system basicsWhat an operating system is and its roles, the kernel, user and kernel mode and system calls, processes and time slicing, virtual memory, file systems, drivers and interrupts, security, and a scenario problem set.4 lessons
    1. 01What an operating system is
    2. 02Managing processes and memory
    3. 03Files, devices and security
    4. 04Problem set: the operating system at work
  3. 03ProcessesWhat separates a program from a process, what the operating system remembers about each one, how new processes are born, and the states every process moves through.2 lessons
    1. 01Programs and Processes
    2. 02States, Waiting and Zombies
  4. 04ThreadsHow threads share one process's memory, what goes wrong when they update shared data without coordination, and how locks, deadlock and the kernel's view of threads fit in.2 lessons
    1. 01Threads and Shared Memory
    2. 02Deadlock and Kernel Threads
  5. 05SchedulingHow an operating system decides which ready process gets the CPU next. Measure a schedule, work out first come first served, shortest job first, round robin and priority scheduling by hand, then check your numbers with short scripts.2 lessons
    1. 01Measuring a Schedule: FCFS and SJF
    2. 02Round Robin and Priority Scheduling
  6. 06SynchronizationWhy threads that share data need coordination, and the tools that provide it: locks, condition variables and semaphores. Ends with deadlock, how to spot it and how to design it away.4 lessons
    1. 01Races, Critical Sections and Locks
    2. 02Condition Variables
    3. 03Semaphores
    4. 04Deadlock
  7. 07Memory ManagementHow an operating system shares RAM between programs: the memory hierarchy, segments and fragmentation, then paging, TLBs, page faults and virtual memory, page replacement, and how programs are linked and loaded.5 lessons
    1. 01Memory Layers and Fragmentation
    2. 02Paging and Page Tables
    3. 03TLBs, Page Faults and Virtual Memory
    4. 04Page Replacement
    5. 05Linking and Loading
  8. 08Files and DirectoriesWhat a file and a directory really are, how a path is turned into a location, and what a program does with a file once it opens it.2 lessons
    1. 01Files, Directories and Paths
    2. 02Descriptors, Reads and Writes
  9. 09Inodes, Links and PermissionsWhere a file's size, owner and times are really kept, how one file can have several names, what deleting a name does, and how permission bits decide who may read, write and enter.3 lessons
    1. 01Inodes and Metadata
    2. 02Links and Deleting Files
    3. 03Permissions: Who May Do What
  10. 10Inside a FilesystemHow a drive's numbered blocks become inodes, bitmaps and data, how the Fast File System kept related data close, and how journaling brings a filesystem back to a consistent state after a crash.3 lessons
    1. 01Blocks, Inodes and the On-Disk Layout
    2. 02Locality and the Fast File System
    3. 03Crashes, fsck and Journaling
  11. 11Devices and DriversWhat an I/O device looks like to the operating system, how the CPU reaches it and waits for it (polling, interrupts, DMA), and the layers of software between a program's write call and the hardware.3 lessons
    1. 01Device Classes and Device Registers
    2. 02Polling, Interrupts and DMA
    3. 03The I/O Software Stack
  12. 12Disks, RAID and FlashHow a hard disk spends its time and why access order matters, how the operating system or the drive picks the next request, how RAID spreads data over several disks, and why flash SSDs must erase before they write.4 lessons
    1. 01Hard Disk Drives and the Cost of a Seek
    2. 02Choosing Which Request Goes Next
    3. 03Mirroring, Striping and Parity: RAID
    4. 04Flash SSDs: Why Writing Means Erasing First