Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61680
| Date | 2013-12-12 08:08 +0000 |
|---|---|
| Subject | Re: Threading In Python |
| From | marcinmltd <marcinmltd@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3972.1386836880.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Adding subject to the message. Sent from Samsung Mobile on O2 -------- Original message -------- From: marcinmltd <marcinmltd@gmail.com> Date: To: python-list@python.org Subject: Hello, I'm big fan of multiprocessing module, but recently I started looking at threading in Python more closely and got couple of questions I hope You can help me with: 1. When I run two or more threads in my python process are they really run concurrently on mulicore machine? 2. Browsing through documentation it looks like python interpreter protects its sensitive states by using GIL. Can you guys list situations when this happens? 2. What would be general advice from python experts on when to use threadng and when switch to multliprocessing in python? Is the decision still influenced by how often we need to comunicate between the tasks as it's in C\C++? thanks in advance for help! Marcin
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Threading In Python marcinmltd <marcinmltd@gmail.com> - 2013-12-12 08:08 +0000
csiph-web