238 views
0 votes
0 votes
Suppose that you have coded the deadlock-avoidance safety algorithm and now have been asked to implement the deadlock-detection algorithm. Can you do so by simply using the safety algorithm code and redefining $Max_i$ = $Waiting_i$ + $Allocation_i$ , where $Waiting_i$ is a vector specifying the resources for which process $i$ is waiting and $Allocation_i$  specifies the resources currently allocated to process $P_i$ ? Explain your answer.

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
akash.dinkar12 asked Mar 20, 2019
243 views
$/* thread one runs in this function */void *do work one(void *param){pthread mutex lock(&first mutex);pthread mutex lock(&second mutex);/ * Do some work*/pthread mutex u...
0 votes
0 votes
0 answers
2
0 votes
0 votes
0 answers
3
0 votes
0 votes
0 answers
4