anunciado / DIM0612-SprintRelay

A sprint relay problem solution using mutex for UFRN DIM class DIM0612: Concurrent Programming.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sprint Relay

A sprint relay problem solution using mutex.

The Problem

The Sprint Relay problem consists in race in which two teams that have four runners. The second, third and fourth runners can not start running until they receive the baton delivered by the runner who preceded it.

Prerequisites

You will need to install the modules below to run the program:

Running

There are two programs in this project. The sprintRelay.go file will simulate a team's race, while the sprintRelayExtra.go file will simulate the race between two teams. There are two ways to run this software:

  • Compile the IDE (GoLand IDE):
  1. Just open the IDE.
  2. Import the files in a project.
  3. After, click Ctrl+Shift+F10 to run the project.
  4. From this it only interacts with the system.
  • Compile by terminal:
  1. Enter the following command to run the files of the project:
$ go run sprintRelayExtra.go
  1. From this it only interacts with the system.

Built With

Authors

Developers:

Project Advisor:

See also the list of contributors who participated in this project.

License

This project is licensed under the GPL 3.0 - see the LICENSE file for details

About

A sprint relay problem solution using mutex for UFRN DIM class DIM0612: Concurrent Programming.

License:GNU General Public License v3.0


Languages

Language:Go 100.0%