long sleep = Long.MAX_VALUE; // sleep indefinately if no arg is given
// if argv[0] is present, use it to set the sleep time. ignore // all other arguments - some tests pass additional arguments to // differentiate or associate multiple sleeper processes. if (argv.length >= 1) { try {
sleep = Long.parseLong(argv[0]);
} catch (NumberFormatException e) {
System.err.println(USAGE);
System.exit(1);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.