All challenges
Code AnalysisHard 60s

False sharing counter struct

struct Counters { long a; long b; }; Counters c; // thread 1: c.a++; thread 2: c.b++; Both threads touch independent members yet performance collapses. Root cause?

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