Previous | Next --- Slide 8 of 66
Back to Lecture Thumbnails
juliewang

Did we ever clear up what the difference with between "hold and wait" and "no pre-emption"?

minglotus

(I also have this question and dig a little bit using Google and stack overflow resources)

On this wiki page (https://en.wikipedia.org/wiki/Deadlock), the key of no-preemption is like, a resource can be released only voluntarily by the process holding it; in other words, the OS intervention is not allowed, and the process couldn't withdraw the request.

My interpretation is like, if condition {1,2,4} are met, but condition 3 is not, chances are that, a processor is allowed to withdraw a request (like in the live-lock case), so deadlock will not happen.

Please log in to leave a comment.