[Tutor] Threads
Terry Carroll
carroll at tjc.com
Tue Nov 16 01:08:06 CET 2004
On Mon, 15 Nov 2004, R. Alan Monroe wrote:
> Can your consumers write to the queue? If so, they could bucket brigade
> the shutdown element. When the first thread gets the shutdown token,
> it eats it and puts a new one on the queue, then shuts down.
That's a cool idea, There's the slight aesthetic thing that there would
be one element left on the Queue after the last one goes away, but since
that's the last thing to occur before the app as a whole shuts down, I
could live with that.
More information about the Tutor
mailing list