Prerequisites for Operating Systems
Operating systems bring together software, hardware, algorithms and low-level programming. A solid grounding in the areas below makes it much easier to understand the behavior of the kernel, the execution of processes, memory management, file systems and interaction with devices.
The most useful preparation is hands-on experience with programming, data structures, computer architecture, memory, command-line tools and basic networking.
Core Background
These topics form the technical foundation for processes, scheduling, synchronization, virtual memory, file systems, I/O, networking and protection.
Algorithms
An operating system continuously makes decisions about CPU time, memory, I/O (input/output) and resource allocation.
Complexity, trade-offs in scheduling, search, sorting, recursion and tracing the state of a program are useful foundations.
Data Structures
The kernel keeps track of processes, memory regions, open files, devices, timers and network state with data structures.
You should be comfortable with arrays, linked lists, stacks, queues, trees, hash tables and bitmaps.
Mathematical Foundations
The size of a page table, splitting an address into a page number and an offset, deadlock graphs, the matrices of the banker's algorithm, effective access time and key exchange all rest on basic discrete mathematics and probability.
Powers of two and the units KiB/MiB/GiB, binary and hexadecimal notation, logarithms, modular arithmetic, sets, matrices, directed graphs and cycles, weighted averages and simple probability should be familiar.
Computer Architecture
An operating system runs directly on the hardware. It relies on the mechanisms the architecture provides for protection and control.
You should know registers, instruction execution, privilege levels, interrupts, exceptions, caches and address translation.
Programming in C
Most classic kernel interfaces and many operating system implementations are closely tied to C-style systems programming.
Pointers, arrays, structs, bit operations, manual memory management and function calls should be well understood.
Compilation and Reading Assembly
The course examples compile C code with gcc, link it with libraries and show system calls, traps and atomic operations with a few lines of assembly.
You should know at a basic level the path from a source file to an object file and an executable, static and dynamic libraries, how compiler optimizations can change the code, and how a short assembly listing corresponds to the C code.
Process and Thread Basics
Before studying scheduling and synchronization, it helps to know how programs are executed and how threads share the resources of a process.
You should know at a basic level the difference between a program, a process and a thread, and what the stack, the heap and the execution state are.
Memory Fundamentals
An operating system manages physical memory and presents each process with a controlled address space.
Addresses, bytes, the difference between the stack and the heap, locality and the idea that virtual addresses must be translated should be familiar.
Digital Logic and Hardware
An operating system talks to processors, memory and devices through interfaces defined by the hardware.
Basic knowledge of binary numbers, buses, device registers, interrupts and direct memory access (DMA) makes low-level I/O much easier to understand.
Command Line and Linux Tools
Many operating system concepts become concrete when explored on the command line.
It is useful to practice with commands such as ps, top, chmod, df and dmesg for files, permissions, processes, memory, disks and logs.
Networking Basics
Modern operating systems include a network stack and offer communication through socket APIs.
You should know IP addresses, ports, the difference between TCP and UDP, client/server behavior and basic socket concepts.
Security Fundamentals
An operating system protects the boundaries between users, processes, files and devices.
You should know the ideas behind authentication, authorization, permissions, the principle of least privilege and basic threat models.
Programming in C, pointers, data structures, processes, memory and basic computer architecture.
Shell tools, inspecting processes on Linux, networking commands, permissions and system diagnostics.
System calls, scheduling, synchronization, virtual memory, file systems and I/O are covered from the ground up in the course.
Readiness Checklist
If most of the statements below sound familiar, you are well prepared.