40 constexpr int nthreads = 8;
41 constexpr int ndraws = 1000;
42 std::vector<std::vector<double>> draws(nthreads);
43 std::vector<std::thread> threads;
44 for (
int t = 0; t < nthreads; ++t) {
45 threads.emplace_back([t, &draws]() {
46 TRandom3 own(t % 2 + 1);
48 for (
int i = 0;
i < ndraws; ++
i) {
54 for (
auto& th : threads) {
57 for (
int t = 2; t < nthreads; ++t) {