{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

mid2 - CS 470 Exam 2 Maximum points 100 Note Answer all...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 470 - Exam 2 November 18, 2005 Maximum points 100 Note: Answer all questions. Your answers should be precise to the point. Show your work to get partial credit for problems involving computation. In true/false questions true means “ always true ”, false means “ sometimes true or never true 1. (Deadlocks) (a) Consider a system with four processes P 1 ,P 2 ,P 3 ,P 4 and three resource types A,B,C . Suppose the following snapshot of the system is taken at time T 0 : Allocation Max Available ========== === ========= A B C A B C A B C P1 5 3 6 5 5 7 2 2 4 P2 1 2 0 6 3 3 P3 2 3 2 3 3 2 P4 3 2 1 7 5 3 Is this state a safe state? Justify your answer. At this state, if P 2 makes a request for 2 units of A and 2 units of B and 0 units of C , can the request be granted without taking the system to an unsafe state? Justify your answer . (15 points)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
(b) (Deadlocks) i. State whether each of the following statements is true or false. Justify your answer . (15 points) A. If there is a cycle in the Resource Allocation Graph, then the processes involved in the cycle are deadlocked.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern