GeeCON 2025: Heinz Kabutz - The Hidden Art of Thread-Safe Progr.: Exploring java.util.concurrent

youtube.com 19 godzin temu


Writing correct, thread-safe code is notoriously challenging. Unlike single-threaded code, concurrency bugs frequently stay hidden, waiting for the perfect storm of conditions to emerge. Even the standard Vector class, long trusted for its thread safety, harbored a race condition for 5 years, only to introduce a possible deadlock that persisted for the next 9 years.

The classes in java.util.concurrent are utilized in all major Java projects, either straight or indirectly. In this session, we will take a close look at any of the techniques utilized to make them. We will research topics like lock striping in LongAdder, lock splitting in LinkedBlockingQueue, weakly consistent iteration in ArrayBlockingQueue, and check-then-act in CopyOnWriteArrayList.