Skip to content

Operating Systems & Concurrency ​

Part of the Interview Prep Roadmap. Coverage ratings are explained there.

Operating Systems ​

Processes vs. threads, scheduling, memory management, and deadlocks.

Coverage: rich

Resources · OSTEP — Operating Systems: Three Easy Pieces — free textbook, the standard recommendation · Linux Journey

OS Fundamentals ​

  • Role of the operating system
  • Kernel space vs. user space
  • System calls

Practice

Processes & Threads ​

  • Process lifecycle and states
  • Process vs. thread
  • Context switching
  • Inter-process communication

Practice

CPU Scheduling ​

  • Scheduling objectives
  • FCFS, SJF, round robin, and priority scheduling
  • Preemptive vs. non-preemptive scheduling
  • Starvation and aging

Practice

Memory Management ​

  • Physical vs. virtual memory
  • Paging and segmentation
  • Page replacement algorithms
  • Thrashing and locality

Practice

Synchronization & Deadlocks ​

  • Critical sections
  • Mutexes and semaphores
  • Deadlock conditions
  • Prevention, avoidance, and detection

Practice

File Systems & I/O ​

  • File system structure
  • Inodes and directories
  • Disk scheduling

Practice

Linux & the Shell ​

  • Shells and common commands
  • File permissions and ownership
  • Users and processes
  • Shell scripting

Practice

Concurrency & Multithreading ​

Thread safety, race conditions, and synchronization — what can go wrong when multiple threads touch the same state.

Coverage: thin

Resources · Java Concurrency basics — Baeldung

Concurrency Fundamentals ​

  • Concurrency vs. parallelism
  • Thread lifecycle
  • Shared mutable state

Practice

Race Conditions & Synchronization ​

  • Race conditions
  • Mutual exclusion
  • Locks, monitors, and atomic operations
  • Designing a thread-safe class

Practice

Coordination Patterns ​

  • Producer-consumer
  • Reader-writer
  • Thread pools
  • Asynchronous and non-blocking patterns

Pitfalls ​

  • Deadlock, livelock, and starvation
  • Double-checked locking
  • Performance cost of synchronization

Practice