dimanche 25 septembre 2016

std::thread::hardware_concurrency is one , should I implement threading on my system

When I cout std::thread::hardware_concurrency it gives 1.

But from cppreference

Returns the number of concurrent threads supported by the implementation. The value should be considered only a hint.

Is there any use in implementing threads on my system, if the target if only my system?

Aucun commentaire:

Enregistrer un commentaire