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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,e3ad0eba55db3514 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: task activation Date: 1999/11/21 Message-ID: <8196kk$jlt$1@wanadoo.fr>#1/1 X-Deja-AN: 551290015 References: <383733d3_1@news1.prserv.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 943201748 20157 193.250.171.51 (21 Nov 1999 16:29:08 GMT) Organization: Adalog X-MSMail-Priority: Normal NNTP-Posting-Date: 21 Nov 1999 16:29:08 GMT Newsgroups: comp.lang.ada Date: 1999-11-21T16:29:08+00:00 List-Id: Matthew Heaney 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 > > 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