comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Exception Propagation
Date: 1999/06/14
Date: 1999-06-14T00:00:00+00:00	[thread overview]
Message-ID: <7k393k$sb5$1@nnrp1.deja.com> (raw)
In-Reply-To: wccd7yyrgfu.fsf@world.std.com

In article <wccd7yyrgfu.fsf@world.std.com>,
  Robert A Duff <bobduff@world.std.com> wrote:
> dennison@telepath.com writes:
>

> > If you *do* write such code in last-ditch handlers on your tasks,
make
> > sure to handle the IO synchronization problem yourself, or you are
> > liable to get interspersed output, or different exceptions than the
ones
> > you are looking for.
>
> Hmm.  Maybe.  But the more complicated you make that
exception-handling
> code, the more likely that *it* will have the same problem -- and
whose
> going to handle exceptions in the exception handler?

In my experience if you try to use an unprotected Text_IO in last-ditch
exception handlers in a multitask program, you are almost *guaranteed*
to get an exception in your exception handlers. When one task dies, any
task attempting to rendezvous with it will die too. Tasks looking to
rendezvous with those newly dead tasks will then die. Thus task
terminations tend to spread through the system like a cold through a
daycare center. The odds of more than one task trying to simultaniously
do text I/O from its exception handler gets to be awfully close to 1.0

--
T.E.D.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




  reply	other threads:[~1999-06-14  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-07  0:00 Exception Propagation Decker, Christian R
1999-06-07  0:00 ` dennison
1999-06-08  0:00   ` Glen
1999-06-08  0:00     ` Robert Dewar
1999-06-09  0:00       ` Matthew Heaney
1999-06-08  0:00         ` R. Tim Coslet
1999-06-09  0:00         ` dennison
1999-06-09  0:00         ` Robert Dewar
1999-06-08  0:00     ` dennison
1999-06-08  0:00     ` Decker, Christian R
1999-06-08  0:00       ` Robert Dewar
1999-06-08  0:00       ` David C. Hoos, Sr.
1999-06-09  0:00       ` dennison
1999-06-14  0:00         ` Robert A Duff
1999-06-14  0:00           ` dennison [this message]
1999-06-15  0:00             ` Robert A Duff
1999-06-14  0:00           ` Bryce Bardin
1999-06-15  0:00           ` Dale Stanbrough
1999-06-15  0:00             ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2006-03-15 15:16 Exception propagation REH
2006-03-16 21:29 ` Ludovic Brenta
2006-03-16 22:19   ` REH
2006-03-16 22:51     ` Ludovic Brenta
2006-03-17  2:52       ` REH
2006-03-17 14:52         ` Georg Bauhaus
replies disabled

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