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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d676a4bf883e6826 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!post.news-service.com!news1.surfino.com!not-for-mail Message-Id: <18824603.NgNnWmvhLG@linux1.krischik.com> From: Martin Krischik Subject: Re: task synchronization and activation Newsgroups: comp.lang.ada Reply-To: martin@krischik.com Date: Sat, 19 Feb 2005 17:11:43 +0100 References: <5f59677c.0502190711.1d6d2492@posting.google.com> Organization: None User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@surfino.com NNTP-Posting-Host: 83.169.148.166 (83.169.148.166) NNTP-Posting-Date: Sat, 19 Feb 2005 18:00:13 +0100 X-Trace: db3064217709df60c310307409 Xref: g2news1.google.com comp.lang.ada:8422 Date: 2005-02-19T17:11:43+01:00 List-Id: 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