The volatile keyword may be used to indicate a member variable that may be modified asynchronously by more than one thread.
public class MyClass
{
volatile int sharedValue;
}
volatile is intended to guarantee that all threads see the same value of the specified variable.
None.