

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
A list of five questions from an operating systems and networking exam held in spring 2007 for cs330 students. The questions cover topics such as cpu scheduling, i/o utilization, mutual exclusion, and semaphore usage. Students are required to answer only five questions within the allotted time of 1 hour and 50 minutes.
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!
Answer only five from the following Allotted time: 1 hr and 50 minutes Date: March 19, 2007 Policy: Open notes, text and reference books.
cause some programs to take longer times to finish? Why, or why not?
The CPU is a technologically advanced organization. Consequently, their treasure chest is accessed only through a monitor. The three threads depicting our three heroes are indicated below: condition t; // trinket condition lock on chest; Peter and Paul: Get lock on chest; trinket = monitorCPU.delete(chest); Release lock; Mary: Get lock on chest; monitorCPU.insert(chest, trinket); Release lock; However, the threads are somehow not abiding by some mutual exclusion condition honored even among thieves. Correct the thread scripts (using a minimum number of corrections) so that they work.