Questions tagged [multiprocessing]
Multiprocessing is the use of two or more central processing units (CPUs) within a single computer system.
94 questions
4
votes
1
answer
64
views
Consuming each Kafka partition in a separate proccess
I'm reimplementing functionality originally written in Kotlin. It uses Dispatchers.Default which is recommended for CPU-intensive tasks like JSON parsing to start ...
1
vote
0
answers
60
views
Bi-Directional A* function in MATLAB
I am currently working on my thesis for 3D path planning involving external elements, and I have completed about 1/5 of the total trials that I am doing. For each 1/5 of the trials I am increasing the ...
3
votes
1
answer
96
views
Designing Multiprocess signaling and communication
Originally I meant to discuss my entire project on stepper motors for Raspberry Pi. But I see that's out of scope. If you'd like to provide high level feedback, welcome to do so in github.
The lack of ...
1
vote
2
answers
67
views
bucketsort with multiprocessing
I want to compare the procedure time for each number of process. I made 5000000 numbers in input.txt in random order. I read it and do bucket sorting with ...
2
votes
0
answers
181
views
4
votes
2
answers
2k
views
Multi-threading Class in C++
I wrote a C++ class which can take a vector of functions and their respective arguments and execute them in parallel and return a vector of results from its respective functions.
...
2
votes
2
answers
555
views
Code for asynchronous data stream processing with multistage pipelines
I am trying to write some code for processing streams of asynchronous data from multiple sources (Producer Nodes), process them ...
1
vote
1
answer
158
views
Training a Reinforcement Learning algorithm
Problem:
I'm trying to reduce the computation time and optimize specific functions of a Reinforcement Learning algorithm in the training phase and observed that one block of code takes too much ...
4
votes
1
answer
312
views
Polyominoes generator
This is my first Python program. It is not very user friendly, but it works. I used some code snippets and tricks I found in various places. And generous people at Stack Overflow helped me with ...
4
votes
1
answer
564
views
Prime factorization algorithm by using the multiprocessing module of Python
I may introduce a Python code of prime factorization which is from my personal project that I'm working on.
...
1
vote
0
answers
56
views
Process to continuously delete resources
I have created a function that creates a multiprocessing.Process to continuously delete "resources" (instances from a certain class) from my application. When I kill one of these resources, ...
1
vote
1
answer
144
views
Timeit multithreading/multiprocessing C++
Given a Timeit method which runs for n times the provided function, which approach between multithreading and multiprocessing should be better to speed up the execution of all iterations and avoid the ...
0
votes
1
answer
66
views
streaming / low memory groupby in julia
I am working on a groupby-aggregation function that will work without RAM overflow issues. Essentially, I want it to run as fast as possible, while not necessarily loading the entire data structure ...
1
vote
1
answer
54
views
Treat a list by generating a dataframe and sending the data to function via multiprocessing
To collect the list with the data from an API, I need to do these steps:
...
2
votes
0
answers
32
views
Brand generator script using multiprocessing
I have two indices in Elasticsearch which are brands, and categories, and I have a very ...