Killing threads (was Re: Cancel or timeout a long running regular expression)
rosuav at gmail.com
Mon Sep 19 08:25:59 CEST 2011
On Mon, Sep 19, 2011 at 3:41 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> And what if the thread gets killed in the middle of the commit?
Database managers solved this problem years ago. It's not done by
preventing death until you're done - death can come from someone
brutally pulling out your power cord. There's no "except
PowerCordRemoved" to protect you from that!
There are various ways, and I'm sure one of them will work for
whatever situation is needed.
More information about the Python-list