[PATCH v2] c-user: Define lower and higher priority

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Sep 15 15:44:10 UTC 2021


On 15/09/2021 17:22, Gedare Bloom wrote:
>>       priority
>>           The priority is a mechanism used to represent the relative importance of an
>> -        element in a set of items.  RTEMS uses :term:`task priorities <task priority>` to determine
>> -        which :term:`task` should execute.
>> +        element in a set of items.
>> +
>> +        For example, :term:`RTEMS` uses :term:`task priorities <task priority>` to determine which
>> +        :term:`task` should execute on a processor.  In RTEMS, priorities are
>> +        represented by non-negative integers.
>> +
>> +        For the Classic :term:`API`, if a numerical priority value ``A`` is greater
>> +        than a numerical priority value ``B``, then ``A`` expresses a
>> +        :term:`higher priority` than ``B``.  If a numerical priority value ``C`` is
>> +        less than a numerical priority value ``D``, then ``C`` expresses a
>> +        :term:`lower priority` than ``D``.
>> +
>> +        For the :term:`POSIX` API, if a numerical priority value ``R`` is less than
>> +        a numerical priority value ``S``, then ``R`` expresses a lower priority than
>> +        ``S``.  If a numerical priority value ``T`` is greater than a numerical
>> +        priority value ``U``, then ``T`` expresses a higher priority than ``U``.
>>
> These are backwards. Classic priorities with numerically greater
> values indicate lower priorities. POSIX priorities with numerically
> higher values express higher priorities.

Thanks for noticing this. I swapped the lower and higher priority items:
https://git.rtems.org/rtems-central/commit/?id=4cd035ab1160394172d2669dd2ac22668b365991

-- 
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