This is a deadlock free solution of dinning philospher problem using the concept of thread and semaphore.

In the main process five threads are spawned getting CPU cycle randomly.