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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e3ad0eba55db3514,start X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: task activation Date: 1999/11/20 Message-ID: <383733d3_1@news1.prserv.net>#1/1 X-Deja-AN: 551083748 Content-transfer-encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 20 Nov 1999 23:50:43 GMT, 32.101.8.100 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-20T00:00:00+00:00 List-Id: It is my understanding that a task "activates" when you hit the begin part of the block in which the task is declared: procedure Main is task O is ... task body O is ...; begin end Main; In this example, task O activates when procedure Main reaches its begin. 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, 2) no, the nesting doesn't matter, and O still activates when you hit the begin part of procedure Main. Another question: suppose package P is a library level package (and therefore task O is a library level task). Does O get activated when 1) you hit the begin part of P's body; that is, prior to hitting the begin part of Ada main subprogram Main? Or, 2) no, the library-levelness doesn't matter, and O still is activated when you hit the begin part of the Ada main. Thanks, Matt -- Time and again the nation's courts have ruled that creationism, as a religious dogma, cannot be taught in science classes. Now, creationists are advancing a new tactic: eliminating the teaching of evolution and other sciences that complement evolution, such as geology, paleontology, and biological anthropology. By doing so, they are not only endangering church-state separation but also seriously jeopardizing the science education of future generations. http://www.campusfreethought.org/sos/