SE450
:
Race Condition Scenario
[22/36]
First thread calls
add
and executes
elements[tail] = anObject;
First thread at end of time slice
Second thread calls
add
and executes
elements[tail] = anObject;
tail++;
Second thread at end of time slice
First thread executes
tail++;