DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library
Core Badge
Avatar

Andrei Tuchin

DZone Core CORE

Lead Software Developer, VP at JPMorgan & Chase

GB

Joined Dec 2023

Stats

Reputation: 635
Pageviews: 243.2K
Articles: 16
Comments: 2

Expertise

Java Expertise Icon

Java

  • Articles
  • Comments

Articles

article thumbnail
Mastering Exception Handling in Java Lambda Expressions
Explore exception handling in Java lambda expressions, understand the challenges involved, and provide practical examples
March 12, 2024
· 17,079 Views · 5 Likes
article thumbnail
Harnessing the Power of SIMD With Java Vector API
In this article, explore Vector API, a feature that allows harnessing the power of SIMD (Single Instruction, Multiple Data) directly within Java applications.
March 7, 2024
· 21,919 Views · 8 Likes
article thumbnail
Foreign Function and Memory API: Modernizing Native Interfacing in Java 17
Introduced in Java 14 as an incubating feature and finalized in Java 17, explore this safer, more efficient alternative to JNI for interacting with native code.
February 26, 2024
· 10,020 Views · 7 Likes
article thumbnail
Mastering Spring: Synchronizing @Transactional and @Async Annotations With Various Propagation Strategies
@Transactional annotation, combined with various propagation strategies, offers granular control over transaction management, ensuring data integrity.
February 20, 2024
· 17,665 Views · 8 Likes
article thumbnail
Leveraging Java's Fork/Join Framework for Efficient Parallel Programming: Part 1
Delve into the intricacies of the Fork/Join framework, specifically designed to make parallelizing tasks more efficient and straightforward.
February 12, 2024
· 12,051 Views · 9 Likes
article thumbnail
Mastering Concurrency: An In-Depth Guide to Java's ExecutorService
Java's ExecutorService is a powerful framework for managing and executing concurrent tasks in Java applications. It provides a higher-level abstraction over raw threads.
February 5, 2024
· 10,164 Views · 6 Likes
article thumbnail
Java Z Garbage Collector (ZGC): Revolutionizing Memory Management
Memory management is a critical aspect of any programming language, and Java employs Garbage Collection (GC) to manage memory automatically.
January 29, 2024
· 10,487 Views · 8 Likes
article thumbnail
Mastering Exception Handling in Java CompletableFuture: Insights and Examples
CompletableFuture simplifies many aspects of concurrent programming, it's crucial to understand how to handle exceptions effectively.
January 25, 2024
· 35,398 Views · 16 Likes
article thumbnail
Understanding Lazy Evaluation in Java Streams
Java Streams offer a high-level, declarative approach to data processing, but one of their most intriguing features is lazy evaluation.
January 18, 2024
· 24,935 Views · 7 Likes
article thumbnail
The Challenges and Pitfalls of Using Executors in Java
Executors come with their own set of challenges and pitfalls that developers must be aware of to avoid potential issues.
January 12, 2024
· 10,922 Views · 5 Likes
article thumbnail
Mastering Thread-Local Variables in Java: Explanation and Issues
Explore Thread-Local variables in Java and their benefits, and provide practical examples to illustrate their usage and issues.
January 8, 2024
· 12,685 Views · 9 Likes
article thumbnail
Unleash Peak Performance in Java Applications: Overview of Profile-Guided Optimization (PGO)
Profile-Guided Optimization (PGO) is a powerful technique that can significantly boost the performance of your Java applications.
January 6, 2024
· 11,404 Views · 5 Likes
article thumbnail
Demystifying Java's Compare-and-Swap (CAS)
One of the key components empowering non-blocking approaches is the Compare-and-Swap (CAS) operation. In this article, the inner workings of Java's CAS mechanism.
January 3, 2024
· 13,631 Views · 4 Likes
article thumbnail
Exploring Throttling in Java: Simple Implementation Examples - Part 1
Effectively managing resource consumption and ensuring fair usage of services are vital considerations for building scalable and robust applications.
December 31, 2023
· 14,979 Views · 13 Likes
article thumbnail
Unveiling the Power of Helidon 4: A Dive Into New Features
Helidon 4 introduces cutting-edge features for streamlined microservices development with newly released groundbreaking features.
December 28, 2023
· 8,890 Views · 3 Likes
article thumbnail
Composing Custom Annotations in Spring
Spring, building custom composite annotations with @AliasFor. The mechanism allows developers to create custom composite annotations.
December 24, 2023
· 10,944 Views · 11 Likes

Comments

Exploring Throttling in Java: Simple Implementation Examples - Part 1

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.

Mastering Thread-Local Variables in Java: Explanation and Issues

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.

User has been successfully modified

Failed to modify user

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook