News Archive (1999-2012) | 2013-current at LinuxGizmos | Current Tech News Portal |    About   

News: Do you volatile? Should you?

Mar 30, 2005 — by Henry Kingman — from the LinuxDevices Archive — views

This article, by veteran Linux trainer Kevin Dankwardt, discusses “volatile,” a relatively unknown ANSI-C type modifier that ensures that the compiler generates code to reload a data item each time it is referenced. Volatile must be used with variables that may be altered asynchronously, such as by a signal handler or mapped hardware.

Do you volatile? should you?

This article was originally published on and has been donated to the open source community by QuinStreet Inc. Please visit for up-to-date news and articles about Linux and open source.

Comments are closed.