Instead of using two threads (for Process A, and B), make the program work with n threads. Use the symbolic constant value: MAXPROCESSES to define this value. You must use arrays to keep track of the different threads. b. The Scheduler class routines getMemory and returnMemory may be executed by multiple threads at the same time. Change the code to ensure that all shared variables in […]