3 ms·
Granted. I think synchronized was not such a great idea, in fact it's a lot like the bad ideas you see in other languages. I was coding Java back when you ha
by PaulHoule 1y ago
Granted. I think synchronized was not such a great idea, in fact it's a lot like the bad ideas you see in other languages. I was coding Java back when you had to go to NASA's website to get a clear explanation of the module system and we went through all the stages of: "make every method synchronized", "discover a synchronized method call is 6x slower than a plain method call", "have a global discipline for threads and use synchronized concurrently"
But that's how Java is different from other languages. When a difficult to fix problem turns up in Java (like the original busted memory model), Java has a solution a decade before C++. Strange and obscure problems in Java are taken seriously whereas PHP, Pyhthon and the like may have the same problem and say "come in, the water's fine"."