Concerning running parallel code in separate processes (unlike multithreading) and/or related to package `multiprocess` from PyPI.
Questions tagged [multiprocess]
462 questions
0
votes
2 answers
Kill a process and all its threads from the same process
I am spawning a python process using MultiProcess library and within it I am spawning around 100 threads( of 3 types each performing a separate function and using a Queue).
I want my process to neatly terminate when a db flag is raised killing all…

crazydiv
- 812
- 9
- 30
0
votes
1 answer
Multithreading under url open process
I finished editing a script that check the url is requiring a WWW web basic authentication or not and printing the result for the user as in this script :
#!/usr/bin/python
# Importing libraries
from urllib2 import urlopen, HTTPError
import…

abualameer94
- 91
- 3
- 13
0
votes
0 answers
Read input from file and pass it to sub shell
i have a scenario where in i have to monitor jobs which run in different servers, The job details(job name, host server, etc) are present in a dat file.
I have written a script a script which reads the details from the dat file and calls a local…

abubucker0
- 1
- 1
0
votes
1 answer
Killing all threads and the process from a thread of the same process
I have a process which spawns 2 types of thread classes. One thread is responsible for consuming a job_queue (100Threads of this class are usually running). And second thread is a killing thread. I am using a result_done flag which is being set from…

crazydiv
- 812
- 9
- 30
0
votes
0 answers
Delphi Detect keystrokes in embedded app
I am working on a multiprocess app, where each document is opened in a new process.
It behaves like Google Chrome.
Everything is working fine, except this:
When any control in the embedded app is active, the main window (which contains the embedded…

beerwin
- 9,813
- 6
- 42
- 57
0
votes
1 answer
Print to screen from a Process using Pool
I've been trying to print to screen stuff from the process spawned by Pool. Unfortunately nothing comes up! I need this, as I'll have 4 processes running at the same time for quite a long, and I need to get some estimated and print some information…

Alessandro Mariani
- 1,181
- 2
- 10
- 26
0
votes
2 answers
How to read a file and load to a list in multiprocess
A data file that i need to read is too big, and loading it to a list takes too long time. How can I use multiproces for this? In other words, I would like to parallelise the process file read and load to a list. Could you please help.
Basically, I…

hercules.cosmos
- 265
- 1
- 3
- 10
0
votes
1 answer
Use all cpu core in a python script for one process
i wanna use all cpu in a python script
i find some code same :
def do_sum():
min = 0
max = 100000000
while min < max:
min += 1
file = open('mytext.txt','a')
file.write(str(min))
def main():
q = Queue()
p1…

user2244393
- 3
- 4
0
votes
1 answer
Mutiproccess IO is faster than Multithreaded IO
I have a test program that does the following based on the command line options:
1) fork multiple processes and each process completely reads the same text file sequentially
2) create multiple threads and each thread completely reads the same text…

user2187598
- 131
- 2
0
votes
2 answers
simple testing of semaphores
I am trying to create a simple program to test semaphores. I am forking the process and tormenting the value of variable c in the critical section of each process, but the value of c I get is still 1 not 2. Even with the mmap() uncommented. Can…

South Park
- 33
- 1
- 7
0
votes
1 answer
server, client debugging
I'm writing a multiprocess server in C and an I'm just wondering what are the best tools to debug and test my programs? Specifically what is being sent to the client and vise versa.
Thank you for your help.

Mark Nicolle
- 307
- 1
- 11
0
votes
0 answers
Prevent multiple instances of threads for multiprocessing python
I want to run a thread for sending email periodically. In the same program, I am creating processes to do another task. When I create the task, thread from original process is copied to these sub processes and I end up receiving multiple emails…

Varun
- 31
- 1
- 8
0
votes
1 answer
Combining the subprocess and multiprocess module
I'm making a small pipeline for chewing through a large amount of data, and I've decided to use python to call the program using multiple cores.
So here's my questions:
1) The program outputs a very big text file. I only wish to save the output to a…

Misconstruction
- 1,839
- 4
- 17
- 23
0
votes
4 answers
Python multiprocess Process never terminates
My routine below takes a list of urllib2.Requests and spawns a new process per request and fires them off. The purpose is for asynchronous speed, so it's all fire-and-forget (no response needed). The issue is that the processes spawned in the code…

Kruunch Arz
- 53
- 6
0
votes
2 answers
Python thread not starting.
I am having issues with my halt_listener thread. I can start import_1 but it will not spawn a halt_listener thread. I am patterning this after known good code, the only difference was in the last iteration the halt_listener got fed a pipe instead of…

Kyle Sponable
- 735
- 1
- 12
- 31