scsh-users
[Top] [All Lists]

Re: Process forms in finalizers

To: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Subject: Re: Process forms in finalizers
From: Michael Sperber <sperber@informatik.uni-tuebingen.de>
Date: Sat, 01 Jul 2006 11:50:32 +0200
Cc: "Emilio Lopes" <eclig@gmx.net>, scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de> writes:

> Yes, the finalizers are running in their own thread and presumably
> only that thread continued to run in the forked thread. In general,
> you should not do anything "complicated" in a finalizer because there
> is not much protection for the execution of a finalizer. It's often
> much better to write information about the dead objects into a queue
> and process this queue in a separate thread.

I believe the finalizers run off the root scheduler, rather than the
scheduler running the scsh program.  This is bound to have strange
interactions with thread narrowing.

-- 
Cheers =8-} M.
Friede, Völkerverständigung und überhaupt blabla

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Process forms in finalizers, Michael Sperber <=