comp.lang.ada
 help / color / mirror / Atom feed
From: Greg Bond <bond@ee.ubc.ca>
Cc: report@gnat.com
Subject: GNAT RTS Creating Hidden Task?
Date: 1996/04/12
Date: 1996-04-12T00:00:00+00:00	[thread overview]
Message-ID: <316F0359.6BE3@ee.ubc.ca> (raw)

I've hacked the GNAT RTS to monitor for particular RTS events (such as 
task creation, destruction, rendezvous stages, protected object access 
stages). In the following code I would expect two tasks to be created: 
the mainline procedure and the declared task. However, the event monitor 
indicates that the mainline procedure creates a task in addition to the 
declared task. What's its purpose? I'm running GNAT 3.03 under SunOS.

procedure Test1 is

   task T1;

   task body T1 is
   begin
      null;
   end T1;

   task T2;

begin
   null;
end;
 
--
* Greg Bond                         * Dept. of Electrical Eng.  
* email: bond@ee.ubc.ca             * Univ. of British Columbia      
* voice: (604) 822 0899             * 2356 Main Mall                 
* fax:   (604) 822 5949             * Vancouver, BC              
* web: http://www.ee.ubc.ca/~bond   * Canada, V6T 1Z4




                 reply	other threads:[~1996-04-12  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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