comp.lang.ada
 help / color / mirror / Atom feed
* Task reuse
@ 1990-03-01  1:54 One Heppy Heppy 'Ket'
  1990-03-01 20:16 ` Robert I. Eachus
  0 siblings, 1 reply; 2+ messages in thread
From: One Heppy Heppy 'Ket' @ 1990-03-01  1:54 UTC (permalink / raw)


Fred Zwarts asked about UNCHECKED_DEALLOCATION on task access types.

Mats Weber and Norman Cohen correctly responded that there is not necessarily
any effect.  Norman suggested that "good" compilers will reclaim the storage
occupied by a terminated task.  I don't know how good this really is, since I
can't rely on it from one compiler to the next, or ever from one version of a
compiler to the next!  In fact, a compiler which supports this can mask 
program bugs which might turn up at porting time.

I think that with the current Ada spec, Mats has the only right answer, which is
to maintain a task pool, and "manually" keep track of which tasks have completed
their basic function, in order to reuse them.

This seems to be a pretty general need in the Ada environment.  I am wondering
if anyone has written any generic packages which support this task pool
concept?  I've designed a few, but they've always come out too tightly coupled
to the task body's rendezvous algorithm.  Has anyone else solved this problem
in general terms, or worse, proven that it can't be solved?

			--- Rick Wilson

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1990-03-01 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1990-03-01  1:54 Task reuse One Heppy Heppy 'Ket'
1990-03-01 20:16 ` Robert I. Eachus

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