Any other Python flaws?
Oleg Broytmann
phd at phd.fep.ru
Mon Jun 18 12:09:56 EDT 2001
On Mon, 18 Jun 2001, Mitch Chapman wrote:
> > 2. Even on an OS that allows killing blocked threads you are guaranteed to
> > have problems due to insufficient cleanup. If you need to kill blocking
> > process make it real forked process. Or use non-blocking approach
> > (non-blocking sockets, e.g.)
>
> All of this tends to reinforce Andrew Kuchling's opinion that
> threads were "a mistake". I'm still unsure whether he meant
> threads in general were a mistake or whether he meant that
> platform-independent threads facilities should be augmented with
> platform-specific facilities.
I don't think that threads are "mistake", but for most things threads
are unneccessary. And for blocking calls threads are just bad, really
mistake. Do not block a thread - use select/poll/whatever. Or fork a
process and set watchdog.
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list