[concurrency] Common Concurrent Problems
Aahz
aahz at pythoncraft.com
Tue Jun 9 22:23:45 CEST 2009
On Tue, Jun 09, 2009, Pete wrote:
>
> The particular problem (tail | grep) came out of Beaz's class and was
> incredibly helpful for comparing generators vs. coroutines. We *should*
> find a problem that is actually concurrent - how about tail|grep'ing
> multiple input files?
What about a spider? Feel free to rip this off and rewrite as multiple
processes (preferably with credit but I don't really care):
http://pythoncraft.com/OSCON2001/ThreadPoolSpider.py
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"If you don't know what your program is supposed to do, you'd better not
start writing it." --Dijkstra
More information about the concurrency-sig
mailing list