Skip to content

Repository for all the code written for Philosophers, a project of 42 Common Core.

License

Notifications You must be signed in to change notification settings

Kelho0812/Philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Repository for all the code written for Philosophers, a project of 42 Common Core.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published