All Questions
Dealing With Contention easy

What is 'Busy Waiting' (Spinning)?

  1. A When a thread is doing heavy math.
  2. B When a thread yields the CPU while waiting.
  3. C A thread sits in a loop checking a condition (`while(!lock) {}`) constantly consuming CPU cycles instead of sleeping.
  4. D When the network is busy.

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

Get the app

Related questions