PI Mutex Test

From RTwiki
(Difference between revisions)
Jump to: navigation, search
(Fix URL to PI Mutex test)
(External links)
Line 6: Line 6:
 
== External links ==
 
== External links ==
  
* [http://people.redhat.com/williams/tests/pi_tests-1.1.tar.gz PI Mutex Test sources]
+
* [http://people.redhat.com/williams/tests/pi_tests-1.3.tar.gz PI Mutex Test sources]
 +
 
 +
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.

Revision as of 20:14, 19 October 2006

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.

Personal tools