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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,345c606ef362d7fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-20 12:31:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!kibo.news.demon.net!demon!shale.ftech.net!news.ftech.net!peernews.cix.co.uk!newspeer1-gui.server.ntli.net!ntli.net!news11-gui.server.ntli.net.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: <1HhQ8.8744$ZP1.1591823@news11-gui.server.ntli.net> Subject: Re: multitasking: finishing execution X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <64qQ8.9894$ZP1.1899365@news11-gui.server.ntli.net> Date: Thu, 20 Jun 2002 20:30:46 +0100 NNTP-Posting-Host: 80.5.140.234 X-Complaints-To: abuse@ntlworld.com X-Trace: news11-gui.server.ntli.net 1024601474 80.5.140.234 (Thu, 20 Jun 2002 20:31:14 BST) NNTP-Posting-Date: Thu, 20 Jun 2002 20:31:14 BST Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.lang.ada:26511 Date: 2002-06-20T20:30:46+01:00 List-Id: "Stephen Leake" wrote in message news:usn3it31c.fsf@gsfc.nasa.gov... > The "Ada way" to terminate a task is with a "terminate" alternative: Yep except that task will only respond to entries. The problem requires that it do useful work until it is quit. That is, the task must execute a sequence of events repeatedly and not in response to entries, but quit when asked to. > select > accept > or > terminate; > end select; That forbids the use of the else block (and a delay which is currently in charge of executing the real work the task must do. See the ARM section 9.7.1 points 8 through 12. > See ARM 9.7.2. Not ARM 9.7.1 and 9.3? 9.7.2 deals with timed entries. > It is often not obvious how to set up your task to both get some work > done and be ready to quit when told to. But it is important to get it > right :). Of course :) Chris