Skip to content

42 project to grasp threading, forking, mutexes, and semaphores basics.

Notifications You must be signed in to change notification settings

TheoGuerin64/Philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Philosophers

This is my solution to the dining philosophers problem from 42.
Subject: en.subject.pdf

image

Usage

  • Clone the repo: git clone https://github.com/TheoGuerin64/Philosophers.git0.0
  • Go to the basic or bonus folder: cd philo|philo_bonus
  • Build: make
  • Run the executable:
    ./philo|philo_bonus <number of philosophers> <time to die> <time to eat> <time to sleep> [number of times each philosopher must eat]
    

About

42 project to grasp threading, forking, mutexes, and semaphores basics.

Topics

Resources

Stars

Watchers

Forks