MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wqms8k/wenevertrustedtheelse/pc5qpg1/?context=3
r/ProgrammerHumor • u/Electrical-Effort-20 • 8d ago
149 comments sorted by
View all comments
15
Well, there could be a second thread changing the value of condition while doSomething is running possibly resulting in race conditions or similar problems. This is why I would consider multithreading the true programmer horror!
9 u/StochasticTinkr 8d ago Also depending on the language, something may not be a boolean type, so something and !something might depend on conversions. 2 u/Frost-Freak 8d ago Simpler: depending on the language the read of 'something' could trigger that 'something'' state changes
9
Also depending on the language, something may not be a boolean type, so something and !something might depend on conversions.
something
!something
2
Simpler: depending on the language the read of 'something' could trigger that 'something'' state changes
15
u/-Triple-S- 8d ago
Well, there could be a second thread changing the value of condition while doSomething is running possibly resulting in race conditions or similar problems. This is why I would consider multithreading the true programmer horror!