Re: Ichbiah 2022 compiler mode

Liste des GroupesRevenir à cl ada 
Sujet : Re: Ichbiah 2022 compiler mode
De : niklas.holsti (at) *nospam* tidorum.invalid (Niklas Holsti)
Groupes : comp.lang.ada
Date : 12. Sep 2024, 09:42:38
Autres entêtes
Organisation : Tidorum Ltd
Message-ID : <lkfkbeF1tp7U1@mid.individual.net>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 2024-09-12 7:46, Randy Brukardt wrote:
"Niklas Holsti" <niklas.holsti@tidorum.invalid> wrote in message
news:lk3fsvF7aaaU1@mid.individual.net...
...
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.
 I was (of course) presuming that "tasklets" would get those capabilities if
they were to replace tasks. That's what I meant about "suspension", which is
not currently allowed for threads in Ada (parallel code is not allowed to
call potentially blocking operations). If that was changed, then all forms
of existing task communication would be allowed.
Ok, I understand. In that case, what "parallel" adds to the current tasking feature is an easy way to create a largish and perhaps dynamically defined number of concurrent threads from a "parallel" loop, where the threads are automatically created when the loop is started and automatically "joined" and destroyed when the loop completes.
I don't mind at all if a future Ada evolution merges tasks and "parallel", although it might defeat the easier access to multi-core true parallelism that is the goal of the "parallel" extension, AIUI.

I'm less certain about the value of priorities, most of the time, they don't
help writing correct Ada code. (You still need all of the protections
against race conditions and the like.) I do realize that they are a natural
way to express constraints on a program. So I admit I don't know in this
area, in particular if there are things that priorities are truly required
for.
Priorities (or the equivalent, such as deadlines) are absolutely required for real-time systems where there are fewer cores than concurrent/parallel activities so that the system has to schedule more than one such activity on one core.
If Ada did not have tasks with priorities, most of the Ada applications I have worked on in my life would have had to avoid Ada tasking and retreat to using some other real-time kernel, with ad-hoc mapping of the kernels's threads to Ada procedures.
Despite the transition to multi-core processors, I think that there will continue to be systems where scheduling is required, because the number of concurrent/parallel activities will increase too.

Date Sujet#  Auteur
5 Sep 24 * Ichbiah 2022 compiler mode30Kevin Chadwick
5 Sep 24 +* Re: Ichbiah 2022 compiler mode6Jeffrey R.Carter
5 Sep 24 i+* Re: Ichbiah 2022 compiler mode2Bill Findlay
5 Sep 24 ii`- Re: Ichbiah 2022 compiler mode1Jeffrey R.Carter
5 Sep 24 i+- Re: Ichbiah 2022 compiler mode1Kevin Chadwick
5 Sep 24 i`* Re: Ichbiah 2022 compiler mode2Kevin Chadwick
5 Sep 24 i `- Re: Ichbiah 2022 compiler mode1Jeffrey R.Carter
6 Sep 24 +* Re: Ichbiah 2022 compiler mode21Randy Brukardt
6 Sep 24 i+* Re: Ichbiah 2022 compiler mode5Lawrence D'Oliveiro
12 Sep 24 ii`* Re: Ichbiah 2022 compiler mode4Randy Brukardt
13 Sep 24 ii `* Re: Ichbiah 2022 compiler mode3Lawrence D'Oliveiro
14 Sep 24 ii  `* Re: Ichbiah 2022 compiler mode2Randy Brukardt
14 Sep 24 ii   `- Re: Ichbiah 2022 compiler mode1Lawrence D'Oliveiro
6 Sep 24 i`* Re: Ichbiah 2022 compiler mode15Simon Wright
7 Sep 24 i `* Re: Ichbiah 2022 compiler mode14Niklas Holsti
7 Sep 24 i  +- Re: Ichbiah 2022 compiler mode1Nioclás Pól Caileán de Ghloucester
12 Sep 24 i  `* Re: Ichbiah 2022 compiler mode12Randy Brukardt
12 Sep 24 i   +* Re: Ichbiah 2022 compiler mode5Niklas Holsti
12 Sep 24 i   i+- Re: Ichbiah 2022 compiler mode1Dmitry A. Kazakov
12 Sep 24 i   i`* Re: Ichbiah 2022 compiler mode3Kevin Chadwick
12 Sep 24 i   i +- Re: Ichbiah 2022 compiler mode1Niklas Holsti
13 Sep 24 i   i `- Re: Ichbiah 2022 compiler mode1Nioclás Pól Caileán de Ghloucester
12 Sep 24 i   `* Re: Ichbiah 2022 compiler mode6J-P. Rosen
12 Sep 24 i    `* Re: Ichbiah 2022 compiler mode5Niklas Holsti
14 Sep 24 i     `* Re: Ichbiah 2022 compiler mode4Randy Brukardt
14 Sep 24 i      +- Re: Ichbiah 2022 compiler mode1Dmitry A. Kazakov
14 Sep 24 i      +- Re: Ichbiah 2022 compiler mode1Lawrence D'Oliveiro
14 Sep 24 i      `- Re: Ichbiah 2022 compiler mode1Niklas Holsti
6 Sep 24 `* Re: Ichbiah 2022 compiler mode2Jeffrey R.Carter
6 Sep 24  `- Re: Ichbiah 2022 compiler mode1Nioclás Pól Caileán de Ghloucester

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal