N processes and M types of processes - enter and exit cs
- by sarit
i was asked to write: enter function and exit function for the following case:
there are N processes and M types of processes (NM)
tere is a critical section in which all processes with the same type can enter.
for example: if type A is in cs, type B cannot enter cs. but all processes with type A can enter.
i can use only mutex and "type" which…