Article View: pl.comp.lang.python
Article #28372Re: thread 100%
From: Wojciech Muła
Date: Mon, 12 Dec 2011 12:52
Date: Mon, 12 Dec 2011 12:52
13 lines
1790 bytes
1790 bytes
W dniu czwartek, 8 grudnia 2011, 13:52:58 UTC+1 użytkownik zigi napisał: > Witam, > Panowie cz jest możliwość ograniczenia wątku aby nie zajmował 100% > procesora ? Przenośnej metody nie ma i raczej problem nie jest w wątkach, tylko częstotliwości odwołań do funkcji systemowych. Spróbuj poeksperymentować z http://docs.python.org/library/sys.html#sys.setcheckinterval - im większa wartość, tym interpreter rzadziej przełącza wątki. Ale nie liczyłbym na wiele. w.
Technical Details
Message-ID:
<9451743.308.1323694359565.JavaMail.geo-discussion-forums@yqmm19>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<d5f76cd1-7b8b-4b4c-b2da-66b212e9cc15@u6g2000vbg.googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Wojciech Muła <wojtek.mula@gmail.com> Newsgroups: pl.comp.lang.python Subject: Re: thread 100% Date: Mon, 12 Dec 2011 04:52:39 -0800 (PST) Organization: http://groups.google.com Lines: 16 Message-ID: <9451743.308.1323694359565.JavaMail.geo-discussion-forums@yqmm19> References: <d5f76cd1-7b8b-4b4c-b2da-66b212e9cc15@u6g2000vbg.googlegroups.com> Reply-To: pl.comp.lang.python@googlegroups.com NNTP-Posting-Host: 188.47.250.144 Mime-Version: 1.0 X-Trace: posting.google.com 1323695268 22943 127.0.0.1 (12 Dec 2011 13:07:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 12 Dec 2011 13:07:48 +0000 (UTC) In-Reply-To: <d5f76cd1-7b8b-4b4c-b2da-66b212e9cc15@u6g2000vbg.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.47.250.144; posting-account=VFwkXwoAAADdT4-lLKRZrMYkTjizGoyn User-Agent: G2/1.0 X-Google-Web-Client: true Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit