Data race in the code snippet mentioned in other SO which read/write could not be invoked in the same time The code below is seen at this SO.