Java In A Nutshell, 5th Edition

OperatingSystemMXBean java.lang.management

Java 5.0

This MXBean interface allows queries of the operating system name , version, and CPU architecture as well as the number of available CPUs.

public interface OperatingSystemMXBean { // Public Instance Methods String getArch ( ); int getAvailableProcessors ( ); String getName ( ); String getVersion ( ); }

Returned By

ManagementFactory.getOperatingSystemMXBean( )

Категории