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-Thread: 103376,7b6ebbd3cbca32ce X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news-fra1.dfn.de!news-mue1.dfn.de!lrz.de!not-for-mail From: Sebastian Hanigk Newsgroups: comp.lang.ada Subject: Re: [Ravenscar] run tasks on events Date: Fri, 30 May 2008 13:17:42 +0200 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Message-ID: References: <483fabe3$0$23819$4f793bc4@news.tdc.fi> <483fdadf$0$2672$4f793bc4@news.tdc.fi> NNTP-Posting-Host: kelvin.fs.tum.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.lrz-muenchen.de 1212146263 2135 129.187.202.43 (30 May 2008 11:17:43 GMT) X-Complaints-To: newsmaster@lrz-muenchen.de NNTP-Posting-Date: Fri, 30 May 2008 11:17:43 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) Xref: g2news1.google.com comp.lang.ada:471 Date: 2008-05-30T13:17:42+02:00 List-Id: Niklas Holsti writes: Hello! > Since the Ravenscar profile contains the restriction > No_Task_Termination, by LRM D.7.15(1/2) it is implementation defined > what happens when a Ravenscar task terminates due to an unhandled > exception or for other reasons. It may be reported or signalled in > some way, or not. I'm using GNAT 4.0.2 on Solaris 10 (AMD); it seems that my second test task has silently died. > [suspension objects per task] > > The "elegance" of this solution is subjective, of course, but I don't > find it very ugly to have a different object for each task; it even > makes it easier to select the subset of tasks that should become > active. I have to confess that I was rather enthralled with the simplicity of the signal/scheduler method ;-) The difference most likely is only the shift in responsibility: in HAL/S the programmer simply specifies when to activate tasks, in Ada I have to do the bookkeeping myself (but I do gain more flexibility). Thanks for your advice! Sebastian