Skip to main content
Windward

Determining the Number of Cores for Your System

Overview

This article will help you determine the number of cores your target system contains by providing directions for test programs, task managers, and other helpful information.

Details

A system may contain multiple physical CPUs (central processing unit), and can contain one or more cores (processors).  To find the total number of cores that Windward's licensing program will report you must multiply the total number of physical CPUs by the number of cores contained within each CPU.

 

Example: A system that has 2 dual core CPUs would be 2 physical CPUs at 2 cores (dual core) for each CPU.

 

2 CPUs x 2 cores per CPU = 4 total cores

 

AutoTag no longer limits its license key by cores. You can run an AutoTag license on a machine with as many cores as you would like. However, the number of cores is important for the Windward Engines (Java and .NET).

Finding the Cores for Windward's Java Engine

Windward Studios makes a native Java call from the core Java API that returns the number of cores (processors) the host operating system sees: Run the code below to see how many cores (processors) Windward will recognize your target system is running.

 

NOTE: This call requires that at least Java 1.4 is installed and Java must able to be called on your system.  If Java is not in your path, navigate to the directory where Java binaries (exe for Windows) are installed in order to run Java and Javac programs.

 

From the Java API: https://docs.oracle.com/javase/7/docs/api/ this is the native call that is being used in the test program above:

Runtime.getRuntime().availableProcessors();

This returns the total number of cores (processors) available to the Java virtual machine which lets you know the maximum number of cores required by a Windward license key.

 

Steps for Java Engine:

  • Download the test program here:NumberofCores.zip
  • Extract the contents of NumberofCores.zip to a folder on your system
  • Open a command prompt on your system
    • ​Windows:

      • ​At the command prompt run the file "run.bat"
      • The output will be as follows: 
OUTPUT:                                                                                     C:\Prompt\NumberofCores>java -cp . NumberOfCores
Total number of system cores(processors): 8
  • Unix:

    • Compile the java program first with the following command
    • [root@machinename]$ javac NumberOfCores.java
    • ​At the command prompt run the following command 
    • [root@machinename]$ java -cp . NumberOfCores
OUTPUT:                                                                                           [root@machinename]$ java -cp . NumberOfCores   Total number of system cores(processors): 8

Finding the Cores for Windward's .NET Engine

Windows operating systems have two ways of finding the total number of cores (processors) the system contains, via the MSInfo32 program or the task manager.  Both are demonstrated below.

 

Using MSInfo32.exe

Using MSInfo32.exe to find the total number of cores (processors) on your system

  • If you are on a MS Windows system you can go to Start->Run. (Alternatively, you could use the key combination Windows key + R)CoreCount1.png
  • When the Run dialog opens enter the text msinfo32.exe and click OK

CoreCount2.png

 

Note:Alternatively in Windows 8 you can simply type "msinfo32.exe" in the full screen start menu to achieve the same effect, or use the key combination Windows key + R

 

  • When the System Information window loads make sure you have "System Summary" selected and look at the field "Processor".  This will list both the number of cores per each physical CPU as well as the total number of logical processors.  This total number of logical processors is the number of physical CPUs multiplied by the number of cores per CPU.  
  • In the example below we have each physical CPU containing 4 cores.  There are 2 physical CPUs on the system so 2 CPUS X 4 cores each CPU = 8 total cores.  This is the total number of cores (processors) on your system.CoreCount3.png

 

 

Using the Windows Task Manager

Using the Windows Task Manager to find the total number of cores (processors) on your system.

  • Right click on the taskbar and select "Start Task Manager"

CoreCount4.png

  • In the Task Manager window select the "Performance" tab

CoreCount5.png

 

  • From the "View" menu select "CPU History" and select "One Graph Per CPU"

CoreCount6.png

 

  • You will now see each core displayed as a separate graph under the "CPU Usage History" section.  Simply count the number of graphs and that is the total core (processor) count for you system.

CoreCount7.png

 

  • Alternatively, in Windows 8, you can see the number of cores directly from the task manager.

Windows 8 Task Manager