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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -