On Mon, Apr 7, 2008 at 1:32 PM, Thomas Wiedemann
> Hi folks,
>  i think there is a problem with the xenomai scheduler or the sched_yield()
>  call, when using the POSIX skin (Xenomai 2.4.3, Linux, SMP,
>  .config is attached).

The semantic of sched_yield() is a bit specific: it causes threads
running in primary mode to yield to other threads running in primary
mode. To get threads running in secondary mode to yield to other
threads running in secondary mode, you have to call

Your example is of little interest when run with Xenomai: it only
calls vanilla Linux calls, so the threads are always running in
secondary mode. Xenomai brings you nothing (except overhead) in this


Xenomai-core mailing list

Reply via email to