Because of the non-deterministic nature of threading you can never guarantee how long threads will take to start or join etc. 10ms was chosen by running the test 10,000 times and seeing what the value needed to be in order for the test always to pass.