Used std::thread::hardware_consurrency() to get processor count in Linux