$ cd ~/learn/operating-systems
Operating Systems
Processes, threads, scheduling, synchronization, deadlocks, memory, file systems and I/O.
Core Systems/9 Lessons
Lesson 01 · 5 min read
Introduction to Operating Systems
What an OS is, its goals, types, kernel architectures, system calls, dual-mode operation and interrupts.
Lesson 02 · 5 min read
Processes
Process vs program, memory layout, PCB, process states, context switching, fork/exec, zombie and orphan processes, and IPC.
Lesson 03 · 4 min read
Threads and Concurrency
Threads vs processes, user and kernel threads, multithreading models, concurrency vs parallelism, and thread pools.
Lesson 04 · 6 min read
CPU Scheduling
Scheduling criteria, preemptive vs non-preemptive, FCFS, SJF, SRTF, priority, Round Robin, multilevel queues, with worked examples.
Lesson 05 · 6 min read
Process Synchronization
Race conditions, the critical section problem, Peterson's solution, mutexes, semaphores, monitors, spinlocks, and the classic synchronization problems.
Lesson 06 · 6 min read
Deadlocks
Deadlock definition, the four Coffman conditions, resource allocation graphs, prevention, avoidance with the Banker's algorithm, detection, recovery, and livelock.
Lesson 07 · 6 min read
Memory Management
Logical vs physical addresses, MMU, contiguous allocation, fragmentation, paging, page tables, TLB, multilevel page tables, and segmentation.
Lesson 08 · 6 min read
Virtual Memory
Virtual memory, demand paging, page faults, copy-on-write, page replacement algorithms (FIFO, Optimal, LRU, Clock), Belady's anomaly, thrashing and the working set model.
Lesson 09 · 6 min read
File Systems, Disk Scheduling and I/O
Files, directories, allocation methods, inodes, free space management, journaling, disk scheduling algorithms, RAID, and I/O techniques.