Practice · 1 of 2
Split, Spawn, Join
CHALLENGE
Difficulty: advanced+25 XP
Implement parallelSum: split [0, n) into nThreads contiguous chunks, sum each chunk on its own std::thread into a shared atomic, join everything, return the total.
Press Submit to check your solution.
Back to lesson: Practice: Threads That Behave