Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82419
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.013 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'model,': 0.05; 'subject:using': 0.09; 'things,': 0.09; 'cc:addr:python-list': 0.11; 'gui': 0.12; 'thread': 0.14; 'windows': 0.15; '(java': 0.16; 'event-driven': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'imo.': 0.16; 'models,': 0.16; 'subject:PyQt': 0.16; 'subject:user': 0.16; 'subject:when': 0.16; 'threads,': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'instead.': 0.24; 'java': 0.24; 'cc:2**0': 0.24; 'developers': 0.25; 'header:In-Reply-To:1': 0.27; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'getting': 0.31; 'worked': 0.33; 'fri,': 0.33; 'programmers': 0.33; 'basic': 0.35; 'except': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'pm,': 0.38; 'does': 0.39; '12,': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'preparation': 0.60; 'skip:* 10': 0.61; 'kind': 0.63; 'valuable': 0.63; 'worth': 0.66; 'craze': 0.84; 'limitations,': 0.84; 'skill.': 0.84; 'processes,': 0.91; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=6J5N/KIaE427Lss/oVMREXoPrjDltsoQ+VNuXgi/OB4=; b=UPVI3wAXrDKLHkJL0QrPAOdD9pp2ZP31uRU20lu/qS/mPBWTnDjvgxdGgjl+aNAvDH i7hDWM//krzViiy61XAXZiazKQAYv+ZEtdoA90DTKvCDeRmIlpjPBjcQp8dJ0P3PzLqV 1/D25de+v4piBc5/xco72BNxBMsdLdyl1dIUsOPu0pD44n9vI1w9aAIY1W/w9LacJszv LlGUdZFkWHHDnNrnu538e6S61wmRRNHNyGUuNTIBVzr3g3Gq0BTygeh2GkOfRfDeg0yt IkOMDYecXBsn3/PJym5Ehruq06mKE+UQZkagdL4b9MxeR12iuNvEulriDCIrkgC0mTv+ 4NZg== |
| MIME-Version | 1.0 |
| X-Received | by 10.107.134.39 with SMTP id i39mr13889272iod.53.1418370150712; Thu, 11 Dec 2014 23:42:30 -0800 (PST) |
| In-Reply-To | <87mw6tgwtk.fsf@elektro.pacujo.net> |
| References | <c9113f8e-ab16-4226-bd68-28c56a88aeda@googlegroups.com> <mailman.16842.1418275530.18130.python-list@python.org> <7e85a815-fd77-417a-9a5c-20537a83afcf@googlegroups.com> <mailman.16892.1418364458.18130.python-list@python.org> <87mw6tgwtk.fsf@elektro.pacujo.net> |
| Date | Fri, 12 Dec 2014 18:42:30 +1100 |
| Subject | Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| 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.16896.1418370158.18130.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1418370158 news.xs4all.nl 2879 [2001:888:2000:d::a6]:52042 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:82419 |
Show key headers only | View raw
On Fri, Dec 12, 2014 at 6:18 PM, Marko Rauhamaa <marko@pacujo.net> wrote: > GUI developers have been doing event-driven programming for decades. > That's an excellent preparation for network programming as well. > Unfortunately, the minds of a generation of programmers were > contaminated by the thread craze of the 1990's (Java and Windows NT). Threads predate Java and NT, and with a much MUCH better implementation, on OS/2. I don't consider my mind to have been *contaminated* by the OS/2 threading model, which worked superbly. Like all models, it has its limitations, but it's one worth getting your head around IMO. Knowing when to use threads, when to use processes, and when to keep everything in a single thread with some kind of dispatch loop (and *which* dispatch loop) is a valuable skill. But yes, the Windows threading model does have a number of annoying flaws. And I don't remember how Java did things, except that I struggled to find basic fundamental primitives like semaphores, and had to use synchronized functions/objects instead. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor iMath <redstone-cold@163.com> - 2014-12-10 20:52 -0800
Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor Michael Torrie <torriem@gmail.com> - 2014-12-10 22:25 -0700
Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor iMath <redstone-cold@163.com> - 2014-12-11 19:20 -0800
Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor Michael Torrie <torriem@gmail.com> - 2014-12-11 23:07 -0700
Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor Marko Rauhamaa <marko@pacujo.net> - 2014-12-12 09:18 +0200
Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor Chris Angelico <rosuav@gmail.com> - 2014-12-12 18:42 +1100
Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor Marko Rauhamaa <marko@pacujo.net> - 2014-12-12 10:43 +0200
Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor Mark Summerfield <list@qtrac.plus.com> - 2014-12-18 03:16 -0800
Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor Michael Torrie <torriem@gmail.com> - 2014-12-18 09:29 -0700
csiph-web