nachos.security
Interface Privilege.TCBPrivilege
- Enclosing class:
- Privilege
- public static interface Privilege.TCBPrivilege
An interface that provides access to some private TCB methods.
associateThread
public 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
public 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.