PI Mutex Test
From RTwiki
This regression test suite was written by User:Clark to test the classic three-way Priority Inversion deadlock and shows that Priority Inheritance mutexes will avoid this deadlock.
TODO
|
Add documentation about using the test suite
|
External links
This tarball contains the source code for two test programs:
classic_pi - a program that demonstrates how a PI mutex can resolve a Priority Inversion deadlock
pi_stress - a stress test that runs groups of threads that cause Priority Inversions
You should be able to untar the archive into a directory and run 'make'. If your C library supports the Priority Inheritance attribute of pthread mutexes, the programs should build.