Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Data races are not possible on a single core system.


they are entirely possible assuming preemptive scheduling


Yes that's true and I was wrong to say otherwise. A data race can happen with preemptive multithreading on data whose size exceeds what the platform guarantees to access atomically, typically the word size.

A more accurate statement would be that parallelism introduces additional possibilities for data races than those possible from concurrent execution (without parallelism).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: