Skip to main content
Filter by
Sorted by
Tagged with
12 votes
1 answer
703 views

I'm trying to register a Thread-Local Storage (TLS) callback in a Windows application without using the C runtime (CRT). Compiler: MSVC 14.44.35207 (Visual Studio 2022) Target: x64 OS: Windows 11 I ...
felix's user avatar
  • 131
2 votes
2 answers
165 views

I have this piece of code in Java and I tried it out on Java 21 (Eclipse Temurin and GraalVM) public static void main(String[] args) { Thread.currentThread().interrupt(); long start = ...
Sciotherium's user avatar
6 votes
1 answer
336 views

Before I get to my main question, I'm assuming that std::mutex::unlock() stops touching this as soon as it puts the mutex in a state where another thread might lock it - even though the call to unlock(...
user3188445's user avatar
  • 4,980
2 votes
2 answers
191 views

I am trying to implement a Parent and Child class. The Parent class would start a thread and run a routine function. The Child class would override the routine function if needed.This seems perfectly ...
Zhiyong Li's user avatar
4 votes
1 answer
96 views

I have to run x asynchronous threads , which can last several minutes each. They ALL have to terminate properly without exceptions. If one fails I have to stop them all immediately and not wait ...
MaxSan's user avatar
  • 51
5 votes
0 answers
229 views

I have the following program. The relevant info is: There are 3 variables atomic<int> x,y,z accessed by all threads. 3 writer threads: Each thread read all 3 values x,y,z, and update exactly 1 ...
Huy Le's user avatar
  • 1,979
0 votes
1 answer
315 views

Consider this example: // thread A: start_transaction(); update_mysql(); commit_transaction(); // remove "key" from mysql tables remove_redis_cache("key"); // thread B: std::...
xmh0511's user avatar
  • 7,618
0 votes
1 answer
86 views

I am trying to setup a multiprocessing Python task on Windows 10, Python 3.13. I have "main.py" module, containing the main entry, "orchestration.py" module with worker ...
PChemGuy's user avatar
  • 1,859
1 vote
0 answers
111 views

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++) { ... } } ...
F.X.'s user avatar
  • 7,475
0 votes
2 answers
68 views

I'm quite new to rust and want to do two function in parallel. shoot(&fleet_a, &mut fleet_b) shoot(&fleet_b, &mut fleet_a) since they only take information from one and modify some ...
basicn00b's user avatar
0 votes
2 answers
59 views

Below is the code extracted from this repo: import os.path, io filename = "" n_chunks = 12 # Number of processes to use -- will split the file up into this many pieces def ...
Akira's user avatar
  • 2,808
-6 votes
0 answers
73 views

INTRO I am getting unwanted pulsing and slowing down in rendering 2d particles, which should be drawn faintly (low alpha) and leave a fading trail under the influence of gravity. Below is a ...
Alabastine's user avatar
0 votes
1 answer
77 views

I have a user case like this. I have a list of many queries. I am running multi-threading with pyspark with each thread submitting some sql. There are some queries that report success but the final ...
user31827888's user avatar
2 votes
1 answer
63 views

I was trying to create a little Python program with a GUI using Pyside6. I ran into a problem when creating a thread for a worker to do a task (check files with a certain condition and then copy them ...
Leow193's user avatar
  • 21
1 vote
0 answers
68 views

UEFI By Default Starts OS With Single Core And Is Harder To Multitask In UEFI Using Start Progress In Thread. I am making OS Form Scratch For Multitasking But There Is No Option To Multitask In EDK 2 ...
First Person's user avatar
0 votes
0 answers
43 views

I have a Python application that runs multiple tasks in parallel using ThreadPoolExecutor. I want all threads to log safely without race conditions. I also need two loggers: Console logger (prints ...
User21749's user avatar
0 votes
0 answers
17 views

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 ...
forstudy's user avatar