what is the use of Volatile Key
word ??
There is a primitive variable
volatile int b = 10; // this is a master copy
Locally
thread A changes this int b as 5.
Locally thread B changes this int b as 20.
thread c want to use this int b.
now what c will get??
If didn't use volatile what will happen.
Regards
Dhinesh