From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c33f8f65997c21d0 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.180.73.242 with SMTP id o18mr2231346wiv.0.1348558487307; Tue, 25 Sep 2012 00:34:47 -0700 (PDT) Path: q11ni50653564wiw.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Problem with task component Date: Tue, 25 Sep 2012 09:35:13 +0200 Organization: cbb software GmbH Message-ID: References: <1667b8e2qt7ei$.1gg1h3hrp9amz$.dlg@40tude.net> <187uk10m6z8xj.yr1cpbgrdur$.dlg@40tude.net> <1gq5enrpptnql.v7pdz1umht4a$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Date: 2012-09-25T09:35:13+02:00 List-Id: On Mon, 24 Sep 2012 22:49:07 +0200, J-P. Rosen wrote: > Le 24/09/2012 18:29, Dmitry A. Kazakov a �crit : >> Else-alternative is no less important than delay. We need something like >> >> select >> terminate; -- Terminate if requested otherwise continue >> else >> null; >> end select; > Which is of course undecidable. Tasks behavior is undecidable most of the time. I dare to say that tasks were useless when behaved in a decidable manner. It does not make sense to require something from specifically task termination, when the rest is not constrained. And it does not work, anyway, because it is in no way to prevent deadlocking upon task finalization. Happens all the time in Ada. > If the master is on a select-or-terminate, what should the task do? I propose a competing rule: Selection of the terminate alternative by the master shall not depend on the states of the client tasks. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de