Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
iScripts EasySnaps 1
iScripts EasyIndex 1
iScripts NetMenus 2.0
ATN Site Builder 3.0
IcrediBB Bulletin Board System 1.0
mp3-manager 1
Jango Clone Script 1.0
ATN Resume Finder 2.0
Mystic Galaxies TypePad 1.0
Midnight Commander for Windows 1.0
Musicbox 2.1
Bandcamp Clone Script 1.0
ICMusic - Music Site Script 1.2
MyMP3s v0.1
Advanced USB Port Monitor 2.0.1
Top Rated
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
timeout decorator (with multiprocessing) 
File ID: 64281






timeout decorator (with multiprocessing) 
Download timeout decorator (with multiprocessing) Report Error Link
License: Freeware
Downloads: 3
Submit Rating:
timeout decorator (with multiprocessing)  Description
Description: Given that threads shouldn't be killed, multiprocessing is one mechanism for limiting time on a potentially long running computation.

License: Freeware

Related: decorator, decorators, multiprocessing, timeout

O/S:Windows

Downloads: 3



More Similar Code

Decorator makes function currying as long as there are more correct arguments to take and fires it as soon as there is enough to call, also checks arguments up front for errors.



A caching decorator that garbage collects in a separate thread (for performance), allows each cached function to (optionally) set a custom maximum age for entries, and allows individual cache entries to be selectively invalidated.



This simple decorator is different to other memoize decorators in that it will only cache results for a period of time. It also provides a simple method of cleaning the cache of old entries via the .collect method. This will help prevent excessive...



There are quite a few memoize decorators floating around, but none that met all my requirements. Here's my attempt. It draws from Bengt Richter's O(1) length-limited LRU cache (http://mail.python.org/pipermail/python-list/2002-October/125872.html)...



Like my earlier C function decorator, this recipe is designed to make it easier to interact with C by removing some of the boilerplate code from defining C structs in Python.



A context manager and decorator that wrap common exception trapping and handling code so they may be applied with just a single line of code in the client.



Yet another memoize decorator, except with a cache size limit with an LRU policy.



Two functions: one which waits for a certain PID to terminate (with optional timeout), another one which checks whether a process with a given PID is running.

This was extracted from psutil project which also provides a Windows...



Decorator for use with objects following the state pattern.



Use the "with" keyword or a decorator to simplify a bit redirecting IO to a file.

User Review for timeout decorator (with multiprocessing)
- required fields
     

Please enter text on the image