Add pi_tests


 The basic premise here is to set up a deadlock scenario and confirm that PI
 mutexes resolve the situation. Three worker threads will be created from the
 main thread: low, medium and high priority threads that use SCHED_FIFO as
 their scheduling policy. The low priority thread claims a mutex and then
 starts "working". The medium priority thread starts and preempts the low
 priority thread. Then the high priority thread runs and attempts to claim
 the mutex owned by the low priority thread. Without priority inheritance,
 this will deadlock the program. With priority inheritance, the low priority
 thread receives a priority boost, finishes it's "work" and releases the mutex,
 which allows the high priority thread to run and finish and then the medium
 priority thread finishes.

 That's the theory, anyway..."

From: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@328 592f7852-d20e-0410-864c-8624ca9c26a4
4 files changed
tree: 30e73e2049f1bdc6603b7d7db27d37e4e6a28dd1
  1. bin/
  2. deps/
  3. mirror/
  4. profilers/
  5. samples/
  6. tests/
  7. tko/
  8. tools/
  9. ui/
  10. DCO
  11. LICENSE