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


Groups > comp.lang.python > #77775

Thread-ID - how much could be?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <airween@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.034
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'finished,': 0.07; 'utf-8': 0.07; 'derived': 0.09; 'item,': 0.09; 'thread': 0.14; 'daemon,': 0.16; 'long-time': 0.16; 'number?': 0.16; 'subject:Thread': 0.16; 'threads.': 0.16; 'exception': 0.16; 'thanks,': 0.17; 'to:name :python-list@python.org': 0.22; 'header:User-Agent:1': 0.23; 'looks': 0.24; 'question': 0.24; "i've": 0.25; 'class.': 0.26; 'function': 0.29; "i'm": 0.30; 'exceptions': 0.31; 'allows': 0.31; 'run': 0.32; 'running': 0.33; 'could': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'joined': 0.36; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'from:charset:utf-8': 0.61; 'content-disposition:inline': 0.62; 'maximum': 0.63; 'reached': 0.63; ':).': 0.84; 'again?': 0.84; 'received:86': 0.91; 'subject:much': 0.91; 'received:hu': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; bh=V7p3pS9hty83r12RORHC8vEX7J3W26tIuddHqlfvun8=; b=nBBmoCTUnQw8oN6leIq44esNs5ST+ZAG6Qf2k+FMjgm/X83uB47um/N2QNMmmm/uSY IJiUMydx58H7zprvti/SKKCzQKYblJq2y0wV4u60DZ+vtMpKlNHp4i7XGisvyeQ6r5jk i+W/1KJ1ocDlj9XR952jJEU5UHM/qTf8RLxSVYZJu29ww+6R9KvUC6AILHVGnIltxxhE VaJKtIavKxHiOQctHxY6w4joqLa3q7/MVE+HNdPmCv8zKriXiV9PyWjBHycNTfN0A2eb Y0AH/4TnrHNis3H88jIQR/QtTnXLSEZXTqqq0xIN4vjxjJoHpRH5+LNQdPAvlMJTcnpx /row==
X-Received by 10.180.98.196 with SMTP id ek4mr5138893wib.13.1410463820784; Thu, 11 Sep 2014 12:30:20 -0700 (PDT)
Date Thu, 11 Sep 2014 21:30:18 +0200
From Ervin Hegedüs <airween@gmail.com>
To "python-list@python.org" <python-list@python.org>
Subject Thread-ID - how much could be?
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent Mutt/1.5.21 (2010-09-15)
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.13939.1410463823.18130.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1410463823 news.xs4all.nl 2885 [2001:888:2000:d::a6]:45785
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:77775

Show key headers only | View raw


Hello,

I've made a long-time running daemon, which uses threads. Looks
like that works perfectly, now I'm looking at the exceptions :).

In the log, I found an interesting message:

Exception in thread Thread-82:
...

The main function allows 2 thread to run simultaniously, and if
the thread finished, then it joined with th.join(), where the
"th" is the thread item, derived from threading.Thread class.

My question is: how much thread ID could be totally? Is there any
maximum number? And if the thread reached that, what will be
done? Overlflowed? Couting from 0 again?


Thanks,


a.


-- 
I � UTF-8

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


Thread

Thread-ID - how much could be? Ervin Hegedüs <airween@gmail.com> - 2014-09-11 21:30 +0200

csiph-web