Trouble with Multi-threading

Dan Stromberg drsalists at gmail.com
Tue Dec 10 17:41:24 CET 2013


On Tue, Dec 10, 2013 at 8:21 AM, <dan.rose at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20131210/d3e8cfe2/attachment.html>


More information about the Python-list mailing list