the execution of multiple concurrent processes in a system
Questions tagged [multiple-processes]
110 questions
0
votes
1 answer
How can I figure out the most efficient number of threads and processes for mod_wsgi?
I usually use AWS Elastic Beanstalk, Heroku, and Microsoft Asure for hosting my Django projects. Also I usually use MySQL. However, I have difficulty identifying efficient number of threads and processes for mod_wsgi setting. Thank you in advance…

1man
- 5,216
- 7
- 42
- 56
0
votes
1 answer
Processes in Linux: Getting every child process to sleep a Random number of seconds
I would like to make a variable (that belongs to a process) get a new random value, each time the new process starts.
I need this random generation to make every process created sleep a random number of seconds. At the beginning of the program I…

wonderingdev
- 1,132
- 15
- 28
0
votes
1 answer
mpi4py append value id to list for each communicator instance
If I want to list each communicator's id of a variable, how could I do that? Below is an attempt to demonstrate this idea:
from mpi4py import MPI
comm = MPI.COMM_WORLD
obj = "I am an example. My ID is unique to each communicator."
mpi_id = 'rank %i…

kilojoules
- 9,768
- 18
- 77
- 149
0
votes
0 answers
Using multiprocessing to utilize all cores of the CPU
I am trying calculate the number of Floating point operations per second that my CPU can perform, so I wrote the following program:
import time
import sys
from multiprocessing import Process
numOfLoops = 10000000
if (len(sys.argv) != 2):
…

Rakesh Adhikesavan
- 11,966
- 18
- 51
- 76
0
votes
2 answers
Byzantine Generals: number of faulty processes
I was reading Lamport's paper about the Byzantine Generals Problem and I would like to ask the following question: in order to the algorithm work, do I always need to know the number of faulty processes ?? For instance, if I have a network where…

Igor Mendes
- 21
- 1
0
votes
0 answers
Performance implications of distribution of threads amongst processes in a server
The question title is pretty awkward, sorry about that.
I am currently working on the design of a server, and a comment came up from one of my co-workers that we should use multiple processes, since the was some performance hit to having too many…

Bwmat
- 4,314
- 3
- 27
- 42
0
votes
2 answers
FPDF multiple pdf with PHP data - Different header and footer
I'm trying to create 1, 2 or 3 PDFs depending on the data coming from DB - with FPDF and PHP.
If I have to create 1 PDF that's all ok.
But if I need to create 2 or 3 I'm having problems because can not redeclare some classes.
Bellow the PHP code…

Felipe Lima
- 443
- 1
- 10
- 19
0
votes
1 answer
Communicate with long-running Python program
I have a long-running Python program on a server that already listens for messages on one serial port and forwards them out another serial port.
What do I need to do to allow that program to accept data from a web server (that ultimately gets that…

David Cary
- 5,250
- 6
- 53
- 66
0
votes
1 answer
Expect to multiple process in Tcl with Regex
I am trying to spawn 2 process at a same time with expect and sending commands simultaneously.
spawn telnet $IP1 $Cons1
set id1 $spawn_id
set spawns(1) $spawn_id
set logfile($spawn_id) [open "./$IP1-$Cons1-logs.txt" a]
spawn telnet $IP2 $Cons2
set…

Dinesh
- 16,014
- 23
- 80
- 122
0
votes
3 answers
How can multiple calculations be launched in parallel, while stopping them all when the first one returns? [Python]
How can multiple calculations be launched in parallel, while stopping them all when the first one returns?
The application I have in mind is the following: there are multiple ways of calculating a certain value; each method takes a different amount…

Eric O. Lebigot
- 91,433
- 48
- 218
- 260
0
votes
0 answers
Design architecture for simple multiple process in C?
I need an advice about which design architecture for simple multiple process in c language I should use.
It is supposed to be a simple program that creates a number of child process and executes, sleeps and after exit to let other child processes…

user3036497
- 1
- 2
0
votes
1 answer
Process often exiting prematurely
I have this small piece of code (easy to try):
class Program
{
static void Main(string[] args)
{
List paths = new List() { "1.docx", "2.docx", "3.docx", "4.docx" };
foreach (string path in paths)
{
…

Andrius Naruševičius
- 8,348
- 7
- 49
- 78
0
votes
2 answers
wait for multiple objects given only a vector of processes that has been created
I have a vector of handles from processes I ran using create process. I am wondering how to pass in that into WaitForMultipleObjects(v.size, "code goes here",true, infinite);
I populate the handle vector with the PROCESS_INFORMATION's handle field…

Lainezor
- 500
- 9
- 16
-1
votes
1 answer
How change threads with processes?
How to rewrite this code using processes instead of threads?How can I replace threads with processes, in this file without starting other files manually?Code is not complete but header files are not necessary here.
#include
#include…

Sneikso34
- 31
- 1
- 6
-1
votes
1 answer
Taking an exact number of bytes from input in C and synchronization between processes
Hi i need to take only 5 bytes from stdin, i've tried this but i have problem while executing it since it keeps asking me for input and at the end the string contained in buffer is wrong.
Also i'd like to know how to synchronize N processes while…

amixakir
- 1
- 1