Thread.activeCount() mainstream IDE return value

 Thread.activeCount() return value

 

public class ThreadActiveCountTest {
	 public static void main(String[] args) {
		 System.out.println(Thread.activeCount());
	 }
}

 

 

    Thread.activeCount() This method returns the number of active threads in the current thread's thread group.
    The values ​​returned by the IDE are not the same, 1 is returned in Eclipse, and 2 is returned in Intellij idea.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326420981&siteId=291194637