Stopping threads from the outside
Erno Kuusela
erno-news at erno.iki.fi
Sun Mar 24 17:46:55 EST 2002
In article <3c9e2692$0$24819$e4fe514c at dreader3.news.xs4all.nl>,
Boudewijn Rempt <boud at valdyas.org> writes:
| That's the received opinion indeed. It still leads to problems.
| I mean -- it's why you can kill a process, but not a thread. But in
| an agent system, every agent (presumably running a thread, although
| I've implemented systems where agents share threads, cooperative
| multi-tasking agents) is on its own, and shouldn't own objects
| or locks.
maybe forking separate processes won't take much more memory than
threads in that case, if they don't change memory pages inherited from
the parent.
-- erno
More information about the Python-list
mailing list