How to force a thread to stop
Paul Rubin
http
Mon Jul 24 05:16:22 EDT 2006
Lawrence D'Oliveiro <ldo at geek-central.gen.new_zealand> writes:
> > Python has no threadicide method, and its absence is not an
> > oversight. Threads often have important business left to do, such
> > as releasing locks on shared data; killing them at arbitrary times
> > tends to leave the system in an inconsistent state.
>
> Perhaps another reason to avoid threads and use processes instead?
If the processes are sharing resources, the exact same problems arise.
More information about the Python-list
mailing list