[concurrency-interest] Timeout threadpool

jason rutherglen jasonhusong at yahoo.com
Thu Mar 16 13:52:19 EST 2006


By Thread interrupt and perhaps a check inside the Callable to see if it has been cancelled.  I have (perhaps wrongly) included the Future inside the task in order to monitor whether the task is supposed to stop running at times.  Any advice?

----- Original Message ----
From: Bob Lee <crazybob at crazybob.org>
To: jason rutherglen <jasonhusong at yahoo.com>
Cc: concurrency-interest at cs.oswego.edu
Sent: Thursday, March 16, 2006 10:41:17 AM
Subject: Re: [concurrency-interest] Timeout threadpool

Depends, how do you plan to stop your threads when they time out?

Bob

On 3/16/06, jason rutherglen <jasonhusong at yahoo.com> wrote:
>
> Is there an implementation of a threadpool that times out?  Is there an
> implementation that keeps track of the time a Callable has been running?  I
> have already started writing my own however I was wondering if anyone else
> has some ideas.
>
> Thanks,
>
> Jason
>
>
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest
>
>
>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20060316/762c2ecd/attachment.html


More information about the Concurrency-interest mailing list