Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54569

Re: Making it a MultiThread!

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!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.061
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; '22,': 0.09; 'gui': 0.12; 'thread': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hmm.': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'second': 0.26; 'van': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'absolute': 0.30; 'message-id:@mail.gmail.com': 0.30; '(on': 0.31; 'second,': 0.31; 'sep': 0.31; 'run': 0.32; 'another': 0.32; 'advice': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'should': 0.36; 'starting': 0.37; 'actions': 0.38; 'same.': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'first': 0.61; 'more': 0.64; 'subject:Making': 0.84; '2013': 0.98
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:to :content-type; bh=70saShdEIFumbMoaTeR009ChVKCtA11bEv6ad5GA09E=; b=WbUiga7Gh9hcRmqNG5Ks/IqYS0yLShqnRNdPoDH8arRDefrz3WjAG5bcPTfIRG3Hms eCr3BbqLAE+P4IE5EuXrUvhlOzE9JoENOBPIusHYmdcr13r9Hu+LD7qfc6Dp7wZeBFH4 kTU7aTU+mio6QRfoFZtyP1A8DGx7rFy9dMcC9Oo/TNBvnPjcSwymJboTjbd9SqW7L2EV KAh2KvH0qDaTx9rxGxmgsFlhm3v+PU1FVjJiFLkhFAUo9e/A9EKAsdiQSs8XRj0vDByB wG9aCzODXFGNLgjJgC+hYW6lr/PiBHrdh87+QS6n1rIqpB25pewxMO+92ientlJrx1hB +9bQ==
MIME-Version 1.0
X-Received by 10.220.237.208 with SMTP id kp16mr14131429vcb.4.1379812705748; Sat, 21 Sep 2013 18:18:25 -0700 (PDT)
In-Reply-To <m2zjr5pt5e.fsf@cochabamba.vanoostrum.org>
References <49c2ddff-9b80-4c0f-9272-2691f5f752d0@googlegroups.com> <19013711-d0c9-44a3-a8e2-b9d50eaea599@googlegroups.com> <m2zjr5pt5e.fsf@cochabamba.vanoostrum.org>
Date Sun, 22 Sep 2013 11:18:25 +1000
Subject Re: Making it a MultiThread!
From Chris Angelico <rosuav@gmail.com>
To 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.236.1379812708.18130.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1379812708 news.xs4all.nl 15907 [2001:888:2000:d::a6]:34589
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:54569

Show key headers only | View raw


On Sun, Sep 22, 2013 at 11:00 AM, Piet van Oostrum <piet@vanoostrum.org> wrote:
> Now if your GUI actions are starting some actions that last more than a
> few tenths of a second, you should run these actions in another thread...

Hmm. When I first learned GUI programming (on OS/2), the advice was
one tenth of a second absolute maximum, or spin off a thread. But yes,
the advice is the same. Keep your main thread REALLY responsive.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Making it a MultiThread! stas poritskiy <stascrash@gmail.com> - 2013-09-20 05:56 -0700
  Re: Making it a MultiThread! stas poritskiy <stascrash@gmail.com> - 2013-09-20 09:11 -0700
    Re: Making it a MultiThread! Piet van Oostrum <piet@vanoostrum.org> - 2013-09-21 21:00 -0400
      Re: Making it a MultiThread! Chris Angelico <rosuav@gmail.com> - 2013-09-22 11:18 +1000
      Re: Making it a MultiThread! stas poritskiy <stascrash@gmail.com> - 2013-09-23 07:14 -0700
        Re: Making it a MultiThread! Piet van Oostrum <piet@vanoostrum.org> - 2013-09-24 07:28 -0400

csiph-web