Assignment 1

# Operating Systems Principles

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

CPSC435 (W2008) Operating Systems Answer key for Assignment 1 1. Solve Problem 1 (p. 66) in the textbook. S F p1 p2 p3 p4 p6 p5 p7 S F p1 p2 p3 p4 p5

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

View Full Document
2. Solve problem 2 (pp. 66-67) in the textbook. Note there are two parts in the problem. cobegin cobegin W = X1 * X2; Y = W * Y; // // V = X3 * X4; Z = W * Z; cobegin coend; Y = V * X5; A = Y + Z; // Z = V * X6; coend; coend; 3. Solve Problem 3(a) (p. 67) in the textbook. cobegin cobegin p3 // p1; cobegin p5 // p6 coend coend p2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // p4 coend 4. Transform the expression shown in the first part of Problem 2 (p. 66) in the text book ( i.e. W, V, Y, and Z) using fork , join , and quit primitives. t1 = 2; t2 = 2; fork L1; fork L2; L1: W = X1 * X2; join t1,L3; quit; L2: V = X3 * X4; join t1,L3; quit; L3: fork L4; fork L5; L4: Y = V * X5; join t2,L6; quit; L5: Z = V * X6; join t2,L6; quit; L6: quit;...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern