Giter Club home page Giter Club logo

philosophers's Introduction

Philosophers

Description: The Philosophers project is a simulation of the dining philosophers problem, a classic synchronization and concurrency challenge. It is implemented in C to explore multi-threading and synchronization concepts.

Features:

  • Simulation of the dining philosophers problem.
  • Multi-threading and synchronization in C.

How to Use:

  1. Clone the repository: git clone https://github.com/Kelho0812/Philosophers.git
  2. Navigate to the project directory: cd Philosophers
  3. Compile the program: make
  4. Run the simulation with specified arguments: ./philo [number_of_philosophers] [time_to_die] [time_to_eat] [time_to_sleep] [optional: number_of_times_to_eat]

Controls:

  • Adjust simulation parameters as needed.
  • The program simulates the dining philosophers problem with the specified parameters.

Additional Notes:

  • This project explores concurrency and synchronization challenges.
  • The number of times each philosopher must eat is optional.
  • This project is part of the 42Network Curriculum.

Contributing: Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License: This project is licensed under the MIT License.

Explore and experiment with the dining philosophers problem using this simulation!

philosophers's People

Contributors

kelho0812 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.