Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9599 > unrolled thread
| Started by | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| First post | 2011-07-15 22:15 -0700 |
| Last post | 2011-07-16 13:41 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Python threading/multiprocessing issue. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-07-15 22:15 -0700
Re: Python threading/multiprocessing issue. "Waldek M." <wm@localhost.localdomain> - 2011-07-16 13:41 +0200
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2011-07-15 22:15 -0700 |
| Subject | Re: Python threading/multiprocessing issue. |
| Message-ID | <mailman.1100.1310793326.1164.python-list@python.org> |
On Sat, 16 Jul 2011 09:34:40 +1000, Chris Angelico <rosuav@gmail.com>
declaimed the following in gmane.comp.python.general:
> other's toes. In CPython, the latter is guaranteed by the GIL; the
> specific advantage of multiprocessing over threading is that each
> process has a separate GIL, and that's because all variables are
> separate.
>
And (so far as I understand it) each process can claim its own CPU
core, whereas threads share the active core.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [next] | [standalone]
| From | "Waldek M." <wm@localhost.localdomain> |
|---|---|
| Date | 2011-07-16 13:41 +0200 |
| Message-ID | <ate4d7wlcrvs$.dlg@localhost.localdomain> |
| In reply to | #9599 |
Dnia Fri, 15 Jul 2011 22:15:15 -0700, Dennis Lee Bieber napisaĆ(a): > And (so far as I understand it) each process can claim its own CPU > core, whereas threads share the active core. I do not think so. AFAIK, threads may be distributed over differrent CPUs (just like in any other programming language), only because of GIL, you might not notice any performance improvement with that. Best regards, Waldek
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web