|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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 UserProcesspublic void restoreState()
restoreState in class UserProcessprotected boolean loadSections()
loadSections in class UserProcessprotected void unloadSections()
unloadSections in class UserProcesspublic void handleException(int cause)
handleException in class UserProcesscause - the user exception that occurred.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||