Operating systems
A university first course in operating systems: the kernel boundary and system calls, processes and threads, CPU scheduling, locks and synchronisation, deadlock, memory management, file systems, I/O and drivers, and virtualisation and isolation. Every lesson is an animated machine you can step through, then a short quiz, with Python simulations where they help.
The kernel and system calls
What the kernel is and how programs ask it for help. Start with the Software lesson on what an operating system does and the Hardware lesson on interrupts and I/O. The Linux lesson on how Linux boots covers the boot order; here we look at what the kernel builds before the first process starts.
-
الدرس 01 · المدة: 12 د
User mode and kernel mode
الخطوات: 11لم يبدأ -
الدرس 02 · المدة: 12 د
System calls: crossing into the kernel
الخطوات: 12لم يبدأ -
الدرس 03 · المدة: 13 د
Traps, exceptions and the interrupt table
الخطوات: 11لم يبدأ -
الدرس 04 · المدة: 12 د
Monolithic kernels and microkernels
الخطوات: 11لم يبدأ -
الدرس 05 · المدة: 12 د
What the kernel sets up before the first process
الخطوات: 11لم يبدأ
Processes and threads
How the kernel creates, tracks and switches between running programs. The Linux lesson on processes and signals shows the commands; this module shows what happens inside.
-
الدرس 06 · المدة: 12 د
The process: address space, registers and the PCB
الخطوات: 10لم يبدأ -
الدرس 07 · المدة: 12 د
Process states: ready, running and blocked
الخطوات: 10لم يبدأ -
الدرس 08 · المدة: 14 د
fork, exec and wait from the kernel's side
الخطوات: 11لم يبدأ -
الدرس 09 · المدة: 12 د
The context switch and the timer interrupt
الخطوات: 11لم يبدأ -
الدرس 10 · المدة: 12 د
Threads from the kernel's side
الخطوات: 10لم يبدأ -
الدرس 11 · المدة: 13 د
Pipes, shared memory and message passing
الخطوات: 11لم يبدأ
CPU scheduling
Who runs next, and for how long. Builds on the context switch from the processes module; the Hardware lesson on multicore processors explains why cache affinity matters. The Embedded course later applies these ideas to RTOS tasks; this module is the general theory.
-
الدرس 12 · المدة: 14 د
Turnaround, response time and fairness
الخطوات: 10لم يبدأ -
الدرس 13 · المدة: 14 د
First come first served and shortest job first
الخطوات: 10لم يبدأ -
الدرس 14 · المدة: 14 د
Round robin and the time slice
الخطوات: 11لم يبدأ -
الدرس 15 · المدة: 14 د
The multi-level feedback queue
الخطوات: 10لم يبدأ -
الدرس 16 · المدة: 14 د
Fair-share scheduling and Linux CFS
الخطوات: 9لم يبدأ -
الدرس 17 · المدة: 14 د
Scheduling on many cores
الخطوات: 11لم يبدأ
Synchronisation
Keeping shared data correct when threads run at once. The Software lesson on threads and concurrency shows the race and a simple lock; this module builds the tools underneath and the theory behind them. The Embedded course uses mutexes and semaphores on a microcontroller.
-
الدرس 18 · المدة: 14 د
The critical-section problem and Peterson's algorithm
الخطوات: 12لم يبدأ -
الدرس 19 · المدة: 14 د
Locks, spinlocks and atomic instructions
الخطوات: 11لم يبدأ -
الدرس 20 · المدة: 14 د
Condition variables
الخطوات: 12لم يبدأ -
الدرس 21 · المدة: 14 د
Semaphores
الخطوات: 9لم يبدأ -
الدرس 22 · المدة: 12 د
Monitors
الخطوات: 12لم يبدأ -
الدرس 23 · المدة: 16 د
Producer-consumer, readers-writers and dining philosophers
الخطوات: 11لم يبدأ
Deadlock
When threads wait for each other forever, and how to prevent, avoid or recover from it. Builds on locks from the synchronisation module.
-
الدرس 24 · المدة: 12 د
The four conditions for deadlock
الخطوات: 10لم يبدأ -
الدرس 25 · المدة: 12 د
Resource allocation graphs
الخطوات: 10لم يبدأ -
الدرس 26 · المدة: 14 د
Preventing deadlock with lock ordering
الخطوات: 12لم يبدأ -
الدرس 27 · المدة: 14 د
Avoiding deadlock: the banker's algorithm
الخطوات: 11لم يبدأ -
الدرس 28 · المدة: 14 د
Detecting and recovering from deadlock
الخطوات: 11لم يبدأ
Memory management
How the kernel gives every process its own memory. The Hardware lessons on the memory hierarchy, caches and virtual memory explain address translation, the TLB and page faults in the chip; this module covers what the kernel does with them.
-
الدرس 29 · المدة: 14 د
Address spaces, base and bounds
الخطوات: 10لم يبدأ -
الدرس 30 · المدة: 14 د
Segmentation and free-space management
الخطوات: 11لم يبدأ -
الدرس 31 · المدة: 14 د
The kernel's page tables: entry bits, building and switching tables
الخطوات: 10لم يبدأ -
الدرس 32 · المدة: 14 د
Managing the TLB: misses, flushes, ASIDs and shootdowns
الخطوات: 11لم يبدأ -
الدرس 33 · المدة: 14 د
Multi-level page tables
الخطوات: 11لم يبدأ -
الدرس 34 · المدة: 14 د
Page faults and swapping to disk
الخطوات: 10لم يبدأ -
الدرس 35 · المدة: 14 د
Page replacement: FIFO, LRU and clock
الخطوات: 11لم يبدأ
Memory in practice
What happens when memory runs short, and the tricks real kernels use to share it.
-
الدرس 36 · المدة: 12 د
Working sets and thrashing
الخطوات: 10لم يبدأ -
الدرس 37 · المدة: 14 د
Copy-on-write and shared pages
الخطوات: 10لم يبدأ -
الدرس 38 · المدة: 14 د
Huge pages and NUMA memory placement
الخطوات: 10لم يبدأ -
الدرس 39 · المدة: 14 د
Kernel memory: slab and buddy allocators
الخطوات: 10لم يبدأ
File systems
How files and folders are laid out on a disk and kept safe through crashes. The Linux lessons on the file system and disks show the user's view. Journaling uses the same write-ahead idea as the Databases lesson on write-ahead logging and recovery.
-
الدرس 40 · المدة: 14 د
Files, directories and file descriptors
الخطوات: 10لم يبدأ -
الدرس 41 · المدة: 15 د
Inodes and data blocks
الخطوات: 11لم يبدأ -
الدرس 42 · المدة: 14 د
FAT and ext4: two on-disk layouts
الخطوات: 11لم يبدأ -
الدرس 43 · المدة: 14 د
The buffer cache and writing back
الخطوات: 10لم يبدأ -
الدرس 44 · المدة: 14 د
Memory-mapped files
الخطوات: 11لم يبدأ -
الدرس 45 · المدة: 15 د
RAID: spreading data across many disks
الخطوات: 12لم يبدأ -
الدرس 46 · المدة: 14 د
Crash consistency and journaling
الخطوات: 10لم يبدأ -
الدرس 47 · المدة: 14 د
File systems on SSDs
الخطوات: 10لم يبدأ
I/O, virtualisation and isolation
Talking to devices, running whole machines inside machines, and keeping programs apart. Start from the Hardware lesson on interrupts and I/O for polling, interrupts and DMA. For containers, the Software lesson on containers and deployment compares them with virtual machines, and the Linux lesson on namespaces and cgroups shows how they are built.
-
الدرس 48 · المدة: 14 د
Device drivers and the I/O stack
الخطوات: 12لم يبدأ -
الدرس 49 · المدة: 14 د
Interrupt handlers: top halves, bottom halves and deferred work
الخطوات: 11لم يبدأ -
الدرس 50 · المدة: 14 د
Disk scheduling
الخطوات: 8لم يبدأ -
الدرس 51 · المدة: 15 د
Hypervisors and virtual machines
الخطوات: 11لم يبدأ -
الدرس 52 · المدة: 15 د
Hardware support for virtualisation: VT-x and nested page tables
الخطوات: 12لم يبدأ -
الدرس 53 · المدة: 14 د
Protection, privilege and sandboxing
الخطوات: 10لم يبدأ
Special topics
Stand-alone deep dives. Take them any time after the module they build on.
-
الدرس S1 · المدة: 15 د
Real-time scheduling and priority inversion
يعتمد على CPU scheduling
الخطوات: 11لم يبدأ -
الدرس S2 · المدة: 14 د
Concurrency bugs and event-based concurrency
يعتمد على Deadlock
الخطوات: 11لم يبدأ -
الدرس S3 · المدة: 14 د
Lock-free data structures
يعتمد على Synchronisation
الخطوات: 11لم يبدأ -
الدرس S4 · المدة: 14 د
Network and distributed file systems
يعتمد على File systems
الخطوات: 11لم يبدأ -
الدرس S5 · المدة: 14 د
How kernel attacks work and how kernels defend
يعتمد على I/O, virtualisation and isolation
الخطوات: 10لم يبدأ