author image

Gilles Roux

Long time performance engineer and technical architect at Worldline.
1 Posts by this author
post-thumb

Under the Hood: Understanding Java Volatiles

Introduction

Upon revisiting the keyword volatile while scrutinizing a codebase, and deeply pondering its necessity and the underlying mechanisms, I realized that perhaps I hadn’t fully grasped its function. I understood that it was intended to address the synchronization issues of updating shared variables across multiple concurrent threads, yet I couldn’t summon a comprehensive overview of the techniques involved, from the inner workings of the JVM (Java Virtual Machine) to the computer’s memory.

Read more Details