3 ms·
They could have written it in Java and not worried about these issues. I was writing Java code using channels to communicate between threads in 2000 (i.e. the s
by noelwelsh 13y ago
They could have written it in Java and not worried about these issues. I was writing Java code using channels to communicate between threads in 2000 (i.e. the stuff that Go has.) Back then we had to download Doug Lea's concurrency package to get this stuff. For about a decade it has been in the standard library.
- jtheory 13y agoEven without Doug Lea's extensions (though they did help making it more efficient and/or easier to understand), it's been possible to do this safely in Java from v1.0 -- just synchronize and notify() or notifyAll() as needed. I think the chief problem is that the developer hadn't learned the basics of multithreaded programming yet, and didn't realize s/he needed to know them. That's an extremely harsh way to learn a little lesson, regardless.