0 votes 0 votes Deepalitrapti asked Jun 14, 2019 Deepalitrapti 434 views answer comment Share Follow See 1 comment See all 1 1 comment reply Ram Swaroop commented Jun 14, 2019 i edited by Ram Swaroop Jun 14, 2019 reply Follow Share Answer: C 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Answer -> C Ram Swaroop answered Jun 15, 2019 Ram Swaroop comment Share Follow See all 2 Comments See all 2 2 Comments reply Deepalitrapti commented Jun 15, 2019 reply Follow Share I didn't get 0 votes 0 votes Ram Swaroop commented Jun 15, 2019 reply Follow Share Dead lock : one or many process waiting for a resource that is occupied by others. If all waiting for infinite time this situation becomes deadlock. In question there are 5 resources R1,R2,R3,R4,R5 and three process.X,Y,Z. assume there is queue in which all process performing their task using above resource In option C 1. Firstx occupy R3, Y occupy R5 Z occupy R3 2. X request for R5 that is already taken by Y so x have need to wait untill Y release it. Y occupy R4 because it is free now Z request for R4 and wait till release by Y 3. X occupy R1 because it free now Y and Z only request for R1 untill release by X 4. X also occupy R2 because it also free Now X release R1and R2 and taken by Y and Z one by one in which order they request R4 and R5 release by Y and taken by X(R5) X release R3 and R5 taken by Z Finally Z release rest resources Hence there is no deadlock 0 votes 0 votes Please log in or register to add a comment.