Volatile

Discussion in 'C Programming' started by Rajesh, Nov 3, 2003.

  1. Rajesh

    Rajesh Guest

    Dear All,


    Where to use Volatile variables. Should i very volatile for all global variable?

    Thanks
    Rajesh
     
    Rajesh, Nov 3, 2003
    #1
    1. Advertising

  2. Andreas Kahari, Nov 3, 2003
    #2
    1. Advertising

  3. Rajesh <> scribbled the following:
    > Dear All,


    > Where to use Volatile variables. Should i very volatile for all global variable?


    What's wrong with the answers you already got?

    --
    /-- Joona Palaste () ------------- Finland --------\
    \-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
    "Bad things only happen to scoundrels."
    - Moominmamma
     
    Joona I Palaste, Nov 3, 2003
    #3
  4. In article <>, Andreas Kahari wrote:
    > In article <>, Rajesh wrote:
    >> Where to use Volatile variables. Should i very volatile for all global variable?
    >>

    >
    > Search google for discussions about the volatile keyword:


    s/keyword/qualifier/

    Mea culpa.

    --
    Andreas Kähäri
     
    Andreas Kahari, Nov 3, 2003
    #4
  5. On Mon, 03 Nov 2003 03:11:17 -0800, Rajesh wrote:

    > Dear All,
    >
    > Where to use Volatile variables.


    You have asked this many times. You have received many answers.

    > Should i very volatile for all global variable?


    No.

    To add to that, if your program will be running on a PC, and you
    don't understand what volatile does, then don't ever use volatile.
     
    Sheldon Simms, Nov 3, 2003
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Knute Johnson

    Re: Volatile?

    Knute Johnson, Jul 1, 2003, in forum: Java
    Replies:
    17
    Views:
    1,479
    Knute Johnson
    Jul 3, 2003
  2. Doug Pardee

    Re: Volatile?

    Doug Pardee, Jul 1, 2003, in forum: Java
    Replies:
    0
    Views:
    921
    Doug Pardee
    Jul 1, 2003
  3. Replies:
    1
    Views:
    962
    Knute Johnson
    Aug 29, 2003
  4. Daniel

    Can volatile be trusted?

    Daniel, Sep 11, 2003, in forum: Java
    Replies:
    7
    Views:
    486
    Chris Uppal
    Sep 12, 2003
  5. ben
    Replies:
    5
    Views:
    626
    Ulrich Eckhardt
    Jan 11, 2005
Loading...

Share This Page