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 157 other people reading this forum.


 UWA week 40 (2nd semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
10:42pm Mon 30th Sep, ANONYMOUS

Hi, will we be getting any samples similar to project 1? For example, if in.txt contains: 0 1 2 3 What should I expect from out.txt?


SVG not supported

Login to reply

👍x1
helpful
8:12am Tue 1st Oct, Joshua N.

ANONYMOUS wrote:
> Hi, will we be getting any samples similar to project 1? > For example, if in.txt contains: 0 1 2 3 > > What should I expect from out.txt?
The updated page table and RAM. 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0,0,0;0,0,0;0,1,1;0,1,1;0,2,2;0,2,2;0,3,3;0,3,3;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0; See here: [help2002]


SVG not supported

Login to reply

👍?
helpful
8:13am Tue 1st Oct, Joshua N.

"Joshua Noble" <22*6*9*8@s*u*e*t*u*a*e*u*a*> wrote:
> ANONYMOUS wrote: > > > Hi, will we be getting any samples similar to project 1? > > For example, if in.txt contains: 0 1 2 3 > > > > What should I expect from out.txt? > > The updated page table and RAM.
I forgot Amitava changed the spec, should be: 0 99 99 99 1 99 99 99 2 99 99 99 3 99 99 99 0,0,0;0,0,0;0,1,1;0,1,1;0,2,2;0,2,2;0,3,3;0,3,3;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;


SVG not supported

Login to reply

👍?
helpful
2:30pm Tue 1st Oct, ANONYMOUS

Hi, if there are only 5 integers in the in.txt, should I set my last 6 entries in out.txt to something like Empty? Also, is the format of out.txt defined? Or can I stylize it anyway I want? Eg in.txt: 0 1 2 3 0 out.txt: Process 0: 0, 4, 99, 99 Process 1: 1, 99, 99, 99 Process 2: 2, 99, 99, 99 Process 3: 3, 99, 99, 99 RAM Contents: 0,0,0; 0,0,0; 1,0,1; 1,0,1; 2,0,2; 2,0,2; 3,0,3; 3,0,3; 0,1,4; 0,1,4; Empty; Empty; Empty; Empty; Empty; Empty;


SVG not supported

Login to reply

👍?
helpful
8:03pm Tue 1st Oct, Joshua N.

ANONYMOUS wrote:
> Hi, if there are only 5 integers in the in.txt, should I set my last 6 entries in out.txt to something like Empty? Also, is the format of out.txt defined? Or can I stylize it anyway I want? > > Eg > > in.txt: > 0 1 2 3 0 > out.txt: > > Process 0: 0, 4, 99, 99 > Process 1: 1, 99, 99, 99 > Process 2: 2, 99, 99, 99 > Process 3: 3, 99, 99, 99 > RAM Contents: > 0,0,0; 0,0,0; 1,0,1; 1,0,1; 2,0,2; 2,0,2; 3,0,3; 3,0,3; 0,1,4; 0,1,4; Empty; Empty; Empty; Empty; Empty; Empty;
There is a specific format. Pretty much the one I provided. Except for the empty sections of the RAM because it isn't specified in the spec what should be printed if RAM is empty. Amitava would have to clarify.


SVG not supported

Login to reply

👍?
helpful
8:05pm Tue 1st Oct, Joshua N.

ANONYMOUS wrote:
> Hi, if there are only 5 integers in the in.txt, should I set my last 6 entries in out.txt to something like Empty? Also, is the format of out.txt defined? Or can I stylize it anyway I want? > > Eg > > in.txt: > 0 1 2 3 0 > out.txt: > > Process 0: 0, 4, 99, 99 > Process 1: 1, 99, 99, 99 > Process 2: 2, 99, 99, 99 > Process 3: 3, 99, 99, 99 > RAM Contents: > 0,0,0; 0,0,0; 1,0,1; 1,0,1; 2,0,2; 2,0,2; 3,0,3; 3,0,3; 0,1,4; 0,1,4; Empty; Empty; Empty; Empty; Empty; Empty;
Also, I should mention the contents of RAM I did was incorrect. The first digit should represent the process and the second should represent the page but I accidently did it the wrong way around.


SVG not supported

Login to reply

👍?
helpful
8:15pm Wed 2nd Oct, Joshua N.

I'll just change the output to avoid confusion. Shame there is no edit option on the forum: 0 99 99 99 1 99 99 99 2 99 99 99 3 99 99 99 0,0,0;0,0,0;1,0,1;1,0,1;2,0,2;2,0,2;3,0,3;3,0,3;Empty;Empty;Empty;Empty;Empty;Empty;Empty;Empty;

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