RootCauseunvalidated
Because the poll() operation is competitive, there is no control over who poll() first to take out the head of the queue. Tension: t1 may have add(0), but t2 may have poll() the 0. Outcome: t1 may have add(0), but t2 may have poll() the 0.
34736b82-5b86-44f0-bb24-363fce0f1ac5
Because the poll() operation is competitive, there is no control over who poll() first to take out the head of the queue. Tension: t1 may have add(0), but t2 may have poll() the 0. Outcome: t1 may have add(0), but t2 may have poll() the 0.