Operating Systems · Prerequisites

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.

Essential preparation
The most useful preparation is hands-on experience with programming, data structures, computer architecture, memory, command-line tools and basic networking.
Foundations · Programming · Hardware

Core Background

These topics form the technical foundation for processes, scheduling, synchronization, virtual memory, file systems, I/O, networking and protection.

A

Algorithms

Problem solving · efficiency · scheduling

An operating system continuously makes decisions about CPU time, memory, I/O (input/output) and resource allocation.

What to know

Complexity, trade-offs in scheduling, search, sorting, recursion and tracing the state of a program are useful foundations.

ComplexitySchedulingSearch
In short: Complexity, trade-offs in scheduling, search, sorting, recursion and tracing the state of a program are useful foundations.
DS

Data Structures

Representation · lookup · resource tracking

The kernel keeps track of processes, memory regions, open files, devices, timers and network state with data structures.

What to know

You should be comfortable with arrays, linked lists, stacks, queues, trees, hash tables and bitmaps.

ListsQueuesTreesHash tables
In short: You should be comfortable with arrays, linked lists, stacks, queues, trees, hash tables and bitmaps.
Σ

Mathematical Foundations

Number systems · graphs · probability

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.

What to know

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.

Powers of twoHexadecimalGraphsProbability
In short: 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.
CPU

Computer Architecture

CPU · registers · privilege · memory

An operating system runs directly on the hardware. It relies on the mechanisms the architecture provides for protection and control.

What to know

You should know registers, instruction execution, privilege levels, interrupts, exceptions, caches and address translation.

RegistersInterruptsMMUPrivilege
In short: You should know registers, instruction execution, privilege levels, interrupts, exceptions, caches and address translation.
C

Programming in C

Pointers · memory · systems programming

Most classic kernel interfaces and many operating system implementations are closely tied to C-style systems programming.

What to know

Pointers, arrays, structs, bit operations, manual memory management and function calls should be well understood.

PointersStructsMemoryBit operations
In short: Pointers, arrays, structs, bit operations, manual memory management and function calls should be well understood.
CC

Compilation and Reading Assembly

Compiler · linker · machine instructions

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.

What to know

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.

gccLinkingExecutablesAssembly
In short: 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.
P/T

Process and Thread Basics

Execution · concurrency · state

Before studying scheduling and synchronization, it helps to know how programs are executed and how threads share the resources of a process.

What to know

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.

ProcessesThreadsStackHeap
In short: 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.
MEM

Memory Fundamentals

Addresses · stack · heap · virtual memory

An operating system manages physical memory and presents each process with a controlled address space.

What to know

Addresses, bytes, the difference between the stack and the heap, locality and the idea that virtual addresses must be translated should be familiar.

AddressesStackHeapLocality
In short: Addresses, bytes, the difference between the stack and the heap, locality and the idea that virtual addresses must be translated should be familiar.
HW

Digital Logic and Hardware

Bits · devices · buses · interrupts

An operating system talks to processors, memory and devices through interfaces defined by the hardware.

What to know

Basic knowledge of binary numbers, buses, device registers, interrupts and direct memory access (DMA) makes low-level I/O much easier to understand.

Binary numbersDevicesInterruptsDMA
In short: Basic knowledge of binary numbers, buses, device registers, interrupts and direct memory access (DMA) makes low-level I/O much easier to understand.
CLI

Command Line and Linux Tools

Shell · files · processes · diagnostics

Many operating system concepts become concrete when explored on the command line.

What to know

It is useful to practice with commands such as ps, top, chmod, df and dmesg for files, permissions, processes, memory, disks and logs.

ShellProcessesPermissionsLogs
In short: It is useful to practice with commands such as ps, top, chmod, df and dmesg for files, permissions, processes, memory, disks and logs.
NET

Networking Basics

Sockets · TCP/IP · ports

Modern operating systems include a network stack and offer communication through socket APIs.

What to know

You should know IP addresses, ports, the difference between TCP and UDP, client/server behavior and basic socket concepts.

TCP/IPSocketsPorts
In short: You should know IP addresses, ports, the difference between TCP and UDP, client/server behavior and basic socket concepts.
SEC

Security Fundamentals

Protection · authentication · permissions

An operating system protects the boundaries between users, processes, files and devices.

What to know

You should know the ideas behind authentication, authorization, permissions, the principle of least privilege and basic threat models.

PermissionsAuthenticationProtection
In short: You should know the ideas behind authentication, authorization, permissions, the principle of least privilege and basic threat models.
No topic matches the search or the filter.
Most important before the course

Programming in C, pointers, data structures, processes, memory and basic computer architecture.

Can be learned alongside the course

Shell tools, inspecting processes on Linux, networking commands, permissions and system diagnostics.

No kernel experience needed

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.

✓ I can read and write basic C programs, and compile and run them with gcc.
✓ I understand pointers, arrays, structs, the stack and the heap.
✓ I know queues, linked lists, trees and hash tables.
✓ I can calculate with binary and hexadecimal numbers, powers of two and simple probability.
✓ I know what CPU registers and interrupts are.
✓ I can use the terminal and basic Linux commands.
✓ I understand files, processes, permissions and basic networking concepts.