0
votes
1answer
36 views

Python: how to achieve setinterval function without thread?

I want when a function execute finsish, before the next function execute it could wait some time and I know the setinterval or settimeout effect could achieve through multithreading or somthing but ...
0
votes
1answer
25 views

No JSON object could be decoded. Threading Python

I've been trying to make multiple HTTP request using threading. First, I have a method that calls to an API, and that method takes a dict as an argument and returns a JSON object. Additionally, it ...
0
votes
1answer
20 views

Python web crawler multithreading and multiprocessing

Briefly idea, My web crawler have 2 main jobs. Collector and Crawler, The collector will collecting all of the url items for each sites and storing non duplicated url. The crawler will grab the urls ...
0
votes
1answer
40 views

killing a thread in python before its done

I did a little search and found out there is no way to kill a thread in python, but how would one solve a problem like me ? I have a function that sets X to True for one hour and after that it sets ...
0
votes
0answers
30 views

independent simultaneous input

In my python code I want to read data from a serial port as well as take input from the user through a keyboard.the data from the serial port and the keyboard can come at any time and are independent ...
1
vote
1answer
16 views

How does one make a twistedmatrix subprocess continue processing after the client disconnects?

I`m creating a twisted tcp server that needs to make subprocess command line call and relay the results to the client while still connected. But the subprocess needs to continue running until it is ...
0
votes
1answer
39 views

QT Timers not calling function

I'm using PyQt with Python3. My QTimers are not calling the function they're told to connect to. isActive() is returning True, and interval() is working correctly. The code below (works standalone) ...
-2
votes
0answers
39 views

How to do multi-thread in reactor method in python? [on hold]

I want to create group of 20 threads in python, and when i need a thread, i take one thread from the group of the 20 threads, and when i finish with him, i return him to the group . Someone can give ...
1
vote
1answer
20 views

Architechture of multi-threaded program using database

I've got a fairly simple Python program as outlined below: It has 2 threads plus the main thread. One of the threads collects some data and puts it on a Queue. The second thread takes stuff off the ...
1
vote
2answers
42 views

Python thread blocking further execution

I have been trying to write a python script that initiates a thread to listen on a socket and send HTTP data to another application to be launched by the same program. There is a requirement for the ...
-1
votes
1answer
38 views

multi threading in python using text file

let's say am having text list containing aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn ooo ppp qqq rrr sss ttt uuu i want to write python code to get 5 lines each time and apply specific ...
3
votes
5answers
78 views

in python, how to wait until only the first thread is finished

The requirement is to start 5 thread, and wait only the fastest thread. All 5 threads went to look for the same data 5 directions, and one is enough to continue the control flow. Actually, I need to ...
0
votes
1answer
42 views

Threading in python: daemon.start() eat 20% of my crawler time. Why?

I'm looking around about threading to develop cool easy web crawler, but it works so slowly. Here is a fragment of code I found in ibm library: urls = [] # huge list of urls in_queue = ...
1
vote
3answers
75 views

How to let a Python thread finish gracefully

I'm doing a project involving data collection and logging. I have 2 threads running, a collection thread and a logging thread, both started in main. I'm trying to allow the program to be terminated ...
0
votes
0answers
16 views

Shut down SocketServer on SIG*

I'm confused as to how to properly shut down a very simple server that I'm using. I was thinking that this should be enough: #!/usr/bin/python import signal import myhandler import SocketServer ...

1 2 3 4 5 158
15 30 50 per page