MDAT
1.0
|
In this problem, there is a single restroom that can be used by both men and women but not at the same time. There is no limit to how many people can be in the restroom at once but they all have to be the same gender. There are two versions of this problem: (a) The initial version as described above. (b) Same as the initial version with the added restriction of having at most four people in the restroom at once.
The implementation is identical to that of the readers-writers problem except for the following differences:
sectionsA.c
for part a (initial version) and sectionsB.c
for part b (restricted version)Makefile
will create two executables mdatA
and mdatB
for parts a and b respectively.mdatB
.run-mdat.py
has an extra required parameter -m
a-or-b that indicates whether mdatA
or mdatB
should be run.