indolence logAnthony Towns' blog.Select and Python Generators- April 9, 2008 One of the loveliest things about Unix is the select() function (or its replacement, poll()), and the way it lets a single thread handle a host of concurrent tasks efficiently by just using file descriptors as work queues. Unfortunately, it can be a nuisance to use &8211; you end up having to structure your program as a state machine around the select() invocation, rather than the actual procedure you want to have happen. You can avoid that by not using select() and instead just having a...http://azure.humbug.org.au/~aj/blog/2008/04/10#2008-04-10-select-and-generators |