the execution of multiple concurrent processes in a system
Questions tagged [multiple-processes]
110 questions
0
votes
1 answer
Unable to exit loop after reading using two pipes in C (processes)
I have taken a look at this and also this stack overflow links.
I am having trouble understanding the process for closing write ends of pipes. In the code below, I have 3 processes, one parent, a child of the parent, and a child of the child. I am…

Cytla24
- 1
0
votes
1 answer
Fifo timing with multiple threads. Two writes to fifo from one thread only work with sleep(1)
I am making an application which forks in the beginning into two processes. Simplified, one of the processes continuously reads from a fifo file, the other process occasionally writes notifications to the fifo file. Now, everything works fine,…

Jens
- 141
- 10
0
votes
1 answer
How to write logs from multiple processes to a single file sorted by timestamp?
Consider there are 3 processes that needs to log messages to a single file. The rate of messages from the 3 processes are different. Ex: P1 logs 10 requests per second; P2 logs 20 requests per second and P3 logs just 1 or 2 requests per second. How…

Vinay
- 1
- 2
0
votes
0 answers
Is there a way to restart and update running process in python like in elixir?
I was looking for a while at elixir and control over crashing, live updating and restarting processes on the fly. Is there a lib or a way to do it in python?

Meroz
- 859
- 2
- 8
- 28
0
votes
1 answer
Why does my child print a specific line from a file only sometimes?
I am trying to read specific lines from a file using a parent process to read one line and a child process to read some other line. The simple text file has as contents: "This is line one\n", This is line two\n", etc.
However, I find that when I…

mtruong1999
- 129
- 1
- 10
0
votes
0 answers
Spring Application- What is the best way to start a background process?
I am using Kinesis to consume a stream inside of a Spring Boot App. I'm using the KCL provided by AWS for this and to start it, you define a Kinesis com.amazonaws.services.kinesis.clientlibrary.lib.worker.Worker instance and call .run() on it. I do…

IcedDante
- 6,145
- 12
- 57
- 100
0
votes
1 answer
Sleep function has not effect when handling SIGCHLD
What is the relation between the SIGCHLD handling and the sleep function?
#include
#include
#include
#include
#include
#include
#include
sig_atomic_t…

thyago stall
- 1,654
- 3
- 16
- 30
0
votes
1 answer
Shared variable only changing in one process
I'm having an issue in my project for university. I have a shared variable with products and the quantity of each product in a warehouse. In intervals of "I" seconds there is a supply of Q in a random product. It sends a message to process…

stelyt
- 1
- 1
0
votes
1 answer
Spring Boot - Camel how to handle multiple processes
I have 3 Spring Boot - Camel applications which is run individually. I need to chain these processes, say on completion of process A it should initiate process B and then once process B is completed it should proceed with process C. If any of the…

A Radhika
- 1
- 1
0
votes
0 answers
Trying to share memory in windows across multiple processes, multple languages
I have an application where I have 3 different processes that need to run concurrently, in 3 different languages, on Windows:
A "data gathering" process, which interfaces with a sensor array. The developers of the sensor array have been kind…

Frank
- 544
- 2
- 14
0
votes
1 answer
Rewriting a class to be more generic for portability
I had previously asked this question Removing Windows library dependencies
about removing Windows library dependencies. User: https://stackoverflow.com/users/214671/matteo-italia had already explained that for Threads you can replace windows…

Francis Cugler
- 7,788
- 2
- 28
- 59
0
votes
1 answer
Does the ruby GIL have effect on the processes it starts?
I have noticed that when I use cruby to run a muli-threaded java program via Open3.capture3('java -jar multi-threaded.jar'), most java threads are idle and the CPU is only busy on a single core. However, if I run the same javaprogram from bash, the…

Kalsan
- 822
- 1
- 8
- 19
0
votes
2 answers
MPI master process not waiting for other procs to calculate
Hello I am new to programming with MPI. I'm trying to multiply two matrices together (an NxN matrix (A) and an Nx1 (B) matrix) to get a resulting C matrix (Nx1). Each process is supposed to calculate a row (element) in matrix C, however only process…

keenns
- 863
- 4
- 14
- 26
0
votes
0 answers
How i can prevent multiple processes to access same serialized file Simultaneously?
I have a class that i serialized objects of it. This class has states that might change by a process and serialized and saved in a file again.
The problem is that when multiple process deserialize a same file and change it's states and serialize it…

Alireza
- 1
- 2
0
votes
0 answers
Some of the rows missing in SQLite database when multiple processes write simultaneously
I am creating simple SQLite database where multiple processes write to tables simultaneously. Here each process has its own table to be updated with INSERT statements.
Here is my sample code:
CSQlite:: OpenDB()
{
SQlite3_open("SSCOB.db",&db);…

Lavanya bhuma
- 1
- 1