Re:Data races in Python, despite the Global Interpreter Lock
by quietbritishjim on Monday February 21, 2022 @06:22PM
(#30422067)
It could also be interpreted as
In fact I would expect this is the most likely possibility, at least for user defined objects.
[ Parent
| on HN ]
Re:Data races in Python, despite the Global Interpreter Lock
by michaelrpeskin on Monday February 21, 2022 @06:50PM
(#30422325)
I haven’t looked at the source, but I’ve written similar interpreters and I’d be willing to bet its
atomic tmp=x
atomic tmp+=1
atomic x=tmp
atomic tmp=y
atomic tmp-=1
atomic y=tmp