comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Problem with tutorial example
Date: Sun, 21 Sep 2014 23:21:41 -0700
Date: 2014-09-21T23:21:41-07:00	[thread overview]
Message-ID: <lvof5m$hj2$2@dont-email.me> (raw)
In-Reply-To: <19829aef-4baa-4d96-a205-7e72b8a6d9a8@googlegroups.com>

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


  reply	other threads:[~2014-09-22  6:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-22  2:47 Problem with tutorial example Stribor40
2014-09-22  6:21 ` Jeffrey Carter [this message]
2014-09-22  6:23 ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox