[concurrency] Threads are good

Aahz aahz at pythoncraft.com
Sun Nov 13 17:27:59 CET 2011

On Fri, Nov 11, 2011, Peter Fein wrote:
> Should we just establish "Threads: you're doing it wrong" as a ground
> rule and be done with it? ;-P

No.  I know you're trolling and trying to be humorous about it, so I'll
respond seriously:

One case where a thread is the perfect mechanism is when you want to
poll for a particular condition periodically.  For example, if you're
synchronizing files between machines, but you don't want to sync open
files, you put the open files into a list that a thread monitors.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

WiFi is the SCSI of the 21st Century -- there are fundamental technical
reasons for sacrificing a goat.  (with no apologies to John Woods)

More information about the concurrency-sig mailing list