All challenges
Multiple ChoiceIntermediate 45s

counting_semaphore acquire

For std::counting_semaphore<1>, which call blocks until the counter is positive and then decrements it?
Options
  1. 1release()
  2. 2try_acquire()
  3. 3acquire()
  4. 4max()

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle