From: Ted Dennison <dennison@escmail.orl.mmc.com>
Subject: Re: How to wait for task completion
Date: 1996/09/17
Date: 1996-09-17T00:00:00+00:00 [thread overview]
Message-ID: <323EBE42.3F54BC7E@escmail.orl.mmc.com> (raw)
In-Reply-To: 01bba3f7$ee398fe0$10208b82@wd
wiljan wrote:
>
> In my case I want to wait for task completion, Not until it is almost
> completed. The code that has to wait for the task completion want to
> clean up resources when that task is terminated. If these resources
> are cleaned up before that, it will certainlly lead to erroneous execution.
> In my case I want to clean up the task object itself by using
> ada.unchecked_deallocation.
What I have seen done is creation of a stack of tasks that are currently
unused. In this particular case each task put ITSELF on the stack when it
was done. Any time a new task was needed, it got pulled off the stack and
re-activated, or created with dynamic allocation if the stack was empty. This
setup could easily be modified to do periodic garbage collection (checking
the 'terminated attribute, just to be safe).
--
T.E.D.
| Work - mailto:dennison@escmail.orl.mmc.com |
| Home - mailto:dennison@iag.net |
| URL - http://www.iag.net/~dennison |
next prev parent reply other threads:[~1996-09-17 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-15 0:00 How to wait for task completion wiljan
1996-09-15 0:00 ` David C. Hoos, Sr.
1996-09-20 0:00 ` Stephen & Tammy House
1996-09-15 0:00 ` Samuel Tardieu
1996-09-16 0:00 ` wiljan
1996-09-17 0:00 ` Ted Dennison [this message]
1996-09-17 0:00 ` Samuel Tardieu
1996-09-17 0:00 ` Norman H. Cohen
1996-09-17 0:00 ` wiljan
1996-09-18 0:00 ` Tucker Taft
1996-09-18 0:00 ` Norman H. Cohen
1996-09-17 0:00 ` wiljan
1996-09-18 0:00 ` Jon S Anthony
1996-09-16 0:00 ` Jon S Anthony
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox