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.Write a monitor toc oordinate access to the file.