3 ms·
Can you give an example of a system where queue-like interfaces have been removed but data races still exist. I feel that there are some important, and interest
by fmstephe 13y ago
Can you give an example of a system where queue-like interfaces have been removed but data races still exist. I feel that there are some important, and interesting, details I am not grasping.
- _yosefk 13y agoSure; a parallel for loop with each task processing a[0], a[1], ... a[N] has no data races but if task 0 modifies a[0] and reads a[1], task 1 modifies a[1] and reads a[2], etc. then this loop is full of data races without there being anything queue-like (that is, you never say "I'll do this thing here unless someone beats me to it in which case I will let them finish first.")
- fmstephe 13y agoThanks