nachos.security
Interface Privilege.InterruptPrivilege

Enclosing class:
Privilege

public static interface Privilege.InterruptPrivilege

An interface that provides access to some private Interrupt methods.


Method Summary
 void schedule(long when, String type, Runnable handler)
          Schedule an interrupt to occur at some time in the future.
 void tick(boolean inKernelMode)
          Advance the simulated time.
 

Method Detail

schedule

void schedule(long when,
              String type,
              Runnable handler)
Schedule an interrupt to occur at some time in the future.

Parameters:
when - the number of ticks until the interrupt should occur.
type - a name for the type of interrupt being scheduled.
handler - the interrupt handler to call.

tick

void tick(boolean inKernelMode)
Advance the simulated time.

Parameters:
inKernelMode - true if the current thread is running kernel code, false if the current thread is running MIPS user code.