It's UWAweek 42 (2nd semester, week 12)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying the 2 articles in this topic
Showing 2 of 738 articles.
Currently 88 other people reading this forum.


 UWA week 41 (2nd semester, week 11) ↓
SVG not supported

Login to reply

👍?
helpful

Question 1: In terms of disk initialization when saving all the 32 locations, should the pages be initialized in random order, or is it expected that the process pages will be initialized sequentially? For example, starting with process 0, page 0, page 1, and so on, then moving on to process 1, page 0, page 1, etc.

Question 2: Regarding the page table, can I assume that each process will always have a page table, regardless of whether it has any pages currently loaded into RAM? Based on this assumption, I’m using a single array to represent all the page tables (4 x 4) and updating it as needed, rather than creating separate arrays for each process and only generating them when the process is called and its first page is loaded into RAM. Does this approach align with the project’s expectations?


SVG not supported

Login to reply

👍?
helpful

ANONYMOUS wrote:

Question 1: In terms of disk initialization when saving all the 32 locations, should the pages be initialized in random order, or is it expected that the process pages will be initialized sequentially? For example, starting with process 0, page 0, page 1, and so on, then moving on to process 1, page 0, page 1, etc.

It can be initialized sequentially. So long as the disk starts with all the process pages inside. So, 0-3 pages for each of the 0-3 processes.

Question 2: Regarding the page table, can I assume that each process will always have a page table, regardless of whether it has any pages currently loaded into RAM? Based on this assumption, I’m using a single array to represent all the page tables (4 x 4) and updating it as needed, rather than creating separate arrays for each process and only generating them when the process is called and its first page is loaded into RAM. Does this approach align with the project’s expectations?

Yes, as the spec states if a page of a process isn't in RAM its entry in the page table is 99. So, having one array to represent the page table is fine.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy