Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 votes
0 answers
16 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() ...
peremeykin's user avatar
-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 ...
Dave's user avatar
  • 839
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 ...
BlackCoffee's user avatar
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 ...
Enthu Learner's user avatar
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 ...
Muhammad Bilal's user avatar
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 ...
WinEnzo's user avatar
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 ...
Ihor Arkhypenko's user avatar
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(“...
Serhio's user avatar
  • 33
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 ...
MangKyu's user avatar
  • 51
-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: ...
Niranjan Raghu's user avatar
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 ...
Nicolas Perrault's user avatar
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 ...
sameyes's user avatar
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 ...
Cosmos's user avatar
  • 153
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 ...
etan's user avatar
  • 25
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 ...
Chintu Karthi's user avatar

15 30 50 per page
1
2 3 4 5
1539