Doubt in importance of SCHEDULER_PRIORITY_APPEND

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jan 20 17:50:47 UTC 2021


On 20/01/2021 17:46, Joel Sherrill wrote:

>
> On Wed, Jan 20, 2021 at 1:50 AM Richi Dubey <richidubey at gmail.com 
> <mailto:richidubey at gmail.com>> wrote:
>
>     Appending an item to its priority group means adding the item to
>     the end of the priority queue of items with the same priority, but
>     when/why do we do this? Do all classic tasks have their
>     SCHEDULER_PRIORITY_APPEND_FLAG set to 1?
>
>
> There is (was) a specific case in the POSIX implementation that 
> required the thread to be placed at the head of the list. Hopefully it 
> is still there or all the Ada conformance tests will not pass. At 
> least, that was where I encountered code that depended on that very 
> precise behavior.
Yes, it is pthread_setschedprio(), however, the special case is that it 
is prepended to its priority group.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/



More information about the devel mailing list