00:01
All right.
00:02
Talking a little bit about sharing and deadlock again as we continue our cs learning journey here.
00:12
You know, it's an interesting problem to think about.
00:17
You know, you can imagine like a round table and you've got kind of a person.
00:23
One, two, three, four.
00:29
You got your five philosophers.
00:31
And then you've got your forks kind of in between, right? so the idea here is that the idea here is that if they want to eat, they need to take both forks.
00:48
And so, you know, when you're looking at trying to alternate between eating and thinking, if we imagine, let me do a different color here.
00:59
Let me go smaller.
01:01
If we imagine for a second here that this dude, it wants to start with eating, okay, but that immediately eliminates this one from eating.
01:11
It allows this one to eat, which eliminates this one and this one as well.
01:18
So now only these two are able to eat, but as soon as they try to alternate to thinking, and the other ones try to alternate eating, you're going to run into a problem, right? because, you know, this dude over here is going to be, oops, let's make it...