Implementation of Dining-Philosophers Problem