Horse racing

  • 18
  • Locked
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.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
LgdLevel 16 , London
7 July, 10:56
Hi It seems to work as requested...but it won't pass validation. I can't figure it out. \\\\any suggestions pls. Thanks
Muhammad VahhaajLevel 19 , Rawalpindi
15 July 2019, 10:38
Easy task, except i did not understand the use of while (calculateHorsesFinished(horses) != horses.size()) what is the loop used for?