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


Groups > comp.lang.python > #61481

Re: Trouble with Multi-threading

References <OFB2A9D916.5E7B7BF9-ON85257C3D.00591239-85257C3D.0059C626@parker.com>
Date 2013-12-10 08:41 -0800
Subject Re: Trouble with Multi-threading
From Dan Stromberg <drsalists@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3838.1386693686.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Dec 10, 2013 at 8:21 AM, <dan.rose@parker.com> wrote:

> I am running PYTHON 2.7.3 and executing a PYTHON program that uses
> multi-threading.  I am running this on a 64-bit Windows 2008 R2 server
> (Service Pack 1).
>
> Three months ago, I was able to execute this program just fine.  I ran the
> program and opened Task Manager and verified that the program successfully
> obtained all of the multiple threads it requested.
>
> Now, when I go to run this same program (no changes to the program), I am
> getting this message:
>
> Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
> on win32
> Type "copyright", "credits" or "license()" for more information.
> >>> ================================ RESTART
> ================================
> >>>
> <multiprocessing.queues.Queue object at 0x00000000042309E8>
> >>>
>
> I look in Task Manager and I don't see any threads for PYTHON.
>

It looks to me like you may be using multiprocessing rather than
multithreading...

Multiprocessing uses multiple processes with shared memory.  Multithreading
uses multiple Program Counter's in the same process.

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


Thread

Re: Trouble with Multi-threading Dan Stromberg <drsalists@gmail.com> - 2013-12-10 08:41 -0800

csiph-web