Hacker News new | ask | show | jobs
by samatman 2338 days 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.

1 comments

Or even if some random function you called fired some callback that just mutated some state you were in the middle of changing.