コード例 #1
0
        public int AddEntry(int pageNumber)
        {
            int entryNumber = AddToAccessList();
            int frame       = table[entryNumber].frame;

            table[entryNumber] = new PageTableEntry(pageNumber, frame);
            return(frame);
        }
コード例 #2
0
        public void AddEntry(PageTableEntry entry)
        {
            int entryNumber = AddToAccessList();

            table[entryNumber] = entry;
        }