23,526 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
18
views
Data Consistency Issue with tableUpsert() on Keyed In-Memory Tables
I'm encountering a data consistency issue with keyed in-memory tables in DolphinDB during batch updates with concurrent queries. I have a custom function that performs a batch calculation every 10 ...
1
vote
1
answer
125
views
Facing issues with audio playback stability [closed]
Some context: The architecture involves receiving audio packets over UDP, pushing them into a custom LockFreeRingBuffer, and then consuming them in the audio output callback.
The Problem: I hear ...
Best practices
0
votes
7
replies
73
views
Safe publication of eventually-immutable data structures
I have a deep data structure that I expect users to create (from some data source), extract data from (into their own data structures), then throw away. The data structure is effectively immutable: in ...
0
votes
0
answers
189
views
SwiftUI turns a String into <uninitialized> when called asynchronously
The Context
We have a ChildView that depends on an environment value:
struct Child: View {
@Environment(\.printer) var printer
var body: some View {
Button("Print it") {
...
1
vote
1
answer
85
views
marginaleffects and future: global size exceeded
I'm trying to compute marginal effects with the marginaleffects R package, and would like to parallelize the computation to speed them up, following [this chapter of the guide](https://marginaleffects....
1
vote
2
answers
129
views
Await and data integrity in concurrent scenarios
I finally found out the basic mechanism that C# uses to implement an async/await construct (using continuations). However, this led me to question data integrity. Imagine the following:
class ...
-1
votes
0
answers
60
views
Graph 504 GatewayTimeout leading to CommandConcurrencyLimitReached Error
we have an application that is processing incoming emails. Every now and then we are getting timeouts from Graph. However we are not retrieving lots of data.
An example of one call where we get a ...
-4
votes
0
answers
44
views
What is the Global Interpreter Lock (GIL) in Python and why does it prevent true multithreading? [duplicate]
I’ve been reading about Python’s Global Interpreter Lock (GIL), and I’m a bit confused about how it actually works behind the scenes.
From what I understand, the GIL allows only one thread to execute ...
Best practices
0
votes
1
replies
44
views
Binding two JavaFX services' running properties
How do I bind the running property of one Service to the same property of another Service that it (re)starts? The first service must be considered running as long as the "nested" service is. ...
2
votes
1
answer
77
views
asyncio freezes when spawning multiprocessing process on Windows but works fine on Linux
I’m experimenting with mixing asyncio and multiprocessing in Python 3.12.
On Linux, the following code works as expected — the event loop stays responsive and the child process prints normally.
On ...
3
votes
1
answer
140
views
ForkJoinPool and RecursiveTask lead to deadlock when join is called in a different thread than fork
The program below never ends:
void main() {
try (Fibonacci fibonacci = new Fibonacci()) {
IO.println(fibonacci.calculate(9));
}
}
public static class Fibonacci implements ...
1
vote
1
answer
119
views
Why does Locksupport.park hang indefinitely?
I have the below code (whole code is here) that polls a queue for runnables and parks itself if the queue is empty.
public void waitAndDrain() throws InterruptedException {
throwIfInterrupted();
...
1
vote
2
answers
154
views
How can I migrate NotificationCenter code to Swift 6 concurrency?
I’m migrating a NotificationManager class to Swift 6. This class is a small utility wrapper around NotificationCenterand has a method that lets users register a notification that will triggerunless ...
0
votes
1
answer
60
views
Can a single node-redis client instance handle concurrent requests?
Suppose I have code similar to this:
const client = await createClient()
.on("error", (err) => console.log("Redis Client Error", err))
.connect();
const promise1 = client....
1
vote
1
answer
64
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 ...