Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

What is volatile keyword , c# and .NET interview questions ?

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
925 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 2, 2011

In this video we will try to understand what is the need of volatile keyword in c#.
For more such videos visit http://www.questpond.com

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (dnfvideo)

  • yes you need to runin full compile mode. It will not work in f5 i.e. debug mode.

see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • do you have video on how events handling works in .net?

  • It works as you mentioned when i set the app to "Release" mode and press CTRL + F5.

    But when i just press F5, it does work well without "Volatile" keyword. Any thoughts on this?

  • I tried it by myself and it worked without the 'volatile' keyword. how come the same code behaves differently? I compiled it as .net 2.0 and 3.5 - same result.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more