Is 2025 the year of API-first development and democratization? Take our annual survey and tell us how you implement APIs across your org.
Explore common security challenges that data engineering teams face. Leverage that to build secure data pipelines with Apache Airflow.
Lead Software Developer, VP at JPMorgan & Chase
GB
Joined Dec 2023
Stats
Reputation: | 610 |
Pageviews: | 186.4K |
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.