Labs / Computer Science

Dining Philosophers

Five philosophers sit around a table, endlessly alternating between thinking and eating, but each one needs both neighbouring forks to eat. Start with the naive strategy and watch the table freeze when everyone grabs their left fork at once, then switch strategies to see how computer scientists dodge that trap. Tap any stuck philosopher to make them drop their forks and break the jam.

Eating 0Meals 0Status running

What to try