Zen
Zen

Reputation: 1978

looking for the NAME of a specific kind of concurrency problems

You have the following scenario:

//Two threads, using shared data

shared data = 2  
Thread1: reads shared data  
Thread2: reads shared data  
Thread1: shared data = read value + 1  
Thread2: shared data = read value + 1  

result: shared data = 3  
//Should have been 4 if not for this problem.  

I don't want a solution for the problem, I know how to fix it and it is not relevant for the actual question.

I want the technical term for this specific kind of problem that comes with concurrency. Using it for a technical report.

Upvotes: 0

Views: 50

Answers (1)

Jeremy Friesner
Jeremy Friesner

Reputation: 73379

Isn't that simply known as a race condition?

Upvotes: 8

Related Questions