nachos.security
Interface Privilege.TCBPrivilege

Enclosing class:
Privilege

public static interface Privilege.TCBPrivilege

An interface that provides access to some private TCB methods.


Method Summary
 void associateThread(KThread thread)
          Associate the current TCB with the specified KThread.
 void authorizeDestroy(KThread thread)
          Authorize the TCB associated with the specified thread to be destroyed.
 

Method Detail

associateThread

void associateThread(KThread thread)
Associate the current TCB with the specified KThread. AutoGrader.runningThread() must call this method before returning.

Parameters:
thread - the current thread.

authorizeDestroy

void authorizeDestroy(KThread thread)
Authorize the TCB associated with the specified thread to be destroyed.

Parameters:
thread - the thread whose TCB is about to be destroyed.