Check Then Remove Race Condition
Which concurrency issue is most likely to result from the check-then-remove operation in the following code?
A
Race condition where both threads may detect and attempt to remove the same element
B
ConcurrentModificationException when removal happens during iteration
C
Deadlock due to double locking of the ArrayList
D
Memory consistency error caused by unsynchronized value checks
Question Leaderboard
Not enough data yet to show leaderboard.
APFIVE