How can I access a static variable from a large stream at the same time.
If I have a class like
Class A { public static boolean FLG=false; ..................... .................... }
And I need to access the value from stream 1, for example
.................... public void run() { boolean t1=A.FLG; .................. }
and from stream 2 I need to set the value as
.................... public void run() { A.FLG=true; .................. }
Does this cause a memory impairment ?. If so, what is the recommended method to deal with this situation?
Haris source share