|Perl: the Markov chain saw|
Re: How can perl thread exit elegantlyby BrowserUk (Pope)
|on Apr 22, 2013 at 11:51 UTC||Need Help??|
I want to issue an event from catch_CtrlC to every running threads to exit elegantly(release resources before exit). How to realise this in the threads?
It depends what those threads are doing and what resources they need to release?
There are several approaches to the problem, and which is appropriate is dependent upon the code in question, so post your code.
The one approach I cannot recommend at all, is using the Threads signalling mechanism which is entirely redundant.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.