[cs33211] OS Project 1 question

Mikhail Nesterenko mikhail at cs.kent.edu
Wed Oct 10 23:24:40 EDT 2012


> Professor Nesterenko,
> 
> I have just implemented the Project 1, Part 2 constructionzone code using
> only one mutex. However, I also used 3 condition_variables, several other
> boolean and integer variables, and a queue to keep track of oncoming
> traffic. Is this okay? The written directions indicate that you wanted to
> see multiple mutexes however today in class (10/10/12) you mentioned that
> there would be several ways of implementing this project, and my program
> does include a mutex, condition_variables, multi-threading, etc.

I am not sure how you use a queue, but a single mutex with several
condition variables and several integer variables (to keep track of
cars and pedestrians) can be used for a solution. Make sure your
solution complies with all the project requirements and test it with
various examples.

Thanks,
-- 
Mikhail


More information about the cs33211 mailing list