Skip to content

sortiz0640/Racing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏁 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.

About

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. πŸš€

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages