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
Java: Not everything put into socket is coming out
I've very new to JAVA and socket programming and I'm developing a distributed system of clients, servers and notification systems for a Uni assignment. There are a total of 3 processes running for this program, each with multiple threads. The…

Kyle Renfrey
- 11
- 1
0
votes
1 answer
Python service - writing filename with timestamp
I wrote a Python script that will run indefinitely. It monitors a directory using PyInotify and uses the Multiprocessing module to run any new files created in those directories through an external script. That all works great.
The problem I am…

gleb1783
- 451
- 1
- 6
- 18
0
votes
1 answer
Multiprocessing Stream and Search API resulting in PickleError: NoneType
I am trying to multiprocess the Twitter Search and Stream API but I am unable to start any process. I tried with simpler functions and the start() method works.
I would really appreciate if you can tell me how I can resolve these issues!
Thank…

user3863316
- 13
- 3
0
votes
1 answer
Multiprocessing using map
I have a list of strings and on every string I am doing some changes that you can see in wordify(). Now, to speed this up, I split up the list into sublists using chunked() (the number of sublists is the number of CPU cores - 1). That way I get…

doc
- 127
- 1
- 11
0
votes
1 answer
multi-threading or multi processing in laravel php
I am developing a php application with laravel. In my application I need to do some data fetching from a number of servers. In order to speedup the results I have to send those requests in the same time. I've found laravel queue but the problem is…

Alireza
- 215
- 1
- 3
- 13
0
votes
2 answers
pyqtgraph : I want to execute pyqtgraph in new process
Dear pyqtgraph masters,
I want to execute pyqtgraph in a newly created process.
In my project there is a python module : trading.py. This module makes a new process using this code
p = Process(target = realDataProcess.realDataProcessStart,…

Daniel kim
- 158
- 1
- 13
0
votes
1 answer
Only allow certain number of seconds for ONE line of python
I want to create a timer so that a particular line of code only has 60 seconds to process.
def foo():
for i in xrange(10):
output = action(arg1, arg2)
print i
If this action takes more than 60 seconds, then don't print i, but just…

user3781365
- 3
- 2
0
votes
1 answer
How to wait for a thread to finish before continuing
I need to run a function in another thread, and get the return value of that function to save it to a variable in the main thread. Basically, my code calls the function, which communicates with a balance through a serial port, waits for and gets the…

Peter Wang
- 1,808
- 1
- 11
- 28
0
votes
1 answer
Qt using gdb to debug an attached process
Environment
Qt 5.6.1
Qt Creator 4.0.1
gdb 7.11
Ubuntu 16.04 LTS
Scenario
C: A client application to communicate with M.
M: A manager process to notify L to launch a new process T.
L: A Launcher process to launch new T by forking itself.
T: A new…

r0n9
- 2,505
- 1
- 29
- 43
0
votes
1 answer
why the queue can not works for communication in this multiprocess case
The following code is about the communication between two child processes by queue. I can not figure it out that why the self.q.qsize() is zero and self.q.get() is blocked in the Function "ACT"???.... Since the counter shows the queue is full... …

forAllBright
- 61
- 1
- 8
0
votes
0 answers
process creation time in linux
I am making c source file. And I have a question.
Is there a struct that manages process(or thread) creation time?
In this context, creation time is
FROM just before creation function is called UNTIL child process(or thread) executes first…

박주현
- 43
- 7
0
votes
1 answer
Multiprocess program: ftok vs IPC_PRIVATE
I have some doubts about keys generated by ftok() and by IPC_PRIVATE.
When I call fork(), the key IPC_PRIVATE is automatically shared by both father and sons. Right?
When I call fork(), the key obtained by ftok(...,...) has to be recalculated by…

EagleOne
- 541
- 1
- 10
- 28
0
votes
0 answers
Why use content provider in one single app is not recommended
In Android Developers, it says that content provider is only recommended when you want to share data with other apps. But why use content provider in a single app is not recommended. I have two processes in my app and there is some data to share…

August Zhao
- 71
- 1
- 4
0
votes
0 answers
How to change GUI from a sub-process? and I want to run function anytime
I have a big problem. I can't change sub-process's result data to GUI of main process. and I want to run function anytime. I make program simply. it has only main process job.(not use thread, process). please give a hint. thank you.
(ps. i'm sorry,…

piraji
- 1
0
votes
1 answer
How do I fix my race condition with my subprocess?
I have a process that creates another process. The first process waits for the second process to print "done" then continues. However, I am getting a race condition where the first process gets stuck sometimes and can't continue after the second…

WinterStar
- 13
- 3