final long[] allThreadIds = threads.getAllThreadIds();
final ThreadInfo[] allThreads = threads.getThreadInfo(allThreadIds);
int liveCount = 0;
for (ThreadInfo info : allThreads) {
if (info != null) {
final State state = info.getThreadState();
conditions.put(state, conditions.get(state) + 1);
liveCount++;
}
}
for (State state : new ArrayList<State>(conditions.keySet())) {