Re: SCHED_WEAK vs linux regular threads

2019-08-01 Thread Julien Blanc via Xenomai
Le jeudi 01 août 2019 à 13:25 +0200, Jan Kiszka a écrit : > On 01.08.19 11:53, Julien Blanc via Xenomai wrote: > > Hi, > > > > Let’s say i have four threads : > > * thread 1, RT, with SCHED_FIFO policy and a sched_param value of > > 90 > > * thread 2, RT, with SCHED_WEAK policy and a sched_param

Re: SCHED_WEAK vs linux regular threads

2019-08-01 Thread Philippe Gerum via Xenomai
On 8/1/19 11:53 AM, Julien Blanc via Xenomai wrote: > Hi, > > I'm a bit puzzled about how SCHED_WEAK behaves vs linux regular > threads. > > Suppose a kernel built without CONFIG_XENO_OPT_SCHED_WEAK (so, only 0 > is a valid value for sched_priority, which should be the same as > SCHED_OTHER). >

Re: SCHED_WEAK vs linux regular threads

2019-08-01 Thread Jan Kiszka via Xenomai
On 01.08.19 11:53, Julien Blanc via Xenomai wrote: > Hi, > > I'm a bit puzzled about how SCHED_WEAK behaves vs linux regular > threads. > > Suppose a kernel built without CONFIG_XENO_OPT_SCHED_WEAK (so, only 0 > is a valid value for sched_priority, which should be the same as > SCHED_OTHER). >

SCHED_WEAK vs linux regular threads

2019-08-01 Thread Julien Blanc via Xenomai
Hi, I'm a bit puzzled about how SCHED_WEAK behaves vs linux regular threads. Suppose a kernel built without CONFIG_XENO_OPT_SCHED_WEAK (so, only 0 is a valid value for sched_priority, which should be the same as SCHED_OTHER). Let’s say i have four threads : * thread 1, RT, with SCHED_FIFO