On Mon, Oct 27, 2008 at 3:20 PM, Dave Watts <[EMAIL PROTECTED]> wrote: > > I would recommend that you use one thread to monitor the others. This > thread could wake every 500ms, for example, then check the progress of > the other threads, terminate unresponsive threads, and assign new > tasks. > > There's an example of this in the Adobe Advanced ColdFusion 8 > Development course, actually.
I was pondering this method and that may be what I go with but it seems like I ought to be able to trigger a new event based on the completion of a thread, along the lines of a callback function in JS. The sleep, wake, check, sleep paradigm is functional but it seems a bit inelegant. The child function ought to be able to say to the parent "Hey, I'm done now!" and have the parent launch another thread. But I can't quite wrap my head around how to make that happen. Thanks for the response though, its an excellent suggestion. Judah ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314412 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

