Concerning running parallel code in separate processes (unlike multithreading) and/or related to package `multiprocess` from PyPI.
Questions tagged [multiprocess]
462 questions
0
votes
1 answer
Why won't my python else statement trigger?
Here is the code, these are dummy classes that will eventually be replaced by something more useful. What I want the while loop to do is pull data from the queue to see if a poison pill was dropped. If not I want whatever is in the else statement to…

Kyle Sponable
- 735
- 1
- 12
- 31
0
votes
2 answers
Python NameError in script
I am having issues with this multiprocess script I modeled it after the one I found here
http://broadcast.oreilly.com/2009/04/pymotw-multiprocessing-part-2.html
class test_imports:#Test classes remove
def import_1(self, control_queue,…

Kyle Sponable
- 735
- 1
- 12
- 31
0
votes
0 answers
Why wont my python thread react to global variables
This code is to start and stop multiple copies of various different thread types. I will preface this with saying I tried using pipes to control the threads but keep getting random memory errors to do with the pipes. This is a prototype of a factory…

Kyle Sponable
- 735
- 1
- 12
- 31
0
votes
2 answers
Python MultiProcess, Logging, Various Classes
I am currently trying to log to a single file from multiple processes but I am having a lot of trouble with it. I have spend countless hours looking online -- stackoverflow and Google, but have come up with nothing concrete.
I have read: How should…

user2570374
- 27
- 1
- 4
0
votes
1 answer
Fire event in another process
In my application I'd like to start another process, which has 3 events. How can I fire/trigger an event, or just call a function, which is in another process?
I also would like to pass some object to the another process (i.e. the handler of my…

MartoniczD
- 178
- 1
- 1
- 9
0
votes
2 answers
While loop is breaking passing of values to a variable within a python process
I have been trying to learn how multiprocessing works in python, and have created a very simple script to test my understanding.
Everything seems to work fine, except for the fact that, within a process, none of value assignments that happen after a…

achillesminor
- 171
- 1
- 11
0
votes
1 answer
multiprocessing exec's in Powershell up to a threshold
I have multiple commands in a string array that invoke SSIS packages.
To take advantage of the hardware I want to run many packages at once, waiting until one completes before adding another to the fray. From looking at other similar questions on…

user812323
- 5
- 4
0
votes
2 answers
how to prevent the process launching if it was launched before?
I have application that has a several process, including the authentication process. I need to prevent launching of authentication, if connection was established and authentication successfull. How can I implement this behavior?
Platform - linux.

eulers_child
- 89
- 7
0
votes
1 answer
Python redirect stdin/stdout with execv
I'm using python to os.fork a child progress, and use os.execv to execute another program in the child progress. How can I redirect I/O in the child program. I tried this but failed.
import sys, os
pid = os.fork()
if pid is 0:
sys.stdin =…

Bin Wang
- 2,697
- 2
- 24
- 34
0
votes
2 answers
Python threading - listen to network while compiling
In python (2.6.6) what is the best way I can have a thread/process checking a network (message queue) for things while concurrently doing work (compiling). If i receive a command down the message queue, i must be able to kill and spawn compile…

James Bennet
- 603
- 2
- 10
- 22
0
votes
2 answers
semget not such file or directory
I'm trying to get this code working but I can't. I manage to create some code that doesn't show any compilation error or warning, but when I try to execute it fails with this error:
semget: No such file or directory
This is my code:
#include…

user1660559
- 33
- 1
- 2
- 6
0
votes
1 answer
signal error: "invalid use of void expression"
I have some other trouble using the "signal" function. I have 5 children processes and its father.
Only one process should be running at a time, and that process should change to another aleatory process with some delay (from 1 to 10 seconds). For…

user1660559
- 33
- 1
- 2
- 6
0
votes
1 answer
Node.js: Invoke different behavior via cluster.fork()
I'm working with Node and Redis, and I have a need to add a subscriber to redis in case an event happens. The problem is I only want the processing to happen once... And I'd really like for only need one of my forked processes to be listening to…

ControlAltDel
- 33,923
- 10
- 53
- 80
-1
votes
1 answer
C++: How to control process number
I am trying a multiprocess code with C++.
I have two questions about the code below:
Q1. It seems 'Vtmp' or 'Ntmp' did not store the info properly for each
process. I don't know why.
Q2. If Q1 fixed, My final purpose is to let each Vtmp(V[i]) run…

xin wang
- 9
- 5
-1
votes
1 answer
Understanding continuation tokens in AWS S3
I'd like to understand better how continuation tokens work in list_objects_v2(). Here is a piece of code that iterates through a large S3 bucket, storing the continuation tokens provided:
def transformer():
# some s3 client
response =…

OctaveParango
- 113
- 1
- 14