00:02
Okay, continuing on our lovely journey of learning computer science, we're going to look a little bit more closely at processes and what happens when processes are trying to access the same thing at the same time, and they're both kind of stuck.
00:17
And the word for that is actually deadlock.
00:20
So if you have one process that's waiting for the printer to continue, but it's currently using the cd -rom drive, then you have another process that's currently using the printer, but once the cd -rom drive, they're both stuck.
00:32
And that creates that problem.
00:34
So there's kind of three conditions.
00:36
So either there's competition for something that's considered non -sharable or things are requested on a partial basis.
00:44
So when a process starts, it hasn't identified all the things it's going to need access to.
00:49
And the last thing is once you've given a resource to a process, you can't forcibly remove it or retrieve it.
00:55
And so there's different ways to deal with this.
00:58
When we deal with number three, when forcibly removing things, we're talking about like correcting or detecting deadlock.
01:05
So recognizing it's already happened, let's deal with it by killing some other processes to allow that to happen, like making room in the process table and things like that...