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=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Problem with tutorial example Date: Sun, 21 Sep 2014 23:21:41 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <19829aef-4baa-4d96-a205-7e72b8a6d9a8@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 22 Sep 2014 06:21:43 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="ff2e5d21b9fb0a12a9871c15f1d89f02"; logging-data="18018"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18u3eW9Z0SjdKlGOparQzMZcEiH3b9jRZM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 In-Reply-To: <19829aef-4baa-4d96-a205-7e72b8a6d9a8@googlegroups.com> Cancel-Lock: sha1:LrwaWOQXHBVpq8qw84aolpwx4rA= Xref: number.nntp.dca.giganews.com comp.lang.ada:189079 Date: 2014-09-21T23:21:41-07:00 List-Id: On 09/21/2014 07:47 PM, Stribor40 wrote: > I am trying to study example i found in this page http://infres.enst.fr/~pautet/Ada95/e_c26_p2.ada where first, second and third tasks output lines of text to monitor but main task at the end of the program never calls any of these tasks. Now i understand that Ada uses linear declaration and that it loads each tasks and makes each tasks wait at the "begin". So as lines are read each tasks execuatable part is loaded but each tasks wait at begin. > Now main task doesnt call any of these other 3 tasks at all. All it does is output line of text "i am main..." > Can someone point out how do these 3 tasks get fired up please? Ada tasks don't get "fired up" by some external agent. They begin executing when it is time for them to do so. For task objects in a declarative part, that is when the declarative part has been elaborated.. -- Jeff Carter "How'd you like to hide the egg and gurgitate a few saucers of mocha java?" Never Give a Sucker an Even Break 101