publicstaticvoid main(String[] args) throws Exception { // create a random thread group, and run a thread in that group to // fetch the VirtualMachineManager
ThreadGroup tg = new ThreadGroup("Gus");
Fetcher fetcher = new Fetcher(); Thread thr = newThread(tg, fetcher);
thr.start(); try {
thr.join();
} catch (InterruptedException x) { } // now destroy the thread group
tg.destroy();
// run the test new ThreadGroupTest(args).startTests();
}
/********** test core **********/
protectedvoid runTests() throws Exception {
// run the target until it completes
startToMain("ThreadGroupTarg");
listenUntilVMDisconnect();
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.