Course · Intermediate

Operating Systems

Learn how an operating system runs your programs: processes, threads, CPU scheduling, synchronisation, deadlocks, memory, virtual memory, file systems, disks and protection. Every algorithm the exam asks is worked by hand and then coded in Python.

Level
Intermediate
Units
12 units, 55 lessons
Time
About 12 hours
Access
Unit 1 free, the rest with Pro
Practice
106 problems the judge checks
Certificate
Yes, anyone can verify it

What you will be able to do

  • Explain what the kernel does for a program, from a system call to a context switch
  • Work out FCFS, SJF, SRTF, priority and round robin schedules by hand and in code, with every average
  • Spot race conditions and fix them with locks, semaphores and condition variables
  • Detect and avoid deadlocks with allocation graphs and the banker's algorithm
  • Translate addresses through page tables and the TLB, and count page faults under FIFO, LRU, optimal and clock
  • Size inodes, bitmaps and RAID arrays, and compute disk head movement for every scheduling algorithm
  • Answer operating-systems interview and university exam questions with worked numbers

Before you start: Python basics: the Faurus course Introduction to Computer Programming, units 1 to 8 (input, loops, lists, dictionaries, functions). Graphs from DSA unit 10 help in the deadlock unit; the lesson links what it needs.

Syllabus

12 units, in order

  1. Unit 1Free

    What an operating system does

    What the OS is for, how programs ask it for help through system calls, how it is built, and how a computer starts and reacts to interrupts.

    4 lessons · 50 min
  2. Unit 2

    Processes

    What a process is, the states it moves through, how the OS switches between processes, how processes are created and how they talk to each other.

    4 lessons · 52 min
  3. Unit 3

    Threads

    Threads inside a process, how they map to kernel threads, and how much faster parallel work can really get.

    4 lessons · 50 min
  4. Unit 4

    CPU scheduling

    How the OS picks the next process to run: the measures, and FCFS, SJF, SRTF, priority, round robin and multilevel queues, worked by hand and in code.

    6 lessons · 86 min
  5. Unit 5

    Synchronisation

    Why shared data goes wrong under concurrency, the critical-section problem, locks, semaphores and monitors, and the classic problems every exam asks.

    6 lessons · 84 min
  6. Unit 6

    Deadlocks

    When processes wait for each other forever: the four conditions, graphs, prevention, the banker's algorithm and detection.

    4 lessons · 56 min
  7. Unit 7

    Memory management

    How logical addresses become physical ones: contiguous allocation and fragmentation, paging, the TLB, multilevel page tables and segmentation.

    6 lessons · 80 min
  8. Unit 8

    Virtual memory

    Running programs larger than memory: demand paging, page faults, the replacement algorithms (FIFO, optimal, LRU, clock), frame allocation and thrashing.

    5 lessons · 68 min
  9. Unit 9

    File systems

    Files and directories as the OS sees them, how blocks are allocated on disk, inodes, free space and keeping data safe through a crash.

    5 lessons · 68 min
  10. Unit 10

    Disk scheduling and storage

    How hard disks and SSDs are read, the disk-scheduling algorithms exam papers ask, and RAID.

    4 lessons · 54 min
  11. Unit 11

    Protection and security

    How an OS decides who may do what, the attacks that target the OS, and how virtual machines and containers isolate programs.

    4 lessons · 52 min
  12. Unit 12

    Linux in practice

    See the ideas of this course on a real Linux system: processes in /proc, memory numbers, and nice values. Commands are owned by the linux-git course; this unit reads their output with OS eyes.

    3 lessons · 40 min

How a course works

Short lessons. Real checks.

  1. Read a little

    A short explanation with an example, written for students, not for experts.

  2. Change it and run it

    Edit the example code in the lesson and run it to see what changes.

  3. Check, then solve

    A quick check, then practice problems the judge checks on hidden tests.

  4. Checkpoints and a final test

    Pass them to finish the course and get your certificate.

Operating Systems, on a real judge.