Skip to content

A program that solves the classic philosopher problem using threads and mutexes. The bonus is done using forks and semaphores instead.

Notifications You must be signed in to change notification settings

Asrasal47/42-Philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

42-Philosophers

Introduction

The mandatory part of this project asks us to solve the dining philosophers problem and implement a mutithreading solution. In order to better understand the solution that we are going to implement in this project I suggest you to read something about what a thread is and how multithreading works, I'll leave a couple of wikipedia references to start learning about these topics:

Clone the repository:

git clone https://github.com/Asrasal47/42-Philosophers.git

Navigate to the directory:

cd 42-Philosophers/philo && make

OR

cd 42-Philosophers/philo_bonus && make

Usage

To start the program, run the following command.

./philo

OR

./philo_bonus

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Fork the Project

Create your Feature Branch (git checkout -b feature/AmazingFeature)

Commit your Changes (git commit -m 'Add some AmazingFeature')

Push to the Branch (git push origin feature/AmazingFeature)

Open a Pull Request

About

A program that solves the classic philosopher problem using threads and mutexes. The bonus is done using forks and semaphores instead.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published