strOut.println();
}
}
}
ThreadMonitor threadMonitor = null;
if (threads) {
strOut.println();
strOut.println("Thread status:");
strOut.println("--------------");
threadMonitor = new ThreadMonitor();
threadMonitor.generateThreadInfo(strOut);
}
if (deadlocks) {
strOut.println();
strOut.println("Deadlock status:");
threadMonitor = threadMonitor != null ? threadMonitor : new ThreadMonitor();
String deadlock = threadMonitor.findDeadlock();
strOut.println(deadlock != null ? deadlock : "none");
}
if (loadAverage) {
strOut.println();