Questions tagged [concurrency]
In computer science, concurrency is a property of systems in which multiple computations can be performed in overlapping time periods. The computations may be executing on multiple cores in the same chip, preemptively time-shared threads on the same processor, or executed on physically separated processors.
concurrency
23,076
questions
2
votes
0
answers
23
views
How do I iterate over a sublist of a SynchronizedList in Java?
What kind of synchronization should I use to iterate over a sublist returned from a SynchronizedList as a result of subList() method invocation?
The documentation for Collections.synchronizedList() ...
-2
votes
0
answers
53
views
How to process a (near) infinite list in Java?
I am using an object storage provider that does not implement a recursive delete. When someone comes in and asks to delete a bucket, I have to manually empty the bucket. I basically have two methods ...
0
votes
1
answer
25
views
Recursive use of ProcessPoolExecutor is Hanging
Problem
I'm trying to use a ProcessPoolExecutor with recursive calls, but it doesn't work. I created a minimal example below
from concurrent.futures import ProcessPoolExecutor
from time import sleep
...
0
votes
0
answers
11
views
Concurrency Control Mechanism For Dataframe Processing In Django WebApp
I have django webapp where processing data directly on pandas dataframe without using django model. now, i want to make this operations concurrency control for multiple processing requests ...
1
vote
0
answers
10
views
Concurrent Requests Creating Duplications for Users
I am facing an issue with concurrent requests resulting in duplicate entries. Our system checks whether a user exists and creates a new one if not, using middleware. However, when multiple concurrent ...
0
votes
0
answers
22
views
Why is a Thread-Scoped Bean Injected Instead of a Default-Scoped Bean in Spring Boot?
I recently made a change to my Spring Boot project. I initially had a bean without a specific scope. Due to an implementation that uses threads and the occurrence of concurrency issues, I needed to ...
0
votes
0
answers
25
views
Problem with concurrency while updating data in DB using Quartz .NET and EF Core
I want to introduce horizontal scaling instead of vertical in my app.
Now we are using Quartz .NET for background tasks, but in non-clustered mode, just 1 instance.
So I found ability to do horizontal ...
1
vote
0
answers
12
views
Modifying object outside RxJava stream
Is it correct to modify object inside reactive flow, when it was defined outside of it?
Example:
public Single<MyDto> createDto() {
MyDto dto = new MyDto();
return Single.just(“...
1
vote
1
answer
88
views
Java concurrency problem by multi-thread not occured and automatically synchronized
I’m trying to test a multi-threaded concurrency problem.
What I expected is that the result should be less than 0 (not always but sometimes), because it is not synchronized.
Notice the pair of println ...
-1
votes
0
answers
18
views
Keycloak concurrency issue while updating roles of a user after authentication with external server
I'm facing an issue with Keycloak while using an external user storage provider. The problem occurs when the same user tries to log in concurrently on multiple devices. Here are the details:
Scenario:
...
0
votes
1
answer
44
views
Can CUDA Thrust Kernels operate in parallel on multiple streams?
I am attempting to launch thrust::fill on two different device vectors in parallel on different CUDA streams. However, when I look at the kernel launches in NSight Systems, they appear to be ...
0
votes
0
answers
20
views
Assertion Failure: Block Expected on Main Thread in Swift macOS App Using DispatchQueue [duplicate]
A user is experiencing a crash in my macOS app. It was written in Swift and developed using Xcode. The crash report indicates an assertion failure related to dispatch queues, specifically stating that ...
0
votes
1
answer
55
views
Why does the following example with condition variables as synchronization primitives have a data race? [duplicate]
Golang documentation for the condition variables states the following:
In the terminology of the Go memory model, Cond arranges that a call
to Broadcast or Signal “synchronizes before” any Wait call ...
0
votes
1
answer
45
views
What would be the best way to handle many I/O connections in GoLang? [closed]
I'm trying to make a game server in Go that is planned to handle 1~2k connections at a time. The server will read/send tcp packets. The question is when do I need to use a goroutine? Do I use one ...
1
vote
0
answers
38
views
Key Range Locking when Serializable isolation is used in POSTGRESQL
I have an events table where each POST / PUT request is performed under transaction with Serializable Isolation to ensure that no two users tries to books same event spot.
But the negative impact of ...