static bool isSystemThread(Thread t) { ThreadGroup g = t.getThreadGroup(); ret g != null && g.getName().equals("system"); }