Skip to content
Chethan Yadav_

$ cd ~/learn/operating-systems

Operating Systems

Processes, threads, scheduling, synchronization, deadlocks, memory, file systems and I/O.

Core Systems/9 Lessons

All subjects
  1. 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.

  2. Lesson 02 · 5 min read

    Processes

    Process vs program, memory layout, PCB, process states, context switching, fork/exec, zombie and orphan processes, and IPC.

  3. Lesson 03 · 4 min read

    Threads and Concurrency

    Threads vs processes, user and kernel threads, multithreading models, concurrency vs parallelism, and thread pools.

  4. Lesson 04 · 6 min read

    CPU Scheduling

    Scheduling criteria, preemptive vs non-preemptive, FCFS, SJF, SRTF, priority, Round Robin, multilevel queues, with worked examples.

  5. 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.

  6. 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.

  7. Lesson 07 · 6 min read

    Memory Management

    Logical vs physical addresses, MMU, contiguous allocation, fragmentation, paging, page tables, TLB, multilevel page tables, and segmentation.

  8. 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.

  9. 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.