[plt-scheme] thread manager?

From: Evan Farrer (farrer at cs.utah.edu)
Date: Mon May 1 18:15:03 EDT 2006

I think you want to use custodians to prevent your threads from going wild in the first place

You may be able to use custodian-managed-list to implement the "thread manager" if you have more specific needs then just preventing wild threads.


On Mon, May 01, 2006 at 02:05:22PM -0500, Corey Sweeney wrote:
> I now have a wild thread going which I wish to kill.  Hitting "Stop" in
> Drscheme seems to only kill the formost process.  Obviously I could close
> out drscheme, and restart it, but I plan to be accidently creating many more
> wild threads throughout my development process.  Ideally I'd like to be able
> to just terminate the wild thread without stopping any of the others.
> I was thinking of writing a "thread manager".  I.E. something like the popup
> window for operating systems that let you kill processes.  Basically a list
> of all running threads, and a "kill by mouseclick" callback, or something.
> So my questions are:
> #1 has something like this already been written?
> #2 Does there exist a "get-list-of-all-current-threads" call?  If not, I'll
> have to register my threads myself, and my solution will end up being
> specifc to my application, and won't be usefull to anyone else.
> Corey
> --
> ((lambda (y) (y y)) (lambda (y) (y y)))

> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.