Question: / / 1 7 marks ( 2 + 3 + 3 + 3 + 3 + 3 ) a . Please list all the pre
marks
a Please list all the preconditions for a deadlock to occur general conceptual question, please
do not answer it based on the following parts of this question, you may use them as an
example though
You are given tasks ABC and and resources and and their resource usage sharing.
Given ABC and D have the same priority, they can request the resources in any order and
cannot relinquish a resource till finished with the use.
b Can the above situation lead to a deadlock? Please explain your answer based on the
preconditions in part a
c Now in addition to all above details, also needs to use resource Can this situation lead to
a deadlock Please explain your answer based on the preconditions in part a ie what
changed or did not change enough to cause or avoid a deadlock.
d Now consider the situation in part c But now it is given that the tasks may request any
combination of resources but must do so in order ie before before Can this situation
lead to a deadlock Please explain your answer based on the preconditions in part a ie
what changed or did not change enough to cause or avoid a deadlock. Can you give one
reason why you think this enforcing ordering of requests is a good design choice or not
e Now consider the situation in part But now the tasks have different priorities ie
Lower number higher priority and scheduling is priority based preemptive.
We use priority inheritance to avoid priority inversion. Can it cause a deadlock Please
explain your answer based on the preconditions in part a ie what changed or did not change
enough to cause or avoid a deadlock.
f Why do you think might it be a good or bad idea to solve a deadlock after it happens by
making a process relinquish an acquired resource that is part of the deadlock? How does the
priority ceiling protocol fare in this aspect?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
