Skip to content

pinkfloydsito/threads-lock-race-demo

Repository files navigation

Operating Systems - Nuclear Plant - bar's movement handler...

Basically I needed to simulate the movement of N bars that would change a value k selected by the user by the command line. The movement of each bar must be independent but there should be some kind of synchronization in order to check if the system is stable or not.

Getting Started

You can check the following link in order to understand the 4 kinds of threads that are being used in the project

Threads's diagram

Prerequisites

In order to see the UI you must have installed npm and Nodeinstalled in your computer. Also gcc and the library curl, and the library pthread

Deployment

  1. move to the folder webapp
  2. Install the dependencies using npm install
  3. Run the command npm run start and check the url localhost:3000
  4. go to the folder src and run the command make, the just execute ./nuclear and enjoy!

Screenshots

App console

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the operating systems, pthread.

Authors

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

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Project focused on Multi-Threading in C.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published