comp.lang.ada
 help / color / mirror / Atom feed
From: "Jean-Pierre Rosen" <rosen.adalog@wanadoo.fr>
Subject: Re: task activation
Date: 1999/11/21
Date: 1999-11-21T16:29:08+00:00	[thread overview]
Message-ID: <8196kk$jlt$1@wanadoo.fr> (raw)
In-Reply-To: 383733d3_1@news1.prserv.net

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]


Matthew Heaney <matthew_heaney@acm.org> a �crit dans le message :
383733d3_1@news1.prserv.net...
> [...]
> Now, suppose we wanted to activate the task earlier than that.  Let's
> declare O in a nested package:
>
> procedure Main is
>   package P is
>     task O is ...;
>   end;
>   package body P is
>     task body O is ...;
>   end;
> begin
>   <whatever>
> end;
>
>
> Does task O activate when
>
> 1) the elaboration of nested package P completes (hit the begin part of
> P's body); that is, prior to hitting the begin part of Main.  Or,
Yes

> 2) no, the nesting doesn't matter, and O still activates when you hit
> the begin part of procedure Main.
>
No.

But you may be confused by the fact that in this case, the ACTIVATOR is P,
but the MASTER is Main.
IOW, the task starts right after you pass the "begin" of P, but Main will
wait for the termination of O.
--
---------------------------------------------------------
           J-P. Rosen (Rosen.Adalog@wanadoo.fr)
Visit Adalog's web site at http://pro.wanadoo.fr/adalog






  reply	other threads:[~1999-11-21  0:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-20  0:00 task activation Matthew Heaney
1999-11-21  0:00 ` Jean-Pierre Rosen [this message]
1999-11-22  0:00 ` Robert A Duff
1999-11-22  0:00   ` Matthew Heaney
1999-11-23  0:00     ` Mats Weber
1999-11-23  0:00       ` Matthew Heaney
1999-12-02  0:00   ` Ehud Lamm
1999-12-03  0:00     ` Simon Wright
1999-12-06  0:00       ` Robert Dewar
1999-12-06  0:00       ` Robert Dewar
1999-12-06  0:00         ` Robert A Duff
1999-12-06  0:00         ` Simon Wright
  -- strict thread matches above, loose matches on Subject: below --
2011-12-21 11:58 Task activation tonyg
2011-12-21 12:27 ` tonyg
2011-12-21 12:31   ` AdaMagica
2011-12-21 12:35 ` Niklas Holsti
2011-12-22  8:26   ` tonyg
replies disabled

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