Killing threads (was Re: Cancel or timeout a long running regular expression)

Chris Angelico rosuav at gmail.com
Mon Sep 19 02:25:59 EDT 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.

ChrisA



More information about the Python-list mailing list