Get CPU total

        // Get the total number of CPU 
        System. Out .println (Runtime.getRuntime (). AvailableProcessors ());

 

Guess you like

Origin www.cnblogs.com/rzkwz/p/12704271.html