which async framework?

Chris Angelico rosuav at gmail.com
Wed Mar 12 00:38:38 CET 2014

On Wed, Mar 12, 2014 at 10:18 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
> Chris Angelico <rosuav at gmail.com>:
>> What corner cases are there with threads that you don't have with
>> anything else?
> There are numerous. Here's one example: deadlocks due to two threads
> taking locks in a different order. The problem crops up naturally with
> two intercommunicating classes. It can sometimes be very difficult to
> spot or avoid.

Yep. Now how is that not a problem when you use some other model, like
an event loop? The standard methods of avoiding deadlocks (like
acquiring locks in strict order) work exactly the same for all models,
and are just as necessary.


More information about the Python-list mailing list