|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnachos.userprog.UserProcess
nachos.vm.VMProcess
public class VMProcess
A UserProcess that supports demand-paging.
Field Summary |
---|
Fields inherited from class nachos.userprog.UserProcess |
---|
coff, numPages, pageTable, stackPages |
Constructor Summary | |
---|---|
VMProcess()
Allocate a new process. |
Method Summary | |
---|---|
void |
handleException(int cause)
Handle a user exception. |
protected boolean |
loadSections()
Initializes page tables for this process so that the executable can be demand-paged. |
void |
restoreState()
Restore the state of this process after a context switch. |
void |
saveState()
Save the state of this process in preparation for a context switch. |
protected void |
unloadSections()
Release any resources allocated by loadSections(). |
Methods inherited from class nachos.userprog.UserProcess |
---|
execute, handleSyscall, initRegisters, newUserProcess, readVirtualMemory, readVirtualMemory, readVirtualMemoryString, writeVirtualMemory, writeVirtualMemory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VMProcess()
Method Detail |
---|
public void saveState()
saveState
in class UserProcess
public void restoreState()
restoreState
in class UserProcess
protected boolean loadSections()
loadSections
in class UserProcess
protected void unloadSections()
unloadSections
in class UserProcess
public void handleException(int cause)
handleException
in class UserProcess
cause
- the user exception that occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |