kitsook / PrisonersProblem

Simulate the 100 prisoners problem
0 stars 0 forks source link

Investigate why Collections.shuffle hurts parallelism #1

Open kitsook opened 2 years ago

kitsook commented 2 years ago

When using Collections.shuffle to randomize the boxes, increasing the parallelism will actually hurt the performance. Investigate why.

reference: https://github.com/kitsook/PrisonersProblem/commit/cd56366d77971f34e307e8371cbbe2c0ed60f7d2

kitsook commented 2 years ago

https://www.clarenceho.net/2022/08/java-collectionsshuffle-poor.html