Questions tagged [parallelism]
The parallelism tag has no summary.
95 questions
2
votes
3
answers
514
views
Diagram for Parallel processes
What type of diagram can I use to model parallel processes interacting with a shared set of resources, along with the state of those resources at each point in time?
My motivation is I have a bug that ...
4
votes
10
answers
4k
views
Can multi-threading improve performance of an IO-bound process?
I am trying to understand the difference between CPU Bound vs IO Bound process. ChatGPT suggested that multi-threading/parallel processing can help a CPU bound process; However, I think that having ...
0
votes
1
answer
122
views
NIC handling multiple packets at once
Can NIC handle(send/receive) multiple packets at once?
For example, 2 asynchronous tasks request 2 different things from a database. Are those 2 requests sent simultaneously by NIC? Also, are the ...
1
vote
1
answer
222
views
Distribution of processing across cores between a LINQ and PLINQ query
I am trying to create a simple demonstration of using 'parallel LINQ' (PLINQ). I have two versions of my task, in C#:
var result = Enumerable.Range(1,1000000).Where(x => IsPrime(x)).ToList();
...
-1
votes
2
answers
124
views
Multi-threaded design for continuous messages analysis
Since I don't have much knowledge of multi-threaded design and English is not my native language, I don't know how to exactly describe my problem.
Let's say I have a mini-program in school, which has ...
2
votes
1
answer
568
views
Does "green threads" necessarily imply cooperative multitasking?
Java used to have green threads, i.e., implemented inside the VM.
The description of Python Eventlets says
"Eventlet is built around the concept of green threads (i.e. coroutines...).... Green ...
0
votes
2
answers
377
views
Can messages from single partition be forwarded to multiple partitions to increase parallel processing in Kafka?
I'm wondering if the following approach can be used in order to increase parallel processing of Kafka messages. Suppose there's a topic with N partitions. At some point the system hits a bottleneck in ...
8
votes
3
answers
26k
views
Parallel process flowchart shape in Draw.io
Our drawing tool is draw.io. Occassionally I've got to draw flow charts with it. In those flow charts I've got to express parallel processes (very similar to this UML example).
Wikipedia says about ...
26
votes
4
answers
6k
views
Do compilers optimise in concurrency?
Presuming that I have written some sequential code where it can be broken down into multiple isolated tasks, it seems it might be efficient for concurrency to be introduced.
For example
print(...
0
votes
2
answers
376
views
My aproach to lockless concurrency
this is a highly theoretical question about my parallelization approach.
First of all, I want to inform everybody that I do not claim that I am the 'inventor' of that approach but I couldn't find any ...
2
votes
1
answer
241
views
What is the best way to decouple and define the orchestration (coordination) of concurrent tasks?
I have a data synchronisation concurrent algorithm. It does the following: get data and files from server, send data and files to server, save them to database / filesystem. Imagine the system like ...
2
votes
2
answers
495
views
Processing messages in parallel with Kafka & Akka
We have data in Kafka which we need to export to multiple destinations. Each message key is to be exported to one destination.
A destination can be a REST endpoint, a file, a database etc.
Each ...
3
votes
1
answer
11k
views
How to approach a large number of multiple, parallel HttpClient requests?
I have a website which offers pages in the format of https://www.example.com/X where X is a sequential, unique number increasing by one every time a page is created by the users and never reused even ...
2
votes
0
answers
141
views
Is it possible to implement insert file operation in modern extent-based filesystems?
The problem was already discussed here. But there was not consensus on this topic.
I have some thoughts on how insert operation can be implemented for some popular file systems. If FS has extent-...
2
votes
1
answer
503
views
Parallel execution: 1 thread pool or N thread pools?
I have a tree generated by configuration.
Each leaf of the tree is a long running task (like DB query, reading from file, etc.) that gives a result I want to store in a mirrored tree with only the ...