For example I have var linkedList = new LinkedList<int>();
Then I add one node. linkedList.AddLast(1);
After that I have two threads respectively calling linkedList.AddLast(2);
(same statement).
So can I safely expect it becomes 1->2->2 linked list?
Or it can become 1->2 when race condition happens?
(Maybe it also has visibility issue, but before that I firstly wonder if such race condition can happen.)