This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pthread.h> | |
#include <semaphore.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
const int NUMBER_OF_PHILOSOPHERS = 5; | |
const int SEMAPHORE_ACROSS_THREADS = 0; | |
const int FORK_AVAILABLE = 1; |