Created
April 29, 2015 05:41
-
-
Save aerodame/0d85adcbd2070cdd0643 to your computer and use it in GitHub Desktop.
SyncQueue WaitQueue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Kernel | |
{ | |
private static SyncQueue waitQueue; | |
... | |
public static int interrupt( int irq, int cmd, int param, Object args ) { | |
TCB myTcb; | |
switch( irq ) { | |
case INTERRUPT_SOFTWARE: // System calls | |
switch( cmd ) { | |
case BOOT: | |
... | |
waitQueue = new SyncQueue( scheduler.getMaxThreads( ) ); | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment