Re:How to trigger races reliably in the Linux kernel
by throwaway2048 on Tuesday May 05, 2020 @11:26AM
(#23081033)
If R2 returns before R1 that is still a race condition, but it might not be a bug.
[ Parent
| on HN ]
Re:How to trigger races reliably in the Linux kernel
by MaxBarraclough on Tuesday May 05, 2020 @11:43AM
(#23081244)
> If R2 returns before R1 that is still a race condition
That's not correct. Look at chrisseaton's definition.
If the observable program behaviour doesn't change depending on the order in which the requests complete, there's no race condition. (In JavaScript this might be done with Promise.all.) You're right that not all race conditions are bugs.