A unisex bathroom problem solution using semaphore.
The Unisex Bathroom problem consists of a bathroom with n stalls and some number of males and females that share the bathroom. A male or female may be using a stall in the bathroom, waiting to use the bathroom, or doing something else.
You will need to install the modules below to run the program:
There are two ways to run this software:
- Compile the IDE (Eclipse - Java IDE):
- Just open the IDE.
- Import the project folder as a Java Project.
- After, click in the "Run" button.
- From this it only interacts with the system.
- Compile by terminal:
- Enter the src folder and compile all the .java files with the following command:
$ java * .java -d <target_address_name>
- Enter the chosen destination directory and run the following command:
$ java principal.Main
- From this it only interacts with the system.
- Eclipse - A IDE used
- Luís Eduardo Anunciado Silva ([email protected])
- Erick de Oliveira Silva ([email protected])
- Everton Ranielly de Sousa Cavalcante ([email protected])
See also the list of contributors who participated in this project.
This project is licensed under the GPL 3.0 - see the LICENSE file for details