3 ms·
The question shouldn't have been about preëmption, but rather, "what if some other thread mutates my data here?" The effect is much the same, whether the race
by samatman 7y ago
The question shouldn't have been about preëmption, but rather, "what if some other thread mutates my data here?"
The effect is much the same, whether the race is caused by task scheduling, or just because another core got there first.
- gpderetta 7y agoOr even if some random function you called fired some callback that just mutated some state you were in the middle of changing.