mercredi 26 septembre 2018

How to create a race condition in C++

I want to test some Object's function for thread safety in a race condition. In order to test this I would like to call a function simultaneously from two (or more) different threads. How can I write code that guarantee that the function calls will occur at the same time or at least close enough that it will have the desired effect?

Aucun commentaire:

Enregistrer un commentaire