Practice ยท 1 of 2
Split, Spawn, Join
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.
Difficulty: advanced
Press Submit to check your solution.
Back to lesson: Practice: Threads That Behave