Add a priority inversion test for Semaphores.
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 17 May 2011 14:07:59 +0000 (14:07 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 17 May 2011 14:07:59 +0000 (14:07 +0000)
commit454e0296b7831a0fea4f5364040e02b923f4dd6e
treef4e149d1bbdf28dcd3691773f7483000356351be
parentad030f478d3e17130f6d9a36f90e843cf2e781d9
Add a priority inversion test for Semaphores.

Introduce a test case in sem_test.c for a typical priority
inversion situation where some high and low priority processes
share one or more semaphores and are disturbed by a non-interacting
medium priority process. The test shows, by logging the finishing
time of the procecsses, that the execution of an high priority
process can be noticeably delayed by someone with lower priority
because of interactions happening on semaphores.

Signed-off-by: Dario Faggioli <raistlin@linux.it>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4907 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/kern/sem_test.c
examples/demo/demo.c
examples/demo/demo.mk