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