Class LogicalProcessorInformation


  • @ThreadSafe
    public final class LogicalProcessorInformation
    extends java.lang.Object
    Utility to query Logical Processor Information
    • Field Detail

      • IS_WIN10_OR_GREATER

        private static final boolean IS_WIN10_OR_GREATER
    • Constructor Detail

      • LogicalProcessorInformation

        private LogicalProcessorInformation()
    • Method Detail

      • getPhysProcs

        private static java.util.List<CentralProcessor.PhysicalProcessor> getPhysProcs​(java.util.List<com.sun.jna.platform.win32.WinNT.GROUP_AFFINITY> cores,
                                                                                       java.util.Map<com.sun.jna.platform.win32.WinNT.GROUP_AFFINITY,​java.lang.Integer> coreEfficiencyMap,
                                                                                       java.util.Map<java.lang.Integer,​java.lang.Integer> corePkgMap,
                                                                                       java.util.Map<java.lang.Integer,​java.lang.String> coreCpuidMap)
      • getMatchingPackage

        private static int getMatchingPackage​(java.util.List<com.sun.jna.platform.win32.WinNT.GROUP_AFFINITY[]> packages,
                                              int g,
                                              int lp)
      • getMatchingCore

        private static int getMatchingCore​(java.util.List<com.sun.jna.platform.win32.WinNT.GROUP_AFFINITY> cores,
                                           int g,
                                           int lp)
      • getBitMatchingPackageNumber

        private static int getBitMatchingPackageNumber​(java.util.List<java.lang.Long> packageMaskList,
                                                       int logProc)
        Iterate over the package mask list and find a matching mask index
        Parameters:
        packageMaskList - The list of bitmasks to iterate
        logProc - The bit to find matching mask
        Returns:
        The index of the list which matched the bit