| Deutsch English Français Italiano |
|
<vbtrmo$34n9$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Randy Brukardt" <randy@rrsoftware.com>
Newsgroups: comp.lang.ada
Subject: Re: Ichbiah 2022 compiler mode
Date: Wed, 11 Sep 2024 23:46:18 -0500
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <vbtrmo$34n9$1@dont-email.me>
References: <vbc625$at65$1@dont-email.me> <vbdgs7$hedr$1@dont-email.me> <lybk10o4u7.fsf@pushface.org> <lk3fsvF7aaaU1@mid.individual.net>
Injection-Date: Thu, 12 Sep 2024 06:46:16 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="63a211bc0083a84961071e8a6410a533";
logging-data="103145"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/+YTPI+aZF5UYunACLEc3SZZbGZDZf/8="
Cancel-Lock: sha1:dz7U8b767o1l7MCIG3jxNnsUzQo=
X-RFC2646: Format=Flowed; Response
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246
X-MSMail-Priority: Normal
Bytes: 2298
"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.
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.
Randy.