Progress of Q Release A Pand Q want A A Release Required Get A 3 Deadlock inevitable Pand Q want B B Required Get B 4 Progress of P Get Al Get B Release A Release B = Both Pand Q want resource A Both...


Progress<br>of Q<br>Release<br>A<br>Pand Q<br>want A<br>A<br>Release<br>Required<br>Get A<br>3<br>Deadlock<br>inevitable<br>Pand Q<br>want B<br>B<br>Required<br>Get B<br>4<br>Progress<br>of P<br>Get Al<br>Get B Release A Release B<br>= Both Pand Q want resource A<br>Both Pand Q want resource B<br>A<br>Required<br>B Required<br>- Deadlock-inevitable region<br>- Possible progress palth of Pand Q<br>Horizontal pontion of path indicates Pis executing nd Q is waiting.<br>Vertical portion of path indicates Qis executing and Pis waiting.<br>1. Describe the deadlock scenario illustrated above based on your understanding. (5 points)<br>2. What do you think would happen if both Process Pand Q need to get the same resource? (5 points)<br>3. Which concurrency mechanism would you suggest that might prevent the deadlock situation above?<br>Rationalize your answer. (5 points)<br>4. Define in detail the Execution Paths 2 to 6. (5 items x 3 points)<br>Example: Execution Path 1- Process Q acquires Resource B and then Resource A. Process<br>Q then releases Resource B and A, respectively.<br>5. Do Execution Paths 3 and 4 encompass the first three conditions for a deadlock to occur? Explain your<br>answer. (5 points)<br>

Extracted text: Progress of Q Release A Pand Q want A A Release Required Get A 3 Deadlock inevitable Pand Q want B B Required Get B 4 Progress of P Get Al Get B Release A Release B = Both Pand Q want resource A Both Pand Q want resource B A Required B Required - Deadlock-inevitable region - Possible progress palth of Pand Q Horizontal pontion of path indicates Pis executing nd Q is waiting. Vertical portion of path indicates Qis executing and Pis waiting. 1. Describe the deadlock scenario illustrated above based on your understanding. (5 points) 2. What do you think would happen if both Process Pand Q need to get the same resource? (5 points) 3. Which concurrency mechanism would you suggest that might prevent the deadlock situation above? Rationalize your answer. (5 points) 4. Define in detail the Execution Paths 2 to 6. (5 items x 3 points) Example: Execution Path 1- Process Q acquires Resource B and then Resource A. Process Q then releases Resource B and A, respectively. 5. Do Execution Paths 3 and 4 encompass the first three conditions for a deadlock to occur? Explain your answer. (5 points)
6. If you are to implement deadlock prevention before the processes above reach the critical section,<br>would it be an indirect method or an indirect method? Why? (5 points)<br>7. Which deadlock avoidance approach would you suggest for the given situation above and why? (5<br>points)<br>8. Would you agree that deadlock is relative to the number of processes and available resources in an<br>operating system? Why or why not? (5 points)<br>9. If you are asked to reconstruct the progress diagram above to eliminate the critical section, which is the<br>deadlock-inevitable region, which aspect(s) or area(s) would you modify? Explain how the modification<br>eliminates the deadlock. (5 points)<br>

Extracted text: 6. If you are to implement deadlock prevention before the processes above reach the critical section, would it be an indirect method or an indirect method? Why? (5 points) 7. Which deadlock avoidance approach would you suggest for the given situation above and why? (5 points) 8. Would you agree that deadlock is relative to the number of processes and available resources in an operating system? Why or why not? (5 points) 9. If you are asked to reconstruct the progress diagram above to eliminate the critical section, which is the deadlock-inevitable region, which aspect(s) or area(s) would you modify? Explain how the modification eliminates the deadlock. (5 points)
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here