17,830 questions with no answers
0
votes
0
answers
17
views
Actix-web + Tokio: Server hangs when using tokio::spawn with Arc<Mutex> loop
I am facing an issue where my Actix-web server starts correctly, but the moment I hit the /upload_chunk endpoint from my frontend, the request hangs forever.
After some debugging, I found that the ...
1
vote
0
answers
111
views
How is a non-parallelized for loop inside an OpenMP parallel section executed?
Consider the following code:
#pragma omp parallel
for (int run = 0; run < 10; run++)
{
std::vector<int> out;
#pragma omp for
for (int i = 0; i < 1'000'000; i++)
{
...
}
}
...
0
votes
0
answers
250
views
multithreading java and neural network : reading 2 csv files at the same time
I'm working with a neural network project that requires to run two instance of the neural network program with different training set specifically two at the same time. For that I'm using ...
-1
votes
0
answers
137
views
Java Multithread EventHandling
I'm trying to write an audio player in Java/JavaFX and want to make a playlist play songs automatically. I have a button that triggers a new thread, and everything works fine so far.. but when the ...
0
votes
0
answers
147
views
Do the RMW operations on `cnt` still not avoid an inconsistent status for this multiple-producer single-consumer implementation?
Looking at this implementation of multiple-producer single-consumer, which was the implementation in Rust's standard library; however, its memory order model is derived from C++. So, it should be ...
0
votes
0
answers
38
views
How to achieve complete read/write thread separation for BoringSSL using BIO APIs
I'm integrating BoringSSL into my networking library for secure communication. I've observed that both SSL_read() and SSL_write() operations can potentially trigger both read and write activities on ...
0
votes
0
answers
127
views
Is this protection method multithread safe?
I've written a MQTT client for embedded system with RTOS (understand not POSIX, generally FreeRTOS). There's no pthread in the system. There's only 32 bits atomic instructions supported.
The client ...
0
votes
0
answers
403
views
How to enable free-threading in Python 3.14 with Python install manager?
Python has officially introduce Python install manager and free-threading feature in 3.14, but I cannot find out how to enable free-threading feature with Python install manager. Is there a way to ...
0
votes
0
answers
49
views
Dynamic Core Management via Arm's PSCI on OdroidC4
I have been creating a basic core management tool which is able to dynamically turn CPU cores on and off using Arm's PSCI CPU_ON and CPU_OFF functions. This worked great on QEMU, however moving onto ...
0
votes
0
answers
35
views
Data Race Issues with `pa_mainloop` in Multithreaded Environments and Their Mitigation
AudioControl::AudioControl(QObject* parent)
: QObject { parent }
, QRunnable()
{
m_loop = pa_mainloop_new();
if (!m_loop)
return;
m_api = pa_mainloop_get_api(m_loop);
...
5
votes
0
answers
201
views
Why is std::atomic<T> larger than T itself for user-defined structs on MSVC but not on GCC/Clang?
I was checking the size of std::atomic compared to T on different platforms (Windows/MSVC, Linux/GCC, Android/Clang).
For intrinsic types (like int, int64_t, etc.), the size of std::atomic matches the ...
0
votes
0
answers
42
views
Is it safe to read a QHash with multiple threads?
I have an object: QHash<long, QMap<long, QList<long>>> hash; During initialization, I add keys in the main thread, where each key corresponds to the ID of a worker thread on a one-to-...
0
votes
0
answers
75
views
How to accelerate my corpus embedding to the chromadb
I have the corpus.jsonl which has 6.5gb storage.And i use the one h100 gpu to embedding the corpus to the chromadb,but it seems very slowly.I want to find how can i accelerate the progress(gpu,cpu,io)....
1
vote
0
answers
25
views
In Spring WebFlux, on which thread is the request handled when entering a controller?
I'm not good at English, so I used a translator, so please understand that the sentences may be strange.
I'm learning Spring WebFlux.
When a request entering a controller, requests are received on a ...
2
votes
0
answers
116
views
Is it possible on any real hardware, for the updated value of an atomic integer to become visible earlier via an indirect path than via a direct path?
Is it possible on any real hardware in the real world, for the updated value of an atomic integer written by one thread to become visible to another thread earlier via an indirect path, where a third ...
3
votes
0
answers
255
views
Iterating over special semiprimes
For a project of mine related to prime counting, I am interested in iterating over special kind of semiprimes.
For a given n, I want to iterate over semiprimes k=pq with the following properties/...
11
votes
0
answers
796
views
mod_wsgi: Error "No such directory" for shutil.rmtree() after mkdtemp()
I'm really confusing about multiple thread in mod_wsgi, even after reading this document
The main problem is that, how does mod_wsgi call my python scripts?
To make my question clear, i will conclude ...
0
votes
0
answers
188
views
Trying to use multithreading to get around Unity LoadSceneAsync not being async
I keep seeing people posting loading scenes where the progress bar works. I've got an animated character while the scene loads, and it all just freezes. Like people have said it's not perfectly async. ...
0
votes
0
answers
109
views
Spin inside ros2 lifecycle node as a separate thread
I’m working inside a rclcpp_lifecycle::LifecycleNode and I’d like to spin up a background thread for loop‐closure detection:
loop_thread_ = std::thread([this]() {
LoopDetection();
});
However, ...
0
votes
0
answers
67
views
Julia code seems to take longer the longer the number of threads it's been run
Essentially I'm following the example in the guide
(posting only the relevant part, the full example is at this repo
embryos = [fertilising_room(population_model) for _ in 1:POPULATION_SIZE]
chunks = ...
6
votes
0
answers
243
views
Why load and exchange an std::atomic<bool>?
In P2300, the "1.4. Asynchronous Windows socket recv" example uses a pattern to mark completion (of setting the cancellation callback) that looks like this:
if (ready.load(std::...
0
votes
0
answers
182
views
How do threads work under assistants in langgraph platform?
I am struggling to understand how threads and assistants work within the LangGraph Platform Framework
How I think it works
create an assistant that's associate with a graph
For each conversation, ...
2
votes
0
answers
60
views
Persistent parallel threads in Panda3d, with args at runtime
I'm writing a physics game, and I'm trying to speed up my motion calculations. Every tick of the update cycle, I call an rk4 routine which calls an ODE function 4 times, passing updated values for dt/...
0
votes
0
answers
70
views
Vert.x mysql timeouts
I have these 2 verticles in my java application in vert.x that are supposed to be running in multiple batches.
public class TestVerticle4 extends AbstractVerticle{
private static final Logger ...
1
vote
0
answers
41
views
Track number of in-use vs. idle workers in Matlab with fmincon
I'm currently in Matlab doing a set of fixed point iterations using fmincon. I use parfor multithreading to do so. However, one of my iterations in the parfor loop goes particularly slow just because ...