All challenges
Multiple ChoiceBeginner 45s

std::barrier Phase Completion

In std::barrier, the completion function passed to its constructor is invoked:
Options
  1. 1By every thread after each arrival, once per participant in that phase
  2. 2Exactly once per phase after all participants arrive, before releasing them
  3. 3Only at destruction time, after the final phase has fully completed and released
  4. 4Never for the first phase, and only for subsequent phases once threads have warmed up

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