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. 🚀
- Host: GitHub
- URL: https://github.com/sortiz0640/racing
- Owner: sortiz0640
- Created: 2025-02-16T05:42:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-16T05:50:05.000Z (over 1 year ago)
- Last Synced: 2025-10-29T18:41:55.065Z (9 months ago)
- Language: Java
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.