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,7d5642dc1158588b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Ravenscar - program termination Date: Tue, 30 Jan 2007 15:30:58 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <87zm81txs1.fsf@ludovic-brenta.org> <1170167084.668967.110840@s48g2000cws.googlegroups.com> <45bf97d4$0$22524$39db0f71@news.song.fi> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1170189058 791 192.74.137.71 (30 Jan 2007 20:30:58 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 30 Jan 2007 20:30:58 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:2S0ZpUPfypLbM5+A3HFLglYEvKo= Xref: g2news2.google.com comp.lang.ada:8738 Date: 2007-01-30T15:30:58-05:00 List-Id: Niklas Holsti writes: > matteo.bordin@gmail.com wrote: > [ snip ] >> On real-time kernels supporting the Ravenscar profile, even the main >> procedure must contain an infinite loop. > > I don't think that is an Ada requirement. As I understand it, under the > Ravenscar profile the environment task is the master of all application > tasks, so it will await their termination; since they never terminate, > neither does the environment task (RM 2005 10.2(25)), even if the main > procedure terminates and returns to the body of the environment task. Then what would happen if there were no tasks other than the environment task? > I have seen a Ravenscar Ada implementation that requires the main > procedure to end with an infinite loop, but I think that is a > non-standard requirement. Why so? The RM wording says "all tasks", and that includes the env task. - Bob