¡@

Home 

java Programming Glossary: examplethread

using volatile keyword

http://stackoverflow.com/questions/2644771/using-volatile-keyword

plz explain this why testValue is not changed. class ExampleThread extends Thread private int testValue1 private volatile int testValue.. int testValue1 private volatile int testValue public ExampleThread String str super str public void run if getName .equals Thread.. VolatileExample public static void main String args new ExampleThread Thread 1 .start new ExampleThread Thread 2 .start output Thread..