Java examples for java.lang:Thread
get Thread Count
/**/* ww w . j a v a 2 s .com*/ * Project: richContentMediaSearchService * ROLE-Project * authors: daniel.dahrendorf@im-c.de, julian.weber@im-c.de * This software uses the GNU GPL */ //package com.java2s; public class Main { public static void main(String[] argv) throws Exception { System.out.println(getThreadCount()); } public static int getThreadCount() { return Thread.activeCount(); } }