1
vote
1answer
5 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
38 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
vote
2answers
18 views

Python - Can't kill main thread with KeyboardInterrupt

I'm making a simple multi-threaded port scanner. It scans all ports on host and returns open ports. The trouble is interrupting the scan. It take a lot of time for a scan to complete and sometimes I ...
0
votes
0answers
17 views

Python multiprocessing and use of static methods

We have an application running multiple worker processes connected by a multiprocessing queue. In order to take care about the DB connections and possible errors we build a static class taking care ...
0
votes
1answer
63 views

Why do threads continue to run after application has exited?

The following is a Python application which spans a few threads, then spawns a new process of itself and exits: from pprint import pprint import os import random import signal import sys import ...
1
vote
1answer
20 views

Scheduler going idle under multithreading

I'm running Python 3.3.2, Win7/Pro, 64-bit and have some code in which I'm trying to run a scheduler in its own thread. It appears that when the scheduler empties its working queue, it goes idle and ...
3
votes
1answer
66 views

In C++, How to read one file with multiple threads?

I am reading a .csv file from local hard drive using VS2012 in Windows 7, 64-bits, 8 core. The file that I am reading has 50,000+ lines and each line has 200+ attributes, so read the data and feed ...
0
votes
1answer
46 views

This Non-Threaded script unexpectedly runs faster than the Threaded version

I have a python script which validates data fetched from some rows in a database and then logs the errors in a different table in the same database. The script validates each row and marks it as ...
0
votes
0answers
7 views

Using PySide.QtCore.Signal in threading.Thread object

I am using something like this: import threading from PySide import QtCore class Smt(threading.Thread): foo_signal = QtCore.Signal(object) def __init__(self): ...
2
votes
1answer
35 views

time.strptime function throwing error when in threaded mode

I have a python function that works okay in "normal" mode but throws an error when I run it in a threaded function. Function def is_valid_date(date_value, is_mandatory): '''validate a date ...
0
votes
1answer
21 views

PyQT threading error while passing a signal to a QMessageBox

I tried to receive a string from a thread to my main GUI using SIGNALs. Everything works fine until I want to use the string in a QMessageBox. Printing out is no problem but starting a QMessageBox ...
5
votes
1answer
94 views

Output reason for Python crash

I have an application which polls a bunch of servers every few minutes. To do this, it spawns one thread per server to poll (15 servers) and writes back the data to an object: import requests class ...
1
vote
0answers
34 views

Python Thread behavior different when code is run though IDE and command prompt

I had a issue while automating a web page whose solution I found here. In the answer by me the second code snippet which is #Assume that at this point you are on the page where you need to click on ...
2
votes
2answers
84 views

Multithreading works slower

Good day! I'm trying to learn multithreading features in python and I wrote the following code: import time, argparse, threading, sys, subprocess, os def item_fun(items, indices, lock): for ...
0
votes
1answer
19 views

python threads, multithreading with threading.thread

I have to launch a thread in the background but the output seems to be following the thread rather than sticking within main. I have something like this: import threading def work() while True: ...

1 2 3 4 5 161
15 30 50 per page