Practice · 1 of 2
A Race-Free Counter
CHALLENGE
Difficulty: advanced+25 XP
Implement hammer spawning nThreads threads that each increment counter incs times. Total increments must be exact — the counters prove atomicity.
Press Submit to check your solution.
Back to lesson: Practice: Atomics in Motion