On Thu, May 19, 2011 at 8:35 PM, Gilles Chanteperdrix <[email protected]> wrote: > On 05/19/2011 08:30 PM, Jeff Weber wrote: >> If XENO_OPT_PRIOCPL is enabled, can a non-Xenomai Linux thread, created >> via __real_pthread_create() preempt a Xenomai primary-mode or Xenomai >> secondary-mode thread? > > a non-Xenomai Linux thread can preempt a Xenomai thread running in > secondary mode, independently from XENO_OPT_PRIOCPL. It can not preempt > a Xenomai thread running in primary mode, again, independently from > XENO_OPT_PRIOCTL. > > What XENO_OPT_PRIOCTL changes, is that a Xenomai thread running in > secondary mode can preempt a Xenomai thread running in primary mode. > >> >> For example, when the Linux kernel inherits the priority of a >> primary-mode thread to run it in secondary mode, can the kernel then >> discover some other Linux thread with better priority and preempt the >> secondary mode thread? > > Yes, it can, but as soon as it decides to switch to this thread, the > priority coupling ends, and the system switches to primary mode threads, > if one is runnable.
Be careful to rely on priority coupling though, it cannot always guarantee the scheduling it specifies. Be sure to read https://mail.gna.org/public/xenomai-help/2011-03/msg00165.html > > -- > Gilles. > > _______________________________________________ > Xenomai-help mailing list > [email protected] > https://mail.gna.org/listinfo/xenomai-help > _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
