Re: timing out threads
[email protected] (Mike Pomraning) Wed, 2 Nov 2011 08:22:36 -0500
| Newsgroups | perl.ithreads |
|---|---|
| Message-ID | <CAPZFfA-GHd8jHd-d3+k4u_ANe2PFShWjmfY1D0ckziQ7YJZxUA@mail.gmail.com> |
--20cf30781180c55f5d04b0c05ef8 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Nov 1, 2011 at 6:09 PM, Danny Wong (dannwong) <[email protected]>wrote: > I would like to perform the following, start X (say 10) number > of threads to perform some operation (ex. Copy command), I would like to > exit or return out of the thread(s) that takes too long ( ex. 30 minutes > ). Danny, Can you show us in more detail what the long-running threads are doing, perhaps some pseudocode? How one safely kills/interrupts/shuts down a thread depends on what that thread is doing. As this forum discussed a little over a year ago, threads stuck in blocking system calls present their own design challenges. -Mike --20cf30781180c55f5d04b0c05ef8--