An open API service indexing awesome lists of open source software.

https://github.com/sortiz0640/racing

Racing Threads is a simulation of a race between multiple racers using Java threads. Each runner advances in random steps until the finish line is reached, and the first to arrive is declared the winner. This project demonstrates the use of Thread, synchronization with synchronized and concurrency management in Java. 🚀
https://github.com/sortiz0640/racing

Last synced: 3 days ago
JSON representation

Racing Threads is a simulation of a race between multiple racers using Java threads. Each runner advances in random steps until the finish line is reached, and the first to arrive is declared the winner. This project demonstrates the use of Thread, synchronization with synchronized and concurrency management in Java. 🚀

Awesome Lists containing this project

README

          

# 🏁 Racing Threads - Java Threaded Racing Simulation
This project is a simulation of a race between multiple racers using threads in Java. Each racer advances in random steps until the finish line is reached. The first runner to reach the finish line is declared the winner, and the other threads stop.

🚀 Features
- Use of Threads to simulate independent runners.
- Generation of random steps in each iteration.
- Synchronization with synchronized to avoid concurrency problems.
- Win condition that stops the execution of the other runners once there is a winner.