Tag: volatile

  • Use of the volatile variable in java

    Volatile in Java First, you have to understand a little something about the Java memory model.The best way I can think of to describe it is if you imagine it this way pointed as below : Each thread in Java takes place in a separate memory space (this is clearly untrue, so bear with me […]

    Posted in: Java