Boost.
This is the code to create a thread_group and execute all threads in parallel: boost::thread_group group; for (…