A file is to be shared among different processes, each of which has a unique num
ID: 674691 • Letter: A
Question
A file is to be shared among different processes, each of which has a unique number. The file can be accessed simultaneously by several processes, subject to the following constraint: The sum of all unique numbers associated with all the processes currently accessing the file must be less than n. Using pseudocode, write a monitor to coordinate access to the file