Sujet : Re: Ichbiah 2022 compiler mode
De : niklas.holsti (at) *nospam* tidorum.invalid (Niklas Holsti)
Groupes : comp.lang.adaDate : 07. Sep 2024, 19:13:03
Autres entêtes
Organisation : Tidorum Ltd
Message-ID : <lk3fsvF7aaaU1@mid.individual.net>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 2024-09-07 0:22, Simon Wright wrote:
"Randy Brukardt" <randy@rrsoftware.com> writes:
(A) Do we need tasks at all? Parallel and task are very much
overlapping capabilities.
I don't think I've ever wanted parallel. Most embedded system tasks are
one-off, aren't they?
More and more mebedded systems use multi-core processors and do heavy, parallelizable computations. "Parallel" is intended to support that in a light-weight way. In a recent discussion with the European Space Agency, they expressed interest in using OpenMP for such computations on-board spacecraft with multi-core processors, which is an "embedded" context.
Regarding tasks in embedded systems, I agree that most are one-off, but I have occasionally also used tens of tasks of the same task type.
I disagree with Randy's view that tasks and "parallel" are much overlapping. Tasks are able to communicate with each other, but AIUI parallel tasklets are not meant to do that, and may not be able to do that. Tasks can have different priorities; tasklets cannot.