Roadmap Start learning
QD05IntermediateQuant DeveloperMedium
Operating Systems and Computer Architecture
Processes, threads, virtual memory, CPU caches and scheduling: what the machine does when your code runs.
1.8 h of lessons~37 min of practice across 2 problems
Prerequisites not done
Lessons0 / 6 lessons
Mastery · target 80%0 / 2 solved
Completing the lessons finishes the module. Mastery also needs 80% of its problems solved.
What you will be able to do
- Explain processes, threads and context switches and their costs
- Describe virtual memory, paging and the TLB
- Reason about the memory hierarchy and the latency of each level
- Explain branch prediction and pipelining and how code affects them
- Use Linux tools to inspect a running process
Before you start
Prerequisites: this module uses their material directly.
Helpful but not essential.
Lessons
1.Systems & Low-Latency BasicsMemory hierarchy, cache-friendly data layout, lock-free queues and measuring latency: what trading-systems interviews probe.25m2.Processes and ThreadsWhat a process and a thread own, how fork, exec and wait work, what user and kernel mode mean, and what system calls and context switches really cost.16m3.Virtual MemoryPages and multi-level page tables, the TLB and what a miss costs, minor and major page faults, mmap, huge pages and memory overcommit, with the latency consequences for trading systems.17m4.Caches and the Memory HierarchyHow caches are organised into lines, sets and ways, the kinds of miss, locality and prefetching, average memory access time, and two benchmarks that show the hierarchy at work.18m5.SchedulingHow Linux shares CPUs fairly with weights and virtual runtime, real-time policies, CPU affinity and core isolation, and why trading systems pin busy-polling threads to dedicated cores.16m6.Linux for DevelopersThe working toolkit for inspecting a live process on Linux: top and htop, /proc, strace, perf, lsof, ss, ulimit, and reading a core dump with gdb.15m
Practice problems (2)
Where this module fits
- Quant Researcher: Not on the default path; recommended for HFT / Microstructure Research
- Quant Developer: Required