Popular recipes by matt harrison http://code.activestate.com/recipes/users/4179061/2011-08-23T05:25:09-07:00ActiveState Code Recipestimeout decorator (with multiprocessing) (Python)
2011-08-23T05:25:09-07:00matt harrisonhttp://code.activestate.com/recipes/users/4179061/http://code.activestate.com/recipes/577853-timeout-decorator-with-multiprocessing/
<p style="color: grey">
Python
recipe 577853
by <a href="/recipes/users/4179061/">matt harrison</a>
(<a href="/recipes/tags/decorator/">decorator</a>, <a href="/recipes/tags/decorators/">decorators</a>, <a href="/recipes/tags/multiprocessing/">multiprocessing</a>, <a href="/recipes/tags/timeout/">timeout</a>).
</p>
<p>Given that threads shouldn't be killed, multiprocessing is one mechanism for limiting time on a potentially long running computation.</p>