Fundamentals of Operating Systems
How a computer and its operating system work, from the ground up. Start with the hardware and what the OS does, then processes, threads and scheduling, synchronization and memory, files and filesystems, and finally devices, disks and flash, each part through its own small running example.
- Beginner level
- 12 modules
- 37 lessons
- 218 quiz questions
Syllabus
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
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
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
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
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
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
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
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
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
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
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
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