Code AnalysisIntermediate 60s
volatile increment not atomic
Two threads each run `for(int i=0;i<1000;++i) ++counter;` where `volatile int counter = 0;`. What is the result?
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.