Posts by Horácio J. C. Filho • 23 points
1 post
-
2
votes1
answer67
viewsQ: Is there a race condition problem in my code?
Is there any problem of race condition in the code below? Private Shared Sub TestRandomNumberGeneration(ByVal random As Random) Dim failed As Boolean = False Parallel.For(0, 100000, Sub(i, state)…