Automata | Comp. Sc. Engg.

Dining Philosophers

Imagine three philosophers numbered P0, P1, and P2 seated around a table with a bowl of spaghetti in the middle. They decide to eat out of the same spaghetti bowl as well as share forks as per the following rules:4 P0 would eat with F0 and F1 in his right