Class MemSys

java.lang.Object
  |
  +--MemSys

public class MemSys
extends java.lang.Object

The MemSys class represents the memory subsystem of an operating system.


Method Summary
static void createPageTable(PCB proc)
          MemSys.createPageTable(proc) creates a new page table with entry permissions determined by the image used by proc.
static void freeMemory(PCB proc)
          MemSys.freeMemory(proc) frees all of the memory held by proc and releases its swap space.
static void handlePageFault(int pageNum)
          MemSys.handlePageFault(pageNum) deals with a page fault at page pageNum in the currently executing process.
static void printFrameTable()
          MemSys.printFrameTable() prints the frame table in tabular form.
static void setPageTable(PCB proc)
          MemSys.setPageTable(proc) sets the PTBR to proc's page table and does any necessary local bookkeeping for a process switch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createPageTable

public static void createPageTable(PCB proc)
MemSys.createPageTable(proc) creates a new page table with entry permissions determined by the image used by proc. The new page table is assigned as the page table for proc.


freeMemory

public static void freeMemory(PCB proc)
MemSys.freeMemory(proc) frees all of the memory held by proc and releases its swap space.


setPageTable

public static void setPageTable(PCB proc)
MemSys.setPageTable(proc) sets the PTBR to proc's page table and does any necessary local bookkeeping for a process switch.


handlePageFault

public static void handlePageFault(int pageNum)
MemSys.handlePageFault(pageNum) deals with a page fault at page pageNum in the currently executing process.


printFrameTable

public static void printFrameTable()
MemSys.printFrameTable() prints the frame table in tabular form.