Top "Race-condition" questions

A race condition is when multiple threads/processes/clients all use a resource, without proper use of locks.

ReactJS concurrent SetState race condition

I have a component structure like this <A> <B> <C/> <C/> </…

reactjs race-condition setstate
WRITE_ONCE in linux kernel lists

I am reading the linux kernel implementation of doubled linked list. I do not understand the use of the macro …

c linux macros race-condition
Atomic operations in Django?

I'm trying to implement (what I think is) a pretty simple data model for a counter: class VisitorDayTypeCounter(models.Model): …

database django concurrency locking race-condition
Terrible performance - a simple issue of overhead, or is there a program flaw?

I have here what I understand to be a relatively simple OpenMP construct. The issue is that the program runs …

parallel-processing openmp race-condition overhead
Can we have race conditions in a single-thread program?

You can find on here a very good explanation about what is a race condition. I have seen recently many …

multithreading concurrency race-condition
Semaphores and locks in MATLAB

I am working on a MATLAB project where I would like to have two instances of MATLAB running in parallel …

matlab semaphore race-condition
Atomic UPDATE to increment integer in Postgresql

I'm trying to figure out if the query below is safe to use for the following scenario: I need to …

multithreading postgresql concurrency race-condition transaction-isolation
Laravel RateLimiter

I'm fairly new to Laravel and am currently using an API that has a limit of 25 requests per minute. I …

laravel race-condition ratelimit
Copy a file, but don't overwrite, without TOCTTOU issues in Python

I know that if I want to copy a file in Python but not overwrite the destination I can use …

python race-condition shutil
Why does Python threading.Condition() notify() require a lock?

My question refers specifically to why it was designed that way, due to the unnecessary performance implication. When thread T1 …

python multithreading python-3.x race-condition condition-variable