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
- 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.
- 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.
- Unit 3
Threads
Threads inside a process, how they map to kernel threads, and how much faster parallel work can really get.
- 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.
- 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.
- Unit 6
Deadlocks
When processes wait for each other forever: the four conditions, graphs, prevention, the banker's algorithm and detection.
- Unit 7
Memory management
How logical addresses become physical ones: contiguous allocation and fragmentation, paging, the TLB, multilevel page tables and segmentation.
- Unit 8
Virtual memory
Running programs larger than memory: demand paging, page faults, the replacement algorithms (FIFO, optimal, LRU, clock), frame allocation and thrashing.
- 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.
- Unit 10
Disk scheduling and storage
How hard disks and SSDs are read, the disk-scheduling algorithms exam papers ask, and RAID.
- 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.
- 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.
How a course works
Short lessons. Real checks.
Read a little
A short explanation with an example, written for students, not for experts.
Change it and run it
Edit the example code in the lesson and run it to see what changes.
Check, then solve
A quick check, then practice problems the judge checks on hidden tests.
Checkpoints and a final test
Pass them to finish the course and get your certificate.