the execution of multiple concurrent processes in a system
Questions tagged [multiple-processes]
110 questions
18
votes
7 answers
IPC (inter process communication) between python and java
First, a little explanation of why I'm asking this question in the first place:
I'm writing a python program (with a wxPython gui) that needs to call a Java AWT program from python and extract data from it. I have an in-process working solution on…

Adam Fraser
- 6,255
- 10
- 42
- 54
7
votes
3 answers
Is using Parcelable the right way to send data between applications?
I am trying to understand how to communicate between applications in Android - not just between Activity instances.
I set up a 'client' that sends a Messenger obj to a Service (in the Intent sent to the service); the service creates a Message obj…

Art Swri
- 2,799
- 3
- 25
- 36
7
votes
1 answer
Problems in code with multiple child creation
This code is part of my OS project, the project asks to make something where apply concurrent processes, I decided to make a client server poker project with two players where I use sons and grandson processes to determinate the hand value.
The…

abc
- 11,579
- 2
- 26
- 51
6
votes
1 answer
How to collect prometheus metrics from multiple python-flask sub-process?
I have main() function which spawns two separate sub-processes. These both sub-process shares metrics. How can I share metrics for both process and keep it updating?
Here, is my snippet for more understanding.
from multiprocessing import…

Sahil Sangani
- 109
- 1
- 2
- 6
6
votes
1 answer
Docker container not utilizing cpu properly
Single docker container is working good for less number of parellel processes but when we increase the number of parellel processes to 20-30 the process execution get slows. The processes are getting slow but still the docker is utilizing only…

shubhamsoni136
- 81
- 6
6
votes
1 answer
Werkzeug and class state with Flask: How are class member variables resetting when the class isn't being reinitialized?
I'm trying to write a flask extension that needs to persist some information between requests. This works fine when I run Werkzeug with a single process but when I run with multiple processes I get some odd behavior that I don't understand. Take…

Ivanna
- 1,197
- 1
- 12
- 22
6
votes
1 answer
Synchronization of asynchronous reading from stdout of child process
I have application that launches sub process and processes its stdout asynchronously. The problem is that the async operation takes some time and I want method responsible for process execution to end after all async IO operations are done.
I have…

Vyktor
- 20,559
- 6
- 64
- 96
5
votes
1 answer
Sigsuspend equivalent to atomic series of sigprocmask, pause, sigprocmask?
I was reading my textbook's chapter (CS:APP, 3rd ed., chapter 8, page 781) on signals/ECF for Linux x86-64 systems, and came across this:
The sigsuspend function temporarily replaces the current blocked set with mask and then suspends the process…

k0zm0tis
- 69
- 2
5
votes
3 answers
Running Multiple python processes in Docker
I am new to docker, trying to run multiple python processes in docker.
Though it's not recommended, however, it should work as suggested here "https://docs.docker.com/engine/admin/multi-service_container/"
My Dockerfile :
FROM…

Shubham Jain
- 876
- 1
- 9
- 17
5
votes
1 answer
Spawn a new independent process in node.js
Is there any way to spawn a new independent process from the current running script?
I am trying to run a new script from an already running script. The new script should be independent of the one that called it.

Arham Chopra
- 79
- 1
- 5
5
votes
3 answers
Why does simple 3-way majority voting not solve Byzantine faults?
I have been reading many papers recently about Byzantine fault tolerance. There is a common proof that 3m+1 computers are needed to handle m Byzantine faults. The general proof goes something like this:
There are three "generals": A, B, and C.…

Chris Brown
- 61
- 1
- 3
5
votes
2 answers
Preventing debugging session from pausing after each inferior exits
I'm debugging a tree of processes using gdb's very handy multiple-inferior support:
(gdb) set detach-on-fork off
(gdb) set schedule-multiple on
(gdb) set follow-fork-mode parent
(gdb) break PostgresMain
(gdb) break PostmasterMain
and now need to…

Craig Ringer
- 307,061
- 76
- 688
- 778
4
votes
2 answers
Running two different independent PyTorch programs on a single GPU
I have a single NVIDIA GPU which has a memory of 16GB. I have to run two different (and independent; meaning, two different problems: one is a vision type task, another is NLP task) Python programs. The codes are written using PyTorch and both the…

Coder
- 151
- 6
4
votes
2 answers
Injecting dependencies in multiprocess Android applications
TLDR: I am developing an application which runs in multiple processes. For the purposes of UI testing, I want to inject a fake API dependency to make the app running under tests independent of network interactions, however, this doesn't seem to work…

karlicoss
- 2,501
- 4
- 25
- 29
4
votes
1 answer
Debugging with GDB over several processes
Without getting into to to much detail, I'm working on a program that consists of several separate processes all running on embedded QNX RTOS. They don't have a parent-child relationship, they are all spawned using spawnlp(P_NOWAIT, ...) and they…

Harley Freeman
- 45
- 5