jeudi 7 mai 2015

STL said on his lecture on Going Native, that

Multiple threads cannot simultaneously call a single object.

(Last slide on pptx file online.)

If I need uniform distribution of random numbers across multiple threads (not independent random generators for threads), how to correctly use the same uniform_int_distribution from multiple threads? Or it is not possible at all?




Aucun commentaire:

Enregistrer un commentaire