Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68267
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.018 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'example:': 0.03; 'model,': 0.05; 'strict': 0.07; 'classes.': 0.09; 'naturally': 0.09; 'itself.': 0.14; 'models,': 0.16; 'order)': 0.16; 'subject:which': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '>>>': 0.22; 'necessary.': 0.24; 'order.': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'external': 0.29; 'am,': 0.29; '(like': 0.30; 'message-id:@mail.gmail.com': 0.30; 'cases': 0.33; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'two': 0.37; 'sometimes': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'anything': 0.39; '12,': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'different': 0.65; 'taking': 0.65; 'spot': 0.65; 'due': 0.66; 'mar': 0.68; 'acquiring': 0.84; 'avoid.': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=1E5/le+Lcw5SrDlL8DfMYVKkVQ2zHCsw+qxeL4ixtrE=; b=g6+D8eOMllFnlDiREMMdyOwQ94u6PZ9j60SsQsC4h79Olyj/3/qjQfTgILQamkB/kn PNIu9ztB9d7Zr/kFKzEKT0ZN5mRpbOyozpjsNScZjmif6LGsjNUbHQ50QNtyR7UrfVhq UY46BKU4K+OEyzfdY/wMVidJd8kt7Cn7MYjdQvpzR5Rh8AN/b8GZozoIj61C0gk236i3 8OdP2bNBBgaZo3mJj4VWZNQd2aO7w08FPG3nEg4DcUCMtI1yEShD9Cmre9QqwbYPq4V7 jA6Tmh1HgOlzXua1O7TxxRYiZSLCC17OC2WG/AaD+E+74E7oFaMBkMqE1jMTKIOPAPFC brNw== |
| X-Received | by 10.68.135.195 with SMTP id pu3mr2443652pbb.70.1394618370568; Wed, 12 Mar 2014 02:59:30 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <CAPTjJmrRaM2tU_-k=W9JOG0YKSsnW_=z4OrXRQJxHcf9HTDUUg@mail.gmail.com> |
| References | <531E22DF.7030709@simplistix.co.uk> <1733040935416225908.878896sturla.molden-gmail.com@news.gmane.org> <loom.20140311T170030-477@post.gmane.org> <372076480416251284.821607sturla.molden-gmail.com@news.gmane.org> <mailman.8056.1394563452.18130.python-list@python.org> <877g80nzdx.fsf@elektro.pacujo.net> <mailman.8064.1394577523.18130.python-list@python.org> <87wqg0mihv.fsf@elektro.pacujo.net> <CAPTjJmrRaM2tU_-k=W9JOG0YKSsnW_=z4OrXRQJxHcf9HTDUUg@mail.gmail.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Wed, 12 Mar 2014 03:58:50 -0600 |
| Subject | Re: which async framework? |
| To | Python <python-list@python.org> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.8079.1394618378.18130.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1394618378 news.xs4all.nl 2910 [2001:888:2000:d::a6]:47254 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:68267 |
Show key headers only | View raw
On Tue, Mar 11, 2014 at 5:38 PM, Chris Angelico <rosuav@gmail.com> wrote: > On Wed, Mar 12, 2014 at 10:18 AM, Marko Rauhamaa <marko@pacujo.net> wrote: >> Chris Angelico <rosuav@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. If you don't have threads then the only locks you need to acquire are for external resources. You might still deadlock, but at least your process won't be deadlocking with itself.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: which async framework? Antoine Pitrou <solipsis@pitrou.net> - 2014-03-11 18:43 +0000
Re: which async framework? Marko Rauhamaa <marko@pacujo.net> - 2014-03-12 00:28 +0200
Re: which async framework? Chris Angelico <rosuav@gmail.com> - 2014-03-12 09:38 +1100
Re: which async framework? Marko Rauhamaa <marko@pacujo.net> - 2014-03-12 01:18 +0200
Re: which async framework? Chris Angelico <rosuav@gmail.com> - 2014-03-12 10:38 +1100
Re: which async framework? Marko Rauhamaa <marko@pacujo.net> - 2014-03-12 02:10 +0200
Re: which async framework? Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-12 03:58 -0600
csiph-web