SpinTheMic
Pro

Explain it in 60 seconds

What a semaphore is

Backend Engineering · Concurrency · Beginner

What is a semaphore, and how is it different from a mutex?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Counter allowing N concurrent holders.
  • Acquire decrements, release increments.
  • Limits concurrent access to a resource.
  • Mutex = only one holder.
  • Use for connection limits, rate of parallel calls.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics