At work today, I came across the volatile keyword in Java. Not being very familiar with it, I found this explanation.
volatile
Given the detail in which that arti
volatile variable is basically used for instant update (flush) in main shared cache line once it updated, so that changes reflected to all worker threads immediately.