File: README

package info (click to toggle)
rtlinux 3.1pre3-2
  • links: PTS
  • area: non-free
  • in suites: sarge, woody
  • size: 4,892 kB
  • ctags: 4,228
  • sloc: ansic: 26,204; sh: 2,069; makefile: 1,414; perl: 855; tcl: 489; asm: 380; cpp: 42
file content (9 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
This example demonstrate the use of mutexes in RTLinux programs.
The Linux init_module() function creates three threads that try to compete
for the mutex.  After successfully locking the mutex, each thread waits
for 500ms, and then unlocks the mutex.
The times spent in pthread_mutex_lock are reported
to show that the RT-threads actually block.

To run the example, type make test. You have to be at a Linux console (no X)
to see the results.