Re:Data races in Python, despite the Global Interpreter Lock
by matheusmoreira on Monday February 21, 2022 @06:08PM
(#30421944)
> I used to think that it did as well
I did too. I even wrote multithreaded test programs to see if it was true: they would always give me consistent results on Python and Ruby but on Java and C data got clobbered as expected.
I used to think that it did as well, but then my C/Java brain kicked in and realized that couldn't be correct. I wrote this article to help others see it in action.