Multiple ChoiceBeginner 45s
std::barrier Phase Completion
In std::barrier, the completion function passed to its constructor is invoked:
Options
- 1By every thread after each arrival, once per participant in that phase
- 2Exactly once per phase after all participants arrive, before releasing them
- 3Only at destruction time, after the final phase has fully completed and released
- 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.