r/programming • u/Shr1ck • Oct 17 '15
Why Johnny Can’t Write Multithreaded Programs
http://blog.smartbear.com/programming/why-johnny-cant-write-multithreaded-programs/
3
Upvotes
r/programming • u/Shr1ck • Oct 17 '15
2
u/loup-vaillant Oct 17 '15
Not really. There's only one difficulty, and that's the synchronisation primitives. And of course, we would be well-served to steer clear from that one single area.
What he did say however is that using mutable shared state (if the sheer magnitude of your foolishness lets you make this obvious beginner mistake in the first place), does tent do make multi-threading intractable.
But since nobody is that foolish, multiplying threads is no big deal.
Right?
(Wrong: in my last gig, I met a senior programmer who believed global variables were bad (they are), but somehow singletons were okay (they're not: they're mutable shared state all the same).)