public class ThreadTest { public static volatile int count = 0; public static AtomicInteger atomicCount = new AtomicInteger(0); public static void mai Read More
posted @ 2022-06-23 23:02 活出自己范儿 Views(37) Comments(0) Diggs(0)
1、获取CPU核数 Runtime.getRuntime().availableProcessors(); 执行结果:8 Read More
posted @ 2022-06-23 22:52 活出自己范儿 Views(108) Comments(0) Diggs(0)