Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

number of cores c++

#include <thread>

//may return 0 when not able to detect
const auto processor_count = std::thread::hardware_concurrency();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #number #cores
ADD COMMENT
Topic
Name
9+2 =