volatile veriable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • helpamit
    New Member
    • Mar 2007
    • 5

    volatile veriable

    what is volatile veriable?
    when it use?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by helpamit
    what is volatile veriable?
    when it use?
    Get a tutorial and read about it.

    Comment

    • stroken
      New Member
      • Mar 2007
      • 24

      #3
      The volatile-keyword is used on variables that may be modified simultaneously by other threads, (or communication).
      This force the compiler to fetch them fresh each time, instead of caching them in registers, or remove it in the optimizing-phase.

      Comment

      Working...