moss.modules
Class UBusyLoop

java.lang.Object
  extended by moss.modules.UBusyLoop
All Implemented Interfaces:
MUserProcess

public class UBusyLoop
extends java.lang.Object
implements MUserProcess

this class creates several instances of itself at different priorities, that loop a few (10) thousand times printing out every 2000 loops. If the priority mechanism works, the higher-priority processes should complete before the lower-priority ones even print out their first line.


Constructor Summary
UBusyLoop()
           
 
Method Summary
 int main(java.lang.String[] argv, MEnv envp)
          program entry-point.
 void signal(int signo, java.lang.Object sigdata)
          signal handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UBusyLoop

public UBusyLoop()
Method Detail

main

public int main(java.lang.String[] argv,
                MEnv envp)
program entry-point.

Specified by:
main in interface MUserProcess
Parameters:
argv - command-line arguments
envp - process environment
Returns:
0 on success, or non-zero on failure

signal

public void signal(int signo,
                   java.lang.Object sigdata)
signal handler

Specified by:
signal in interface MUserProcess
Parameters:
signo - signal number
sigdata - signal specific data