예제 #1
0
        public Process(int _pid, int _vmSize, PhysicalMemory pm)
        {
            pid    = _pid;
            vmSize = _vmSize;

            vm = new VirtualMemory(pid, vmSize);
            pt = new PageTable(vmSize, pid, vm, pm, this);
        }
예제 #2
0
 public PageTableEntry(int frameId, bool valid, bool resident, int pid, int step, PageTable _pageTable)
 {
     frameNumber  = frameId;
     validBit     = valid;
     residentBit  = resident;
     ownerPID     = pid;
     lastModified = step;
     pageTable    = _pageTable;
 }