All challenges
Code AnalysisBeginner 60s

false sharing loop output

Two threads each run: for(int i=0;i<1e7;i++) counter[thread_id]++; where counter is int[2] adjacent in memory. What is the likely 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.

Play this in a 3-minute battle