AllThreadIds.java revision 2495
public class AllThreadIds {
private static boolean testFailed = false;
private static boolean trace = false;
private static void printThreadList() {
if (!trace) return;
trace = true;
int numTerminatedThreads)
throws Exception {
trace = true;
live[i] = true;
boolean found = false;
if (trace) {
found = true;
if (!found) {
testFailed = true;
if (trace) {
if (!found) {
if (trace) {
live[i] = false;
pause();
boolean found = false;
if (trace) {
found = true;
testFailed = true;
if (trace) {
live[i] = false;
pause();
if (testFailed)
int id;
public void run() {
} catch (InterruptedException e) {
testFailed = true;
private static void pause() {
synchronized (pauseObj) {
} catch (Exception e) {