|
Re: [RFC] shadow threads with prio 0 / SCHED_NORMAL: msg#00192linux.real-time.xenomai.devel
Jan Kiszka wrote: Philippe Gerum wrote: That's POSIX centric and seems acceptable, but the question remains open for the native API. Passing a null priority to rt_task_create would be way too confusing (i.e. a priority value should be an attribute of the scheduling class, not the other way around), hence the use of rt_task_shadow for this particular purpose. How much overhead would default-shadowing introduce when it is not used Memory is not an issue anyway, since we need a full shadow TCB to allow the underlying thread to wait for sync objects, and generally speaking, to use the RT infrastructure to its full extent. IOW, there is nothing to save here, an hybrid thread would just be a regular Xenomai shadow that _only_ happens to undergo the SCHED_OTHER policy. I could also imagine that SCHED_OTHER threads will get started in relaxed mode by default so that the Xenomai Yes, we could do that. But in any case, an hybrid would be allowed to switch to primary for the purpose of pending on synchronization objects, which in turn would give hybrids a higher priority than regular Linux SCHED_FIFO threads (i.e. threads not mapped to a Xenomai shadow) in this mode. -- Philippe. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [RFC] shadow threads with prio 0 / SCHED_NORMAL: 00192, Jan Kiszka |
|---|---|
| Next by Date: | Re: [REQUEST] eliminate the rthal_critical_enter/exit() from rthal_irq_request(): 00192, Dmitry Adamushko |
| Previous by Thread: | Re: [RFC] shadow threads with prio 0 / SCHED_NORMALi: 00192, Jan Kiszka |
| Next by Thread: | Re: [RFC] shadow threads with prio 0 / SCHED_NORMAL: 00192, Jan Kiszka |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |