Questions tagged [multithreading]
Use this tag when the program performs its work using multiple concurrent threads of execution.
1,612 questions
3
votes
2
answers
58
views
Simple WinAPI Event manager implementation
Trying to learn windows internals and made my first work with Events and Threads. What do you think about my code? Any advice?
...
15
votes
1
answer
2k
views
CUDA Mandelbrot Kernel
I'm looking for feedback and suggestions on improving the performance and quality of my CUDA kernel for rendering the Mandelbrot set. I've implemented a "ping-pong" style coloring and ...
0
votes
0
answers
59
views
Wait for results/failure of an unreliable async operation
Abstract Problem
The basic problem is that of producer/consumer. Wait for an async Producer to [produce an item] or [fail], together with a timeout on the consumer side.
Using Java's ...
3
votes
1
answer
70
views
Tracking total iterations in CUDA fractal renderer
I'm developing a fractal renderer in CUDA and need advice on tracking the total number of iterations performed during rendering. This is important for real-time dragging and zooming performance.
...
7
votes
1
answer
708
views
Shortest unrestricted path to touch every square in an n by n grid
The goal is to brute force the length of the shortest unrestricted path that touches any part of each square within an n by n square grid.
Unrestricted path meaning any continuous curve between two ...
4
votes
1
answer
62
views
IBM File Processing and PDF Conversion App Using PyQt6 and FPDF
I am trying to convert a 111MB TEXT file to PDF quickly. I'm currently using the FPDF library, and large files take about 40 minutes to process. The text file is an IBM carriage control (ANSI) file ...
4
votes
1
answer
85
views
A class that will manage a thread and execute tasks (e.g., SQL queries) within it
I am interested in creating a class that manages a thread and executes SQL queries sequentially within it. The queries would be submitted from various parts of the program, and the results would be ...
5
votes
2
answers
139
views
SDL3 Thread pool for fast cross-platform data parallelism
I'm working on a custom engine to make games with SDL3. I've spent the last few weeks trying to improve performance with multi-threading, which has culminated in this thread pool I'm calling "...
10
votes
2
answers
1k
views
Multithreaded UDP server that advertises itself in a PostgreSQL database and launches other servers in response to messages from a client
Description
For fun, and to learn some C++, I've decided to reimplement the entirety of EVE online as I remember it. (I'm aware this is an insane and likely unreachable goal, that's intentional).
I'...
4
votes
2
answers
231
views
SPSC templatized lock free queue implementation and benchmarking
I have tried implemented a fast lock free Single producer single consumer queue in C++ for practicing concurrency and low level design concepts. I also benchmarked the code on x86_64 2.3GHz Intel ...
4
votes
3
answers
162
views
Threads in Java with ExecutorService
I'm experimenting with Threads in Java and came upon the ExecutorService class.
I've written the following code:
...
7
votes
1
answer
486
views
Is this a correct implementation of atomic reference counting in C?
Giving the following constraints, is the optimization in this code correct?
before an object is transfered to another thread, its reference count is incremented and ...
3
votes
1
answer
84
views
Multi-Page Web Scraping Code Using Selenium with Multithreading
I have written a web scraping script using Selenium to crawl blog content from multiple URLs. The script processes URLs in batches of 1000 and uses multithreading with the ThreadPoolExecutor to ...
5
votes
1
answer
260
views
2
votes
1
answer
79
views
Multithreaded Merge Sort Using ForkJoin Framework
I've implemented a multithreaded merge sort using Java's ForkJoin framework, and I wanted to gather feedback on its correctness, efficiency, and scalability.
Here's my implementation:
...