00:01
All right, continuing on our journey of learning computer science here, talking with deadlock execution.
00:07
So before we do anything else, let's consider what the three conditions are for deadlock.
00:11
So the first would be that they're competing for a non -shareable resource.
00:15
The next is that resources are requested partially.
00:19
And then after some resources are given, a process comes back to ask for more.
00:24
And the third condition is that once you've given a resource, you can't be forcibly retrieved.
00:30
So if we look at our example in a, if we let both students in the course, well, then there's no longer competition.
00:37
So we've solved number one.
00:40
And in b, if we reduce the class size in 19, so they can't register, we've also removed the competition.
00:47
Because now our non -sharable resource is full already.
00:50
So there is no competing for that resource...