Why does this C++20 threaded program behave unpredictably or hang?
I am trying to parallelize a C++20 program that computes Grundy values for Grundy's game. The sequential version works, but after adding twelve worker threads and several std::barrier…