Developer Experience: Demand to support engineering teams has risen, and there is a shift from traditional DevOps to workflow improvements.
The future of AI-driven development. Join the discussion around insights on low code's and AI's roles in building mission-critical apps.
Lead Software Developer, VP at JPMorgan & Chase
GB
Joined Dec 2023
Stats
Reputation: | 610 |
Pageviews: | 178.8K |
Articles: | 16 |
Comments: | 2 |
Java
Comments
Jan 29, 2024 · Andrei Tuchin
Hello, indeed, you've made a valid point, and I'm in agreement with you. This is discussed in several texts, including "Concurrent Programming in Java (Second Edition)". The use of wait and notify in the example is primarily for educational purposes, and I think it's generally accepted that such examples might not be ideal for practical, production environments. Therefore, retaining examples that are not best practices doesn't make much sense. I appreciate your insight and will address this issue—thank you for the feedback.
Jan 12, 2024 · Andrei Tuchin
I agree with your point; I admit that my previous example wasn't the most suitable one. I was discussing the sharing of a common ThreadLocal among multiple threads. I believe your example regarding Executors is more suitable for the article. Modified.