https://github.com/bebalix/philosopher
This project introduce to the concurrent programming with threads, mutexes and processes with the dining philosophers problem
https://github.com/bebalix/philosopher
42project concurrency langage-c mutex process thread
Last synced: 8 months ago
JSON representation
This project introduce to the concurrent programming with threads, mutexes and processes with the dining philosophers problem
- Host: GitHub
- URL: https://github.com/bebalix/philosopher
- Owner: BebAlix
- Created: 2022-08-16T12:50:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T11:13:16.000Z (about 3 years ago)
- Last Synced: 2025-01-16T15:25:29.153Z (over 1 year ago)
- Topics: 42project, concurrency, langage-c, mutex, process, thread
- Language: C
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# philosopher
Program who represente the dining philosophers problem with thread and mutex.
## How to launch the program
1. To compile the program :
```sh
$ make
```
2. To start the program :
```sh
$ ./philo [number_of_philosophers] [time_to_die] [time_to_eat] [time_to_sleep] [number_of_times_each_philosopher_must_eat]
```
3. Remove all :
```sh
$ make fclean
```