Data Engineering: Work with DBs? Build data pipelines? Or maybe you're exploring AI-driven data capabilities? We want to hear your insights.
Enterprise Security: Now is the time to ensure your systems are secure. Expand your org's tactics and put future attackers in their place.
Lead Software Developer, VP at JPMorgan & Chase
GB
Joined Dec 2023
Stats
Reputation: | 580 |
Pageviews: | 144.2K |
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.