Making a page replacement algorithm in VB.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 2USERNAME2
    New Member
    • Mar 2008
    • 2

    Making a page replacement algorithm in VB.net

    I have a problem to code a page replacement algorithm simulation in VB.net (.net 2), I have the random numbers that represent the pages that will be used, and I have been able to put the first pages in to 'memory' (the memory size is stored in a variable). I try to program First-in/first out, Least recently used and optimal, but I have no idea how to do it. Can someone please help me? I have tried in many days.

    more info: http://en.wikipedia.or g/wiki/Page_replacemen t_algorithm#Pag e_replacement_a lgorithms
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    You are attempting to simulate a paging system?
    There are some pre-built objects that could be usefull like the Queue (first in - first out) and Stack (first in - last out)

    Comment

    • 2USERNAME2
      New Member
      • Mar 2008
      • 2

      #3
      Can you show me? I use ASP.net

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        MSDN the objects

        Comment

        Working...