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


Groups > comp.lang.python > #61481 > unrolled thread

Re: Trouble with Multi-threading

Started byDan Stromberg <drsalists@gmail.com>
First post2013-12-10 08:41 -0800
Last post2013-12-10 08:41 -0800
Articles 1 — 1 participant

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.


Contents

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

#61481 — Re: Trouble with Multi-threading

FromDan Stromberg <drsalists@gmail.com>
Date2013-12-10 08:41 -0800
SubjectRe: Trouble with Multi-threading
Message-ID<mailman.3838.1386693686.18130.python-list@python.org>

[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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web