To run the program, run the main file by navigating to this directory, and execute the following command: "go run main/main.go" and type in one of the ports as args from the ports.txt file. Repeat for each port there is in the ports.txt file.
The critical section is emulated by the processes writing to the Critical Section.txt file.
Instructions on how to run the program:
- Foreach {port} in the ports.txt file
- Open a cmd, navigate to this directory and enter the following command: "go run main/main.go {port}"