Getting Started with Adobe After Effects - Part 6: Motion Blur
This module helps you to share, discuss and learn interview questions and answers of different technologies

Is it possible to declare a local varaible as Volatile?

Feb 14 2012 12:22AM by Manas Ranjan Dash   

Question

Is it possible to declare a local varaible as Volatile?

Answer

No, its not possible. The volatile keyword can only be applied to fields of a class or struct. Local variables cannot be declared volatile.

(According to MSDN) Volatile assures that the most up-to-date value is present in the field at all times. This keyword indicates that a field can be modified in the program by something such as the operating system, the hardware, or a concurrently executing thread.

Using the volatile modifier ensures that one thread retrieves the most up-to-date value written by another thread.

Read More..   [55 clicks]

Published under: C# Interview Questions and Answers ·  ·  ·  · 


Manas Ranjan Dash
39 · 5% · 1484
0
Liked
 
0
Asked



Submit

Your Comment


Sign Up or Login to post a comment.

"Is it possible to declare a local varaible as Volatile?" rated 5 out of 5 by 4 readers
Is it possible to declare a local varaible as Volatile? , 5.0 out of 5 based on 4 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]