It is a program written in C using pthread library to do multithread processing with mutexes. This program provides an alternative way to do fork assignment with the best efficiency for a small number of philosopher whenever there are two forks available for the processing. Disclaimer: this version won't pass the school evaluation test with 200 philosophers.
kristykawai / philo Goto Github PK
View Code? Open in Web Editor NEWphilosophers (thread and mutex management)