
Concurrency
Programming Throwdown
00:00
Race Conditions
Race conditions is a generic term, but it just means, when things are running in the system, you can get unintended consequences. So example would be like printing to the screen: If you have two threads printid to the screen, the data can get intermixed and that's sort of a race condition. But sometimes race conditions a can be harmful, where you sort of think almost transactiony, like this set of operations going to happen all at once, but in reality, somebody else could come in the middle,. ay, and do something, and then that would result in a gas condition. A simple way to observe this ris if you create two threads and thouge threds
Transcript
Play full episode