multithreading - Programmatically find the number of CPUs on a machine (CPUS, not cores) -


is there way find programmatically (c code only, linux os) number of physical cpus (not cores) ? (something similar sysconf(_sc_nprocessors_conf))

all solutions found on site explain how find number of cores. need information set threads exchange data run on same physical cpu. can information /proc/cpuinfo prefer chose second option.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -