8 Replies - 622 Views - Last Post: 30 March 2013 - 04:36 PM Rate Topic: -----

#1 mikex6989  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 101
  • Joined: 18-February 11

Dispatching and Paging Memory System Simulation

Posted 29 March 2013 - 07:04 PM

-

This post has been edited by mikex6989: 30 March 2013 - 02:44 PM

Is This A Good Question/Topic? 0
  • +

Replies To: Dispatching and Paging Memory System Simulation

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,495
  • Joined: 23-August 08

Re: Dispatching and Paging Memory System Simulation

Posted 30 March 2013 - 03:03 AM

Quote

Now apparently my program is not doing what the above description is asking


In what way? Have you tried stepping through the program in the debugger? You also are using some QueueHelper class of which we're not aware (not familiar to me anyway).
Was This Post Helpful? 0
  • +
  • -

#3 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5476
  • View blog
  • Posts: 11,762
  • Joined: 02-June 10

Re: Dispatching and Paging Memory System Simulation

Posted 30 March 2013 - 06:21 AM

Quote

I am having trouble figuring out what the program is supposed to do.
{...}
I am confused on this statement:

"If a page (or, rather its number) is not in any page frame, then a page replacement algorithm must be invoked to perform page replacement (simply replacing a victim page number by the referenced page number)."


Then you should probably be talking to your professor to get some clarification on what exactly (s)he wants - not how a bunch of strangers interpret those instructions. You can't build what you don't comprehend.
Was This Post Helpful? 0
  • +
  • -

#4 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3548
  • View blog
  • Posts: 10,989
  • Joined: 05-May 12

Re: Dispatching and Paging Memory System Simulation

Posted 30 March 2013 - 07:02 AM

The C# code above looks like somebody just transliterated C code from an older Operating Systems class instead of actually taking full advantage of the power of abstraction provided by classes. I think that closest use of classes is the use of the QueueHelper class, but even as a class, it still seems to be used like a C API rather than C# object.
Was This Post Helpful? 0
  • +
  • -

#5 mikex6989  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 101
  • Joined: 18-February 11

Re: Dispatching and Paging Memory System Simulation

Posted 30 March 2013 - 10:13 AM

-

This post has been edited by mikex6989: 30 March 2013 - 02:44 PM

Was This Post Helpful? -2
  • +
  • -

#6 Momerath  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1010
  • View blog
  • Posts: 2,444
  • Joined: 04-October 09

Re: Dispatching and Paging Memory System Simulation

Posted 30 March 2013 - 02:34 PM

I know I'm violating the unwritten rule of not quoting the post right above mine, but I need to in this case :)

View Postmikex6989, on 30 March 2013 - 09:13 AM, said:

... my professor said I am not implementing this correctly.


Then you tell him he's failed as a teacher. It's his JOB to instruct you. You pay money for his instruction. Go back to him and tell him to do his JOB and help you understand.
Was This Post Helpful? 0
  • +
  • -

#7 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2253
  • View blog
  • Posts: 9,443
  • Joined: 29-May 08

Re: Dispatching and Paging Memory System Simulation

Posted 30 March 2013 - 04:09 PM

Momerath: quoting the entire post is frowned upon,small sections to highlight things is ok.
Was This Post Helpful? 0
  • +
  • -

#8 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3354
  • View blog
  • Posts: 11,353
  • Joined: 12-December 12

Re: Dispatching and Paging Memory System Simulation

Posted 30 March 2013 - 04:17 PM

Argh! The OP has deleted his entire posts.. what a waste of time!
Was This Post Helpful? 0
  • +
  • -

#9 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10462
  • View blog
  • Posts: 38,773
  • Joined: 27-December 08

Re: Dispatching and Paging Memory System Simulation

Posted 30 March 2013 - 04:36 PM

The OP will be moved to the restricted editors group.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1