/philosophers-42

thinking philosophers problem for 42 school

Primary LanguageC

Thinking philosophers

This is a 42 school project in which we must allow thinking philosophers to live as long as possible using

philo_one:

mutexes: pthread_mutex_lock()

philo_two:

semaphores: sem_wait()

philo_three:

semaphores in separate processes: fork() then sem_wait()