moss.modules
Class UBusyLoop
java.lang.Object
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.
|
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 |
UBusyLoop
public UBusyLoop()
main
public int main(java.lang.String[] argv,
MEnv envp)
- program entry-point.
- Specified by:
main in interface MUserProcess
- Parameters:
argv - command-line argumentsenvp - 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 numbersigdata - signal specific data