comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <martin@krischik.com>
Subject: Re: task synchronization and activation
Date: Sat, 19 Feb 2005 17:11:43 +0100
Date: 2005-02-19T17:11:43+01:00	[thread overview]
Message-ID: <18824603.NgNnWmvhLG@linux1.krischik.com> (raw)
In-Reply-To: 5f59677c.0502190711.1d6d2492@posting.google.com

Evangelista Sami wrote:

> Hello all
> 
> Why does a task have to wait that all the tasks it created are
> activated before
> executing? I am thinking of point 9.particulare RM :
> 
> "The task that created the new tasks and initiated their activations
> (the activator) is blocked until all of these activations complete
> (successfully or not)."
> 
> I can understand that a master has to wait for the tasks he created
> before finalizing since in the other case it could "free" some memory
> needed by its children.
> But i cannot see why this synchronisation after activation is
> necessary. What is the technical reason?

So you can make the first rendezvous with that task. It all depends on the
actual implementation but every task need some internal house keeping
informations and data structures for inter process comunication and they
need to be - savely - initialzed.

Martin
-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com




  reply	other threads:[~2005-02-19 16:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-19 15:11 task synchronization and activation Evangelista Sami
2005-02-19 16:11 ` Martin Krischik [this message]
2005-02-19 18:11   ` Ed Falis
2005-02-19 20:05   ` Robert A Duff
2005-02-20 10:47     ` Martin Krischik
2005-02-21 19:25     ` Dmitry A. Kazakov
2005-02-21  8:50 ` Jean-Pierre Rosen
2005-02-21 21:55   ` Robert A Duff
2005-02-22  0:01     ` Randy Brukardt
2005-02-22  7:17     ` Jean-Pierre Rosen
2005-02-23  2:24       ` Robert A Duff
2005-02-23  7:58         ` Martin Krischik
replies disabled

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