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 07:53:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: multitasking: finishing execution Date: 20 Jun 2002 10:53:19 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <1HhQ8.8744$ZP1.1591823@news11-gui.server.ntli.net> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1024585259 12195 128.183.220.71 (20 Jun 2002 15:00:59 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 20 Jun 2002 15:00:59 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:26489 Date: 2002-06-20T15:00:59+00:00 List-Id: "chris.danx" writes: > Hi, > > Is calling the entry finish sufficient to terminate the task? The code of > the entry isn't the concern, but the behaviour of entries. Consider the > following procedure > > The "Ada way" to terminate a task is with a "terminate" alternative: select accept or terminate; end select; See ARM 9.7.2. 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 :). -- -- Stephe