stress testing concurrency: how to slow down thread execution oin my application?

36 views Asked by At

I have hit situations where certain race conditions only occur when I run my application in the valgrind emulator. But if I run my executable as a normal program these issues did not occur.

My theory is that the emulator slows down execution so much that threads have larger common time frames in which they execute and can operate on shared data structures thereby increasing the chance of hitting race conditions on these shared resources.

I would like to have a more fine grained control on e.g. a virtual clock frequency by means of a specialized emulator.

Does somebody know about an existing tool to do this job. I have tried to search for this online. There should be some academic paper dealing with this. But so far I haven't found it yet.

0

There are 0 answers