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 7 articles in this topic
Showing 7 of 738 articles.
Currently 76 other people reading this forum.


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

Login to reply

👍?
helpful
9:51pm Fri 11th Oct, Shuai S.

Could I clarify my out.txt results? Because I not very sure about those results are right or not. in.txt 0 0 0 0 0 1 1 0 0 0 1 1 2 out.txt 99,1,2,3 4,5,6,7 0,99,99,99 99,99,99,99 RAM Contents: 2,0,12;2,0,12;0,1,7;0,1,7;0,2,8;0,2,8;0,3,9;0,3,9;1,0,5;1,0,5;1,1,6;1,1,6;1,2,10;1,2,10;1,3,11;1,3,11; Another one is in.txt 0 0 0 0 0 1 1 0 0 0 1 1 2 3 3 2 1 2 output.txt 99,1,2,3 5,99,6,7 99,99,0,99 99,4,99,99 RAM Contents: 2,2,17;2,2,17;0,1,7;0,1,7;0,2,8;0,2,8;0,3,9;0,3,9;3,1,14;3,1,14;1,0,16;1,0,16;1,2,10;1,2,10;1,3,11;1,3,11;


SVG not supported

Login to reply

👍?
helpful
9:36am Sat 12th Oct, Joshua N.

"Shuai Shao" <23*0*8*4@s*u*e*t*u*a*e*u*a*> wrote:
> Could I clarify my out.txt results? Because I not very sure about those results are right or not. > > > in.txt > 0 0 0 0 0 1 1 0 0 0 1 1 2 > > out.txt > 99,1,2,3 > 4,5,6,7 > 0,99,99,99 > 99,99,99,99 > > RAM Contents: > 2,0,12;2,0,12;0,1,7;0,1,7;0,2,8;0,2,8;0,3,9;0,3,9;1,0,5;1,0,5;1,1,6;1,1,6;1,2,10;1,2,10;1,3,11;1,3,11; > > > > Another one is > in.txt > 0 0 0 0 0 1 1 0 0 0 1 1 2 3 3 2 1 2 > > output.txt > 99,1,2,3 > 5,99,6,7 > 99,99,0,99 > 99,4,99,99 > > RAM Contents: > 2,2,17;2,2,17;0,1,7;0,1,7;0,2,8;0,2,8;0,3,9;0,3,9;3,1,14;3,1,14;1,0,16;1,0,16;1,2,10;1,2,10;1,3,11;1,3,11;
Both seem correct.


SVG not supported

Login to reply

👍?
helpful
12:25pm Sat 12th Oct, Shuai S.

Thanks! Also one more quetion, in my out.txt should it show the "RAM Contents:" title in the text? Because now I just put all of those inside the out.txt


SVG not supported

Login to reply

👍?
helpful
4:00pm Sat 12th Oct, ANONYMOUS

I don't think it matters, as long as it is obvious that it is page table / RAM content. Also you should clarify for your project, you chose to load the process to RAM again instead of ignoring it. Below is how it'll look like if it was ignored in.txt 0 0 0 0 0 1 1 0 0 0 1 1 2 out.txt 99, 1, 2, 3 4, 5, 6, 7 0, 99, 99, 99 99, 99, 99, 99 2,0,12; 2,0,12; 0,1,1; 0,1,1; 0,2,2; 0,2,2; 0,3,3; 0,3,3; 1,0,5; 1,0,5; 1,1,6; 1,1,6; 1,2,10; 1,2,10; 1,3,11; 1,3,11; in.txt 0 0 0 0 0 1 1 0 0 0 1 1 2 3 3 2 1 2 out.txt 99, 99, 2, 3 4, 5, 6, 7 99, 99, 0, 99 99, 1, 99, 99 2,2,17; 2,2,17; 3,1,14; 3,1,14; 0,2,2; 0,2,2; 0,3,3; 0,3,3; 1,0,5; 1,0,5; 1,1,6; 1,1,6; 1,2,10; 1,2,10; 1,3,11; 1,3,11;


SVG not supported

Login to reply

👍?
helpful
6:16pm Sat 12th Oct, Kushan J.

Hey, I wanted to findout how the timesteps in the output are greater than 7? Because when a new frame is loaded onto memory. It resets the time to 0 again, it is mentioned in the specification.


SVG not supported

Login to reply

👍?
helpful
7:03pm Sat 12th Oct, Joshua N.

"Kushan Jayasekera" <24*0*1*3@s*u*e*t*u*a*e*u*a*> wrote:
> Hey, I wanted to findout how the timesteps in the output are greater than 7? > Because when a new frame is loaded onto memory. It resets the time to 0 again, it is mentioned in the specification.
Could you state exactly which part of the specification you are referring to? Or what it said exactly? I can't seem to find it. The spec states: "The last accessed time of a page will be the time step when you brought the page to RAM. For example, after reading this file, the first (or 0th page of process 0 will be brought to RAM), the last accessed time of this page will be 0, as the simulation starts now and time is 0. Time will increase by 1 for each entry in the file."


SVG not supported

Login to reply

👍?
helpful
7:04pm Sat 12th Oct, Joshua N.

"Shuai Shao" <23*0*8*4@s*u*e*t*u*a*e*u*a*> wrote:
> Thanks! Also one more quetion, in my out.txt should it show the "RAM Contents:" title in the text? Because now I just put all of those inside the out.txt
The spec doesn't specify the exact format. You would need to ask Amitava to be complete sure.

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