comp.lang.ada
 help / color / mirror / Atom feed
From: stt@ada-uts
Subject: Re: Two questions
Date: 31 Mar 89 13:10:00 GMT	[thread overview]
Message-ID: <57900091@ada-uts> (raw)
In-Reply-To: 674@uva.UUCP


1. The concept of "trace-back" is a compiler/run-time-system
feature.  It is certainly possible to convince a compiler
vendor to create some sort of debugging output on this
kind of task termination.  Alternatively, and more portably,
you can create an "exception when others=>" in all task bodies
to report appropriately the unexpected demise of a task.

2. It is certainly true that "masters" must wait for their
dependent tasks to terminate.  If you have a large number
of completed tasks all with the same master, this suggests
that perhaps your tasks should be structured so that they
are reusable.  That is, enclose the main operation of
a task in a large loop headed by an entry call (to some kind of
job manager, presumably) which receives the next job to do.
This saves repeatedly creating and terminating tasks,
both of which are frequently slow operations.
(The job manager may indicate the next job for the task is
to terminate itself, if it decides that there are more
server tasks than needed.)

It is possible to have the creator of the task *not* be
the master by using access types.  For tasks within objects
designated by access types, the master is the block/unit enclosing
the declaration of the access type.  In most cases, unchecked
deallocation of such objects-containing-tasks will reclaim
the storage associated with the task as soon as the task completes.

S. Tucker Taft
Intermetrics, Inc.
733 Concord Avenue
Cambridge, MA  02138

  parent reply	other threads:[~1989-03-31 13:10 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-03-29  9:16 Two questions HansM
1989-03-29 18:35 ` Michael Peirce
1989-03-31 13:10 ` stt [this message]
1989-03-31 18:59 ` Scott Simpson
1989-04-03 14:44 ` callen
  -- strict thread matches above, loose matches on Subject: below --
1989-03-30 11:53 Piercarlo Grandi
1989-04-13  0:46 ` Paul Stachour
1989-04-11 13:32 Piercarlo Grandi
1989-04-14 17:14 ` callen
1996-05-01  0:00 Ed Seidewitz
1996-05-01  0:00 W. Wesley Groleau (Wes)
1996-05-01  0:00 Bernard Banner
1996-11-07  0:00 Ding-yuan Sheu
1996-11-07  0:00 ` Robert Dewar
1996-11-08  0:00 ` Robert I. Eachus
1996-11-08  0:00 ` Jon S Anthony
1996-11-08  0:00 ` Norman H. Cohen
1996-11-09  0:00 tmoran
1996-11-11  0:00 ` Adam Beneschan
1996-11-13  0:00 ` Richard A. O'Keefe
2001-03-09 18:27 chris.danx
2001-03-09 20:22 ` Mark Lundquist
2001-03-09 20:56 ` Randy Brukardt
2001-03-12 15:36 ` John English
2001-03-12 18:11   ` chris.danx
2001-03-12 10:59 Christoph Grein
2001-03-12 17:43 ` Stephen Leake
2002-07-04 22:25 Mark
2002-07-04 22:40 ` Jeffrey Creem
replies disabled

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