3
votes
3answers
47 views

Python: what are the differences between the threading and multiprocessing modules?

I am learning how to use the threading and the multiprocessing modules in Python to run certain operations in parallel and speed-up my code. I am finding hard (maybe because I don't have any ...
1
vote
2answers
25 views

Detect Interpreter shut down in daemon thread

We were hit by this bug: http://bugs.python.org/issue1856 Daemon threads segfault during interpreter shut down. Now I search a way to code around this bug. At the moment the code looks like this: ...
1
vote
1answer
30 views

How to request a new task when a process completes using the Python multiprocessing library?

Basically, I would like to have a pool to threads to perform some tasks for a given period of time. I figured that the multiprocessing library in Python would be perfect for me to do this. However, ...
0
votes
0answers
14 views

Safetkinter RuntimeError: Recursion Limit

So I've been trying to get a threadsafe adapter for tkinter (I'm using Python 3.3) to help with some of my projects. I stumbled upon a recipe called "safetkinter" (recipe 578153), which promises to ...
0
votes
0answers
21 views

python fastest way to spawn processes to updates rrds

I have a python scripts that needs to update tens of thousands of rrds every 5 minutes. I wonder what is the fastest way to do that. Here are the options I have, and I wonder if you have any thoughts ...
0
votes
0answers
16 views

Threading with Hadoop Streaming

I am making use of Hadoop streaming to write a python based HTML grabber. I find that running a single threaded python script is slow. I want to modify it to a multithreaded version. Does anyone know ...
-2
votes
0answers
19 views

importing queue between modules [on hold]

I am trying to import a queue between different modules. Each module is a thread. When printing the queue object from the different modules, the queue objects have different addresses. Queue.Queue ...
1
vote
1answer
26 views

Threading and Queues in Python3: sentinel value in input_queue fails to break out of while loop

General Overview: I am attempting to build a trivial example of an application that uses threads to scrape information from the web. I know there are dedicated modules for this (scrapy, for ...
1
vote
1answer
42 views

Break ongoing loop started by a tkinter button

I want to build a tkinter interface that can start doing some repetitive work when a "start" button is pressed, and break the ongoing loop when the "stop" button is pressed. However I noticed that the ...
0
votes
0answers
21 views

Stop/Kill Continuous Thread

I am attempting to continuously run a function that controls a stepper motor simultaneously while I plot incoming data. I can run the function but when I try to stop it with a keyboard interrupt the ...
1
vote
2answers
48 views

How to stop a looping thread in Python?

What's the proper way to tell a looping thread to stop looping? I have a fairly simple program that pings a specified host in a separate threading.Thread class. In this class it sleeps 60 seconds, ...
0
votes
0answers
26 views

Django: memory usage grows on threads

I have a Django process which runs several threads. Some of them are always on and I notice that their memory usage grows indefinitely (more than 1GB in two hours). I am on a Windows virtual machine ...
0
votes
0answers
52 views

Python sharing instance between two threads in two classes

I have some code that needs to be in a separate thread and this code is a different class completely. I am using the multiprocess.Queue queue to share the data. Basically I want the parent base class ...
1
vote
1answer
20 views

Handling SIGINT in parallel fabric task

I'm using a multiprocessing.Manager to keep track of resources that I create in a parallel fabric task. If something goes wrong I often want to do a ctrl-c to halt the tasks, however I still need ...
0
votes
1answer
44 views

How do I stop a Thread in Python (I have an endless loop)

The following code is supposed to be for a timer that counts down: from org.csstudio.opibuilder.scriptUtil import PVUtil, ConsoleUtil, ColorFontUtil from java.lang import Thread, Runnable import ...

1 2 3 4 5 162
15 30 50 per page