TechyMedia

A .NET Technology blog | .NET,C# Progamming,C# tutorials,WPF WCF|Software Engineer

NAVIGATION - SEARCH

What Is The Use Of Volatile Keyword In C#

If a field variable need to be modified in the program by something such as the operating system, concurrently executing thread or the hardware then usually volatile keyword need to be used for the field. Volatile modifier ensures that one thread retrieves the most up to date value written by another thread without the use of the Lock statement.

If a field variable need to be modified in the program by something such as the operating system, concurrently executing thread or the hardware then usually volatile keyword need to be used for the field.

Volatile modifier ensures that one thread retrieves the most up to date value written by another thread without the use of the Lock statement.

 

Automatic Properties In C# 3.0

Pingbacks and trackbacks (1)+

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading