Skip to main content

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
42 views

Non blocking Processbuilder output

When using ProcessBuilder, is there a true non blocking reactive way to consume the output? By true non blocking i mean not creating a thread that is blocked waiting to read, but push-based like ...
dac1n's user avatar
  • 361
-1 votes
0 answers
24 views

How to use Monitor from Java Thread Class [closed]

I have some difficoult to implements the logic of concurrent develope based on Operating System Theory. I don't know how to divede my work to finalize in a correct solution, I know that will be ever a ...
Il Cioccolataio's user avatar
0 votes
0 answers
21 views

Adding Thread.sleep in spring boot web app adding delays to subsequent requests [duplicate]

@RestController public class HomeController { @GetMapping("/") public String greet() throws InterruptedException { System.out.println(Thread.currentThread().getName()); ...
Balaji R's user avatar
0 votes
2 answers
59 views

Java concurrency without using Thread or ExecutorService [closed]

There is this task that was given to me to do and I have tried all my best but couldn't be able to achieve it. The task is to write a Java Program that will produce a pancake and at the same time ...
Ukeme Elijah's user avatar
0 votes
1 answer
20 views

stale element reference exception occur on some ocassions

I am conducting performance testing to measure the response time of suppliers' results for a flight search application using Selenium with Java and TestNG. I have utilized invocation count and thread ...
arun s's user avatar
  • 1
0 votes
0 answers
20 views

ThreadPoolExecutor slows down while running

I have a list of arguments that can be executed in any order. I have written one function to parse and write to an S3 bucket. The function output is a CSV file that's written to the bucket. def func(...
academy_courses2021's user avatar
1 vote
0 answers
46 views

How to reduce cache miss in SPSC queue pop function?

I am working on optimizing a Single Producer Single Consumer (SPSC) queue in C++. The following is the miniman reproducible example for my implementation: #include <atomic> #include <cstddef&...
Rishi Jain's user avatar
0 votes
1 answer
20 views

Lambda Provisioned Concurrency showing 0 available. But I'm not using any

I have been using my AWS account for more than 4 months. Now, I need to create a Lambda function with provisioned concurrency. However, it gives the following error: ```The maximum allowed provisioned ...
JaNith RathNayaka's user avatar
-1 votes
0 answers
77 views

Is this ThreadPool implementation correct?

I am new to concurrent coding and trying to implement simple ThreadPool by myself. I found this implementation on a learning website(jenkov.com) and it seems to be working fine. However, I think ...
Siddharth's user avatar
0 votes
0 answers
28 views

Synchronizing method access based on instance-specific criteria in Java [closed]

I have a Java application where multiple threads are executing methods on different instances of a class (RepositoryA). Each instance of RepositoryA performs database operations (upsert method) based ...
to.mane's user avatar
  • 13
0 votes
1 answer
43 views

Performance in Go: Mutex vs RWMutex

There are two types of mutex in Go: Mutex and RWMutex Mutex offers func Lock() and func Unlock(). RWMutex offers those functions plus func RLock() and func RUnlock(). From what I understand, we ...
tbmsilva's user avatar
  • 467
-3 votes
1 answer
44 views

Cannot read from Go channel after closing it [closed]

I am learning concurrency with Go and I've been facing an issue to build a simple concurrent web crawler. The crawling happens in a goroutine (crawl) that is called as many times as the number of URLs ...
 Annis99's user avatar
1 vote
1 answer
18 views

NextJS Server Actions usage in NextJS API endpoints - concurrent or not?

As I learned by doing: NextJS Server Actions are synchronous. I want to achieve concurrency; and I like the syntax of having this abstracted; therefore I've created a NextJS API endpoint that has the ...
dejoma's user avatar
  • 434
0 votes
1 answer
15 views

Jmeter Concurrency call making

I need to trigger a same API 30 times in a second from which only 20 will trigger successfully remaining will failed as we have allowed 20 requests at a time to trigger if it is sent concurrently. ...
Arun Sabee's user avatar
-1 votes
1 answer
48 views

GO Cond - fmt.Println after wg.Done ended up dead lock

Unable to understand this dead lock situation in golang, i have below to go code with pub and sub pattern package main import ( "fmt" "sync" ) func main() { cond := ...
Hari's user avatar
  • 1,593

15 30 50 per page
1
2 3 4 5
1537