PI Mutex Test

From RTwiki
Revision as of 20:14, 19 October 2006 by Clark (Talk | contribs)

Jump to: navigation, search

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.

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.

Personal tools