Python Multiprocessing and KeyboardInterrupt
Update 2011/02/03: Added commentary regarding Georges’s comment about this stackoverflow thread. Update 2011/01/28: There is an issue with this code when passing large objects through the queue. While the code listed below will work in most situations, consider using sentinels to indicate the end of jobs in your queue rather than relying on the Queue.Empty [...]
Recent Comments