Coursera assignment implementation for Dining Philosophers Problem