



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
The cs162 fall 2004 midterm 1 exam for professor alan jay smith's computer science course. The exam covers various topics such as inverted page tables, segmentation, job scheduling, and mutual exclusion. Students are expected to answer questions related to these topics and demonstrate their understanding of the concepts.
Typology: Exams
1 / 7
This page cannot be seen from the preview
Don't miss anything!
(Total Points Possible: 100)
Process has-X has-Y max-needs-X max-needs-Y A 35 10 65 40 B 55 80 105 220 C 35 20 110 50 D 0 70 50 90
(a) available: X: 40 Y: 40 (b) available: X: 40 Y: 35
The following "code" was given in lecture to obtain mutual exclusion for a critical section. What's wrong with it? Please explain. (13)
Init: A = 0
loop: {increment A in memory, load A}, if A~=1, then {decrement A in memory}, go to loop
critical section here
{decrement memory location A}