[plt-scheme] Re: Shared resources for servlets

From: Robby Findler (robby at cs.uchicago.edu)
Date: Wed Sep 10 15:14:53 EDT 2003

On Wed, 10 Sep 2003, Keith Frost wrote:
> Now, of course, in a real system, I'd have to account for threads
> dying after sending requests, which adds another layer of complexity
> --- the server thread can't just block when trying to fulfill a
> request, so are channels the wrong model for fulfilling requests?

Possibly, but you can build the right abstraction on top (one step, as
Greg mentioned is the async channels). You can handle threads dying and
all kinds of other things as well.

> And what are those
> other waitable things, guards and so forth?  

Those are the tools you use to build more complex threading
abstractions, including ones that can handle killing. You should start
by reading some of John Reppy's work on CML (www.citeseer.com has some
papers and he's written a book). MzScheme's primitives are a
generalization of his to support threads that can be killed, yet can
still have safe syncronization.

(Sorry I just havne't had time to look at your code)


Posted on the users mailing list.