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.

0 votes
1 answer
13 views

Simulating 100k request on jmeter

i want to try simulating 100k request to my API using JMeter, i tried to used the setting like this but the graph on my cloud run, it's like the request not processed. this is the JMeter result : ...
Antoni's user avatar
  • 51
0 votes
0 answers
30 views

Python threads 'starved' by pandas operations

I am creating a UI application with Qt in Python. It performs operations on pandas DataFrames in a separate threading.Thread to keep the UI responsive; no individual pandas instruction takes noticable ...
AirToTec's user avatar
0 votes
0 answers
51 views

How to achieve efficient "bag of tasks" pattern in C multi-threading?

I am doing a costly computation that regards a combinatorial problem. The details of said problem are unimportant for this question, so I will omit them for now. The bulk of the time is spent on ...
Pavol's user avatar
  • 1
3 votes
0 answers
46 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
0 votes
1 answer
30 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
16 views

Concurrency Control Mechanism For Dataframe Processing In Django WebApp

I have django webapp where processing excel file data directly using pandas dataframe. now, I want to make this operations concurrency control for multiple request processing simultaneously. suggest ...
Enthu Learner's user avatar
1 vote
0 answers
12 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
1 answer
28 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
27 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
94 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
19 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
46 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

15 30 50 per page
1
2 3 4 5
1539