Horse racing

  • 9
  • unavailable
Programming is better than gambling... Still, horse races and other races perfectly illustrate multithreading! Figure out what the code does, and implement a method that counts the number of horses that have crossed the finish line. One more thing: you need to wait for the longshots to finish the race.
You can't complete this task, because you're not signed in.
Comments(1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Muhammad VahhaajLevel 19 , Rawalpindi
15 July, 10:38
Easy task, except i did not understand the use of while (calculateHorsesFinished(horses) != horses.size()) what is the loop used for?