Hi, I have the following questions about Project 2.
1. Based on the response in the post linked below which states that a process can only be loaded once, does this mean that after the fourth page (with page number 3) of a process has been loaded into RAM, no more pages of that process can be loaded into RAM (i.e. further appearances of the process in in.txt will be ignored after the fourth page of the process has been loaded into RAM)?
2. I have seen a response in a previous post state that we simply "move" pointers in and out of RAM.
But in my solution, before any pages are loaded into RAM, I initialise the RAM by filling it with struct pointers such that the fields (process_id, page_num, last_accessed) are all set to -1.
After this, I don't "move" any pointers in and out of RAM when I load a page as I just update the fields in the structs in the appropriate RAM array locations. Is what I am doing acceptable?
Thank you