All Questions
Dealing With Contention easy

How does a Semaphore differ from a Mutex?

  1. A Semaphores are for networking only.
  2. B A Mutex allows only 1 thread (Key). A Semaphore allows N threads (Tickets) to access a resource concurrently (e.g., limiting to 5 connections).
  3. C Mutexes are faster.
  4. D Semaphores are obsolete.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions