Lab IV: Virtual Memory Management
This lab contains two problems related to
The following files simulate
Question 1
Pick any process of your choice from the above. Assume a
Write an output on the screen every 1000 lines of the process showing the pages of the process in the main memory and the number of page faults until that time (from the beginning of the process).
Model the main memory as an array of
Increase the main memory size to 20 KB. Repeat the experiment with the same process and make a note of page faults after each 1000 lines of the process. Compare the numbers of page faults with those you observed earlier. Are there any instances where the number of page faults is more when the memory size is 20 KB?
Submit your outputs, source code and the names of the process data files that you used. Choose file names appropriately.
Question 2
In this question, select one more process from the files above. Repeat the above question but now assume that each process is given