This project is a simple Java application that demonstrates the use of Semaphores in a multithreaded environment. The program simulates vehicles moving on a screen, controlled by a Semaphore to limit concurrent access.
The Semaphore Sample Project showcases a scenario where vehicles move on a screen, and a Semaphore controls access to a limited number of resources. It's a basic illustration of how Semaphores can be used to manage concurrency in a Java application.
- Clone the repository.
- Compile and run the
Main
class. - Watch as vehicles move on the screen, respecting the Semaphore restrictions.
- Java
- Swing (for GUI)
This project is open-source and available under the MIT License.