Skip to content

Instantly share code, notes, and snippets.

@aerodame
Created April 29, 2015 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aerodame/0d85adcbd2070cdd0643 to your computer and use it in GitHub Desktop.
Save aerodame/0d85adcbd2070cdd0643 to your computer and use it in GitHub Desktop.
SyncQueue WaitQueue
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