Basic asyncio usage
brisher777 at gmail.com
Tue Nov 25 15:33:57 CET 2014
On Monday, November 24, 2014 10:26:42 AM UTC-6, Marko Rauhamaa wrote:
> Benjamin Risher <brisher777 at gmail.com>:
> > I was wondering if you ever made progress with your asyncio project.
> > I'm currently digging around for examples and reference material and
> > came across your post.
> > I'd be interested in any tips/gotchas/examples you'd be willing to
> > provide as far as asyncio.
> Here's an implementation of the classic Dining Philosophers problem:
> <URL: http://pacujo.net/~marko/philosophers.py>
> The main object of the example is to see how multiple inputs can be
> multiplexed using asyncio.wait(FIRST_COMPLETED).
Thank you for the reply. I've never heard of the Dining Philosophers problem until now. After reading up on it, I can see why it comes up when talking about concurrent programming. I'll add this to my list of examples to dig through.
More information about the Python-list