Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
1 answer
39 views

What’s the difference between concurrency and parallelism on a single CPU core with 2 hardware threads?

Let's say I have a CPU with 1 core and 2 hardware threads (for example, with Intel Hyper-Threading or AMD SMT). From what I understand, that means the core can run two software threads "at once&...
0 votes
1 answer
43 views

Is data synchronization necessary on single-threaded systems?

This question stems from a technical interview where I was asking candidate about multithreading, and the differences between "true multithreading" via multiple hardware cores and/or ...
-2 votes
0 answers
42 views

Thread calls producing unexpected output [closed]

I have this code here on which I am expecting the output to be in this order - But the output I get is - Here is the code - const std = @import("std"); const assert = std.debug.assert; ...
1 vote
2 answers
36 views

Intermittent segmentation fault in OpenSSL SHA1_Update after days of operation in multi-threaded C program

----Problem Summary---- I'm experiencing intermittent segmentation faults in a multi-threaded C program that heavily uses OpenSSL's libcrypto for cryptographic operations. The crash occurs in ...
3 votes
1 answer
114 views

Even after clicking on the terminal screen, it doesn't print "Left pressed", how do i fix this?

I want it to print that whenever you click on the terminal screen. I'm using win32 API in C programming btw, and here is the full code below: #include <stdio.h> #include <windows.h> #...
-1 votes
0 answers
133 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 ...
4 votes
1 answer
138 views

How do I interrupt a pybind11 exec call?

I am trying to make an application using python code and C++, but I need some kind of protection against infinite loops or too long executions. I tried following some threads and seeing how other ...
0 votes
0 answers
25 views

Looking for JS Multithreading popular Examples (Workers + SharedArrayBuffer) [closed]

I'm looking for example repositories that demonstrate advanced JavaScript multithreading using one of below: Web Workers (postMessage/onmessage&string/transferable) or SharedArrayBuffer&...
0 votes
0 answers
111 views

How do I make a GUI for my real-time python code? [closed]

I have a working code, that is calculating some things from microphones real-time. I want to make a GUI for this program, so that I can change parameters in the calculating code(i.e.: FFT size), and ...
2 votes
1 answer
92 views

Why OpenCV does not utilize multithreading for acceleration?

My system and OpenCV version information, source code, and runtime results are as follows: From this, it appears that multithreading is not functioning. ~$ mamba list | grep opencv libopencv ...
2 votes
0 answers
62 views

Python app multithread with pyQT5 delivered as .exe using pyinstaller is crashing after 40-50 minutes

I am developing a multithread application using the library pyQt5. There are many threads activated in order to plot in the GUI some data extracted from many devices (one thread <-> one device). ...
-1 votes
0 answers
43 views

Minimum number of messages to protect critical section [closed]

From The Little Book of Semaphores section 1.5.3: Imagine that Alice and Bob operate a nuclear reactor that they monitor from remote stations. Most of the time, both of them are watching for warning ...
2 votes
1 answer
60 views

Cannot start a ThreadPoolExecutor inside a threading.Thread function

In this example, Tkinter GUI starts ThreadPoolExecutor. But ThreadPoolExecutor is inside a threading.Thread function. The thread function says it's finished before ThreadPoolExecutor has started ... ...
-2 votes
0 answers
94 views

Asynchronously performing operation with progress dialog [duplicate]

Suppose I want to asynchronously perform some expensive operation to then render in GUI while showing a progress dialog in the process. How can (should) I do it? Is there a robust yet concise idiom ...
0 votes
0 answers
46 views

Making threads work in pyinstaller executable with no GUI [closed]

I am using fastapi to create an executable that I want it to run as an .exe which I am doing using pyinstaller. However the issue is that threads in general dont appear to be working so well with no --...

15 30 50 per page
1
2 3 4 5
...
9405

AltStyle によって変換されたページ (->オリジナル) /