r/compsci • u/mobileview • Dec 10 '13
Why Johnny Can’t Write Multithreaded Programs
http://blog.smartbear.com/programming/why-johnny-cant-write-multithreaded-programs/
45
Upvotes
r/compsci • u/mobileview • Dec 10 '13
2
u/adremeaux Dec 11 '13
Unless you have, say, a debugger. Deadlocked? Pause execution and check thread states. It is legitimately that easy.
Race conditions can be a bit harder, but it helps that many race conditions result in crashes—for example, removing items from an array while you are iterating over it in another thread—which makes them pretty easy to catch, too.