Low-level design
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
5 write-ups
| Title | Difficulty |
|---|---|
| Concurrency Fundamentals Threads, shared state and why races happen, the concurrency toolbox (atomics, locks, semaphores, condition variables, blocking queues) and the three kinds of concurrency questions. | |
| Classic Concurrency Problems The textbook synchronization puzzles interviewers still ask (bounded buffer, print in order, dining philosophers, readers-writers, the bathroom problem, the sleeping barber), what each one teaches and the standard fix. | |
| Deadlocks, Livelocks and Starvation Why threads freeze waiting on each other, the four conditions behind every deadlock, and the fixes interviewers expect: lock ordering, tryLock with timeouts, and detecting cycles in a wait-for graph. | |
| Multithreading Patterns The reusable shapes of multithreaded code: thread pools and futures, fan-out/fan-in, read-write locks, immutability, thread confinement and double-checked locking, with when each one is worth it. | |
| Race Conditions, Locks and Atomics The two shapes of race condition (read-modify-write and check-then-act), how mutexes and atomics fix them, and a step-by-step recipe for making a class thread safe. |