Part 1. For this part, you may use wait-chain diagrams as introduced in Chapter 7 to justify your answer. If you like, you can use some other notation that allows you to detect deadlock but you must still justify your answer.
i)There are 3 resources, G, H and J, each of which can be acquired and released (that is, locked and unlocked). There is one resource-usertype or class, Q. Each instance of Qrepeatedly executes this sequence:
It acquires resource G, and then resource H.
It then releases G and acquires resource J.
It then releases H and acquires G.
It then releases G and J.
How many instances of Qdoes it take to create deadlock?
ii)There are 5 resources, A, B, F, G, I, each of which can be acquired and released. There are two resource-user (or thread) types Sand T.
Each instance of Srepeatedly executes this sequence:
It acquires I, then A, and then G.
It releases A and G.
It acquires B.
It releases I and then B.
Each instance of Trepeatedly executes this sequence:
It acquires G and then F
It releases G
It acquires A
It releases F and then A
How many instances of Sdoes it take to create deadlock if there are no instances of T?
How many instances of Tdoes it take to create deadlock if there are no instance of S?
There are instances of Sand of T. How many instances of Sand how many instances of Tdoes it take to create deadlock?
Part 2:What is each node’s vectorclock value at the end? P1’s clock starts at (1, 0, 0). P2’s clock starts at (0, 1, 0). P3’s clock starts at (0, 0, 1).
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more