Interview Prep Zoneby CuriouserLabs
🚦

Concurrency & Synchronization

Atomic instructions, mutexes vs spinlocks, deadlock theory, condition variables and IPC — the OS view of concurrency.

  1. 1

    Locks have to be built out of something. What hardware primitives make synchronization possible?

    staff
  2. 2

    Mutex vs semaphore vs spinlock — mechanics, when spinning beats blocking, and what a futex is.

    senior
  3. 3

    Deadlock: the four conditions, and the real-world strategies — prevention, avoidance, detection, or shrug?

    senior🎬 animated
  4. 4

    Condition variables and the producer–consumer problem: why must you wait in a loop, and what is a lost wakeup?

    staff
  5. 5

    Compare IPC mechanisms — pipes, shared memory, sockets, message queues, signals. How do you choose?

    senior