Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
H
I
J
K
L
M
N
O
P
R
S
T
U
W
A
arglist
- Variable in class
Kernel.Launcher
The list of arguments to this command.
B
BLOCK_SIZE
- Static variable in class
Disk
The size of a disk block in bytes.
Boot
- class
Boot
.
A bootstrap program for the MiniKernel.
Boot()
- Constructor for class
Boot
beginRead(int, byte[])
- Method in class
Disk
Starts a new read operation.
beginWrite(int, byte[])
- Method in class
Disk
Starts a new write operation.
br
- Static variable in class
Kernel
buffer
- Variable in class
Disk
Memory buffer to/from which current I/O operation is transferring.
busy
- Variable in class
Disk
An indication of whether an I/O operation is currently in progress.
C
Count
- class
Count
.
A very tiny example MiniKernel program.
Count()
- Constructor for class
Count
cacheSize
- Static variable in class
Kernel
The size of the disk cache
currentBlock
- Variable in class
Disk
Current location of the read/write head
D
DISK_SIZE
- Variable in class
Disk
Total size of this disk, in blocks.
Disk
- class
Disk
.
A software simulation of a Disk.
Disk(int)
- Constructor for class
Disk
Creates a new Disk.
Disk.DiskException
- exception
Disk.DiskException
.
The exception thrown when an illegal operation is attempted on the disk.
Disk.DiskException(String)
- Constructor for class
Disk.DiskException
data
- Variable in class
Disk
The data stored on the disk
delay(int)
- Method in class
Disk
Sleeps for a while to simulate the delay in seeking and transferring data.
delete()
- Method in class
Kernel.Launcher
Removes this Launcher from the set of all active Launchers.
disk
- Static variable in class
Kernel
The disk to be used
doExec(String, String[])
- Static method in class
Kernel
Loads a program and runs it in the background.
doExecAndWait(String, String[])
- Static method in class
Kernel
Loads a program and runs it.
doInput(StringBuffer)
- Static method in class
Kernel
Reads a line from the console into a StringBuffer.
doJoin(int)
- Static method in class
Kernel
Waits for a program previous started by doExec to terminate.
doOutput(String)
- Static method in class
Kernel
Displays a message on the console.
doPowerOn(int, Object, Object)
- Static method in class
Kernel
Performs the actions associated with a POWER_ON interrupt.
doShutdown()
- Static method in class
Kernel
Does any "shutdown" activities required after all activities started by a POWER_ON interrupt have completed.
E
ERROR_BAD_ARGUMENT
- Static variable in class
Kernel
An error code indicating that one of the system call parameters made no sense.
ERROR_BAD_COMMAND
- Static variable in class
Kernel
An error code indicating some unspecified problem running the class passed SYSCALL_EXEC.
ERROR_END_OF_FILE
- Static variable in class
Kernel
An error code indicating that end of file was reached.
ERROR_IN_CHILD
- Static variable in class
Kernel
An error code indicating that a child program caused an exception and crashed.
ERROR_IO
- Static variable in class
Kernel
An error code indicating that somthing went wrong during an I/O operation.
ERROR_NO_CLASS
- Static variable in class
Kernel
An error code indicating that the class name passed to SYSCALL_EXEC could not be found.
ERROR_NO_MAIN
- Static variable in class
Kernel
An error code indicating that the class name passed to SYSCALL_EXEC named a class with no appropriate main() method.
ERROR_NO_SUCH_PROCESS
- Static variable in class
Kernel
An error code indicating an attempt to join with a non-existant process
ERROR_OUT_OF_RANGE
- Static variable in class
Kernel
An error code indicating that one parameter was too big or too small
errorMessage
- Static variable in class
Library
A table of error messages corresponding to Kernel error return codes.
exec(String, String[])
- Static method in class
Library
Performs SYSCALL_EXEC.
F
finishOperation()
- Method in class
Disk
Indicates to the CPU that the current operation has completed.
flush()
- Method in class
Disk
Saves the contents of this Disk.
H
help
- Static variable in class
Shell
Help message, one line per element.
I
INTERRUPT_DISK
- Static variable in class
Kernel
An interrupt kind indicating that a disk caused the interrupt.
INTERRUPT_POWER_ON
- Static variable in class
Kernel
An interrupt kind indicating that the system just started.
INTERRUPT_USER
- Static variable in class
Kernel
An interrupt kind indicating that a user program caused the interrupt.
input(StringBuffer)
- Static method in class
Library
Performs SYSCALL_INPUT.
interrupt(int, int, int, Object, Object, byte[])
- Static method in class
Kernel
This is the only entry into the kernel.
isWriting
- Variable in class
Disk
An indication whether the current I/O operation is a write operation.
J
join(int)
- Static method in class
Library
Performs SYSCALL_JOIN.
joinAll()
- Static method in class
Kernel.Launcher
Waits for
all
existing Launchers to complete.
joinOne(int)
- Static method in class
Kernel.Launcher
Waits for a particular Launcher to complete.
K
Kernel
- class
Kernel
.
A simple kernel simulation.
Kernel()
- Constructor for class
Kernel
Kernel.Launcher
- class
Kernel.Launcher
.
A Launcher instance represents one atomic command being run by the Kernel.
Kernel.Launcher(String, String[])
- Constructor for class
Kernel.Launcher
Creates a new Launcher for a program.
L
Library
- class
Library
.
Convenience calls for using the Kernel.
Library()
- Constructor for class
Library
This private constructor ensures that no instances of Library are ever created.
M
main(String[])
- Static method in class
Boot
The main program.
main(String[])
- Static method in class
Count
The main program.
main(String[])
- Static method in class
Shell
The main program.
method
- Variable in class
Kernel.Launcher
The method being run by this command.
N
nextpid
- Static variable in class
Kernel.Launcher
Source of unique ids for Launcher instances.
O
output(String)
- Static method in class
Library
Performs SYSCALL_OUTPUT.
P
pid
- Variable in class
Kernel.Launcher
The process id of this command.
pidMap
- Static variable in class
Kernel.Launcher
Mapping of process ids (encoded as Integers) to Launcher instances.
pl(Object)
- Static method in class
Boot
Prints a message.
R
readCount
- Variable in class
Disk
A count of read operations performed, for statistics.
requestQueued
- Variable in class
Disk
A flag set by beginRead or beginWrite to indicate that a request has been submitted.
returnCode
- Variable in class
Kernel.Launcher
Return code returned by this command (0 if the command has not yet completed.
run()
- Method in class
Disk
This method simulates the internal microprocessor of the disk controler.
run()
- Method in class
Kernel.Launcher
Main loop of the Launcher
runCommandLine(String)
- Static method in class
Shell
Parses and runs one command line.
S
SYSCALL_EXEC
- Static variable in class
Kernel
System call to execute a new program.
SYSCALL_INPUT
- Static variable in class
Kernel
System call to read text from the console.
SYSCALL_JOIN
- Static variable in class
Kernel
System call to wait for a process to terminate.
SYSCALL_OUTPUT
- Static variable in class
Kernel
System call to output text on the console.
Shell
- class
Shell
.
A simple command-line shell for the MiniKernel.
Shell()
- Constructor for class
Shell
T
targetBlock
- Variable in class
Disk
The block number to be read/written by the current operation.
U
usage()
- Static method in class
Boot
Prints a help message and exits.
W
waitForRequest()
- Method in class
Disk
Waits for a call to beginRead or beginWrite.
writeCount
- Variable in class
Disk
A count of write operations performed, for statistics.
A
B
C
D
E
F
H
I
J
K
L
M
N
O
P
R
S
T
U
W
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes