|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnachos.kernel.devices.InterruptHandler
nachos.kernel.devices.test.ConsoleTest.ConsHandler
private static class ConsoleTest.ConsHandler
Console interrupt handler class.
Field Summary | |
---|---|
private Semaphore |
semaphore
Semaphore used to awaken requesting thread. |
Constructor Summary | |
---|---|
ConsoleTest.ConsHandler(Semaphore s)
Initialize a handler with a given semaphore to use to wake up the requesting thread when the I/O is complete. |
Method Summary | |
---|---|
void |
serviceDevice()
To service a Console interrupt, just wake up the thread that requested the I/O. |
Methods inherited from class nachos.kernel.devices.InterruptHandler |
---|
handleInterrupt, yieldOnReturn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Semaphore semaphore
Constructor Detail |
---|
public ConsoleTest.ConsHandler(Semaphore s)
s
- The semaphore to use to wake up the requesting thread.Method Detail |
---|
public void serviceDevice()
serviceDevice
in class InterruptHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |