Skip to main content

Questions tagged [multiprocessing]

Filter by
Sorted by
Tagged with
2 votes
1 answer
31 views

I am trying to automate an old GUI tool which requires filling in some data from a CSV and selecting appropriate tree item values based on it. I need to do this in multiple instances of the ...
Yashbhatt's user avatar
  • 129
4 votes
2 answers
989 views

I've been learning about threads and processes and I understand that threads allow you to write concurrent code: where executing threads switch very quickly from one to another, giving the impression ...
Avantgarde's user avatar
1 vote
0 answers
108 views

tl;dr - I want to stream text data from one writer process to multiple reader processes. I'm thinking of using a file to achieve this. Is it a good idea? Using a file would avoid having to maintain ...
Catherine's user avatar
1 vote
1 answer
87 views

I have a huge DB,and CalculateTasksFromDB() takes a long time (and lots of memory). Once that method is done,there is a huge list of tasks. There are worker processes in the system (at any point in ...
yoni keren's user avatar
0 votes
0 answers
613 views

I'm thinking of how would I go about creating my own logging centralization and centralized aggregation system. Imagined system has 10 - 100 nodes. Each node runs a LAMP(Linux, Apache, MySql, PHP) ...
Dan's user avatar
  • 109
-2 votes
1 answer
903 views

As in topic. If i want to access RAM from 2 different threads, completly different cells in memory, do they queue and are sent asynchronously or queue? Lets say accessing memory from one thread (...
drszmatan's user avatar
2 votes
2 answers
199 views

I'm creating a framework that needs to execute certain tasks, I'll use building a car as an example for this. So, an individual task could be something like weld metal or screw bolt. But there are ...
Mahi's user avatar
  • 406
1 vote
1 answer
365 views

I'm trying to write an application server in python. I have a master process and multiple worker processes created from the master using fork(). I have two approaches in mind about how the workers ...
akshay takkar's user avatar
1 vote
0 answers
483 views

I have a small example that i run on a real device with 4+4 cores. ExecutorService service = Executors.newFixedThreadPool(4); for(int i =0 ; i<1000; i++){ Runnable task = new Runnable() { ...
Nick's user avatar
  • 117
1 vote
1 answer
829 views

This question was tossed as a starting point in a technical interview at a semi-conductor company. I guess there are no right ans - the purpose of this open ended question is to gauge the engineer's ...
Zakir's user avatar
  • 113
0 votes
1 answer
401 views

I am trying to list the times in which it is useful to run some code in a separate process. Does the following short list cover it? Speed: the obvious one. Multiprocess/distributed parallism Worker ...
Frames Catherine White's user avatar
3 votes
2 answers
3k views

When programming using (pre-emptive) multithreading model on a single processor, we need to deal with synchronization, deadlocks, etc. Do any additional concerns appear (and correspondingly, new ...
max's user avatar
  • 1,115
5 votes
2 answers
969 views

On a computer with a single cpu core, must a multithreading program be implemented based on an OS? Can it be implemented in the instruction set and run without an OS? Can multiple programs run in ...
Tim's user avatar
  • 5,555
1 vote
1 answer
1k views

With K processor cores, how to optimally split N jobs into groups, with each group to be processed sequentially by one processor core, when the time to process each job is unknown ahead of time and ...
JDiMatteo's user avatar
  • 375
4 votes
1 answer
1k views

I am currently working on a project that has client applications communicating with a server process. The client applications could be local to the same machine as the server process, on the same ...
Nonce's user avatar
  • 43
3 votes
3 answers
3k views

We have written an application that spawns at least 9 parallel processes. All processes generate a lot of logging information. Currently we are using Python’s QueueHandler to consolidate all logs ...
chkorn's user avatar
  • 33