Systems Programming Interview Questions
Practice OS concurrency, virtual memory, lock ordering, CPU caches, epoll, crash consistency, and TCP networking with free systems programming interview questions. Each exercise includes hints and a checked explanation.
Practice questions
- Process or thread: what changes for memory, crashes, and files? · Processes and threads · 8 min
- Why is virtual memory 2 GiB when RSS is 24 MiB? · Virtual memory · 8 min
- Why does Rust reject this handle code at compile time? · Ownership and RAII · 10 min
- Why does a shared counter lose updates across threads? · Data races · 10 min
- Why do concurrent transfers deadlock, and how do you prevent it? · Deadlocks · 10 min
- Why can a reader see stale data behind a Relaxed flag? · Memory ordering · 12 min
- Why does a long-running service fail with EMFILE after hours? · File descriptors · 8 min
- How does backpressure stop a fast producer from OOM-killing a service? · Backpressure · 12 min
- Why do two threads updating separate counters slow each other down? · CPU caches · 12 min
- Why does an edge-triggered epoll handler stall mid-request? · Event loops · 12 min
- Why can an updated config file end up empty after power loss? · Storage durability · 10 min
- Why does an outbound proxy hit EADDRNOTAVAIL after 47 seconds? · TCP networking · 10 min
How to practice
Predict the result or explain what you would change before opening the hints. Then compare your reasoning with the answer and try the follow-up question.