New answers tagged multithreading
1
vote
Accepted
Multithreaded tcp server accepting two clients with task factory and graceful shutdown
In this post let me focus only on the TcpServer class.
I will post another review about the TcpClientTwo class next week.
...
2
votes
C++20 Multi-queue Thread Pool with Work Stealing
Create a struct worker
You have a the member variables threads_ and tasks, one is a ...
2
votes
Multi-threaded Mandelbrot set generator slower than single thread
Distributing the work among threads
D. Jurcau already mentioned that you are not distributing your work correctly. It's even worse than his terse answer hints at. One issue is that inside the lambda ...
1
vote
Multi-threaded Mandelbrot set generator slower than single thread
You don't distribute work among your threads correctly. According to your code, only by the time a thread has completed its work is the start point for the next thread(s) updated.
0
votes
Do I really need to re-interrupt a thread doing end-of-life tasks on interruption?
There is a major bug in your code. You use the Thread.interrupt() to control the thread lifecycle but you never check ...
Top 50 recent answers are included
Related Tags
multithreading × 1558java × 460
c++ × 383
c# × 337
thread-safety × 246
python × 186
performance × 168
c++11 × 134
concurrency × 125
c × 79
queue × 68
python-3.x × 65
locking × 61
.net × 58
producer-consumer × 54
socket × 51
asynchronous × 46
beginner × 44
pthreads × 37
algorithm × 36
object-oriented × 33
android × 33
networking × 32
lock-free × 32
c++14 × 26