So we've seen the problem...
But what does it mean?
The Dining Philosphers Problem is an interesting representation of a concurrency problem in Operating Systems.
There are many different guises of the problem, for example
Real Life Example
ND has the best football program in the whole country. But during their first season in 1887, Notre Dame could not afford enough jerseys and helmets for each player.* There were 100 players on the team, but with only 50 helmets and jerseys available. Each player needs to put on a helmet and a jersey in order to play.

Why would it be bad:
- There could be only 50 people at most playing at the same time.
- If someone played for a lot of time, then others would have limited playing time.
- Anyone Could not enter the game without a helmet or jersey.
- Deadlock happened if someone had only a helmet or a jersey.
- Starvation happened when no more helmets or jerseys were available.
Soultion:
- We can set up a rule that each player plays for a certain amount of time then gives his gear to another person; this rotation then repeats.
- If a player only has a helmet, he needs to pass his helmet on to someone who only has a jersey to avoid deadlock.
- Every ND player should play hard and respectfully.
* This scenario is not historically accurate
But what does this mean for operating systems?
In an operating systems situation we can think of the following:
- Philosophers are processes
- Chopsticks are resources that the processes need, for example, certain files
- All processes need to run correctly
These problems have parallels for operating systems.
- Deadlock would mean nothing would run or processes would not complete
- Starvation would mean certain porcesses would never finish
Either of these conditions would result in the operating system failing to perform it's task.
So how do we solve it?