The purpose of this project is to learn the basics of threading and mutexes, while replicating the well-known Dining Philosophers problem.
For detailed info, refer to this project subject.
- GCC compiler
- Make utility
- Unix-like system (Linux, macOS, WSL)
-
APT
sudo apt install build-essential
-
Pacman
sudo pacman -Sy base-devel
-
Clone the repository:
git clone https://github.com/sdevsantiago/Philosophers.git cd Philosophers -
Compile the project:
make -C philo # Compile mandatory only -
Clean build files:
make -C philo clean # Remove object files make -C philo fclean # Remove all generated files make -C philo re # Rebuild everything from scratch
./philo 10 410 200 200The code strictly complies with 42's Norminette v4:
norminette *.c *.hMore info in the official Norminette repository.
- lrcouto and ayogun for creating and publishing, respectively, the 42-project-badges repository.
- gcamerli for creating the 42unlicense repository.
This work is published under the terms of 42 Unlicense. This means you are free to use, modify, and share this software.