Lab VII: Memory Management

Date: 3 October 2019

In this lab, you will be extending the process simulator and memory manager written in the last lab. Many processes will be loaded into memory concurrently. However, we still assume that the total memory required for all the processes is less than the available physical memory. The process PIDs will start at 1 and sequentially go up to the number of processes (NP). NP is a global variable.

Write the following programs:


If you need help in design, here is a header file. You don't have to use this but in case you are short of ideas, you can use it.