The pattern I’ve used above should be fine. For something more elegant, see: Sum result of Threads.foreach() - #10 by tkf
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Parallel Mersenne Twister | 18 | 2445 | January 19, 2020 | |
How to run multiple threads, all using the same sequence of pseudorandom numbers, in Julia? | 9 | 1108 | August 30, 2021 | |
Number of threads available seems random (using @spawn) | 19 | 1363 | August 25, 2020 | |
Poor performance on cluster multithreading | 40 | 4179 | July 11, 2018 | |
Multithreading and random number generators | 7 | 3679 | March 15, 2021 |