


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



CSE 430 OS/161 Assignments 1c Additional Synchronization Problem Revised Monday November 10, 2008 In this assignment you will code a test program that uses the synchronization functionality available in OS/161 and that exercises your understanding of concurrency. The entire Assignment 1 has 3 parts:
Stoplight Find a solution to synchronize the usage of the intersection to avoid gridlock. The intersection contains four quadrants as shown above, and cars travel on the right side of the road. A car traversing the intersection passes through one to three quadrants. Assume u-turns are prohibited at this intersection. For example, a car approaching from the North passes through the NW quadrant if turning right, the NW→SW quadrants if going straight, and the NW→SW→SE quadrants if turning left. Note that the order of traversal of the quadrants is significant. Before continuing think about the following two questions:
Project Deliverables and Grading One synchronization program called ASST1c is required. It can be either Stoplight or Bounded Buffer and is worth 5 points.