In: Computer Science
For Figure, provide a narrative description of each of the six depicted paths, similar to the description of the paths of Figure 6.2 provided in Section 6.1.
1.
Q acquires B and A, and then releases B and A. When P resumes execution, it will be able to acquire both resources.
2.
Q acquires B and A. P executes and blocks on a request for A. Q releases B and A. When P resumes execution, it will be able to acquire both resources.
3.
Q acquires B and then P acquires and releases A. Q acquires A and then releases B and A. When P resumes execution, it will be able to acquire B.
4.
P acquires A and then Q acquires B. P releases A. Q acquires A and then releases B. P acquires B and then releases B.
5.
P acquires and then releases A. P acquires B. Q executes and blocks on request for B. P releases B. When Q resumes execution, it will be able to acquire both resources.
6.
P acquires A and releases A and then acquires and releases B. When Q resumes execution, it will be able to acquire both resources.
P acquires A and releases A and then acquires and releases B. When Q resumes execution, it will be able to acquire both resources