Search   Feed   Browse   Add
Feed items 1 - 1 of 1 for April 2008

indolence log

Anthony 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
Available Archives
- January (5 items)
- April (1 item)
- May (1 item)
- June (1 item)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact