volatile variable


Also found in: Wikipedia.

volatile variable

(programming)
A variable in a computer program which can be modified by processes other than the program. For example, a variable that stores the value of a timer chip (either because it is located at the address of the hardware device or because it is updated on interrupts) needs to be volatile to be useful.

A static variable, on the other hand, maintains its value until the program changes it or it is no longer needed. In addition, volatile variables can be held in the stack whereas static variables are usually stored in a program's data segment.
Mentioned in ?
References in periodicals archive ?
His letter to the Chancellor said: "Fixing deposit guarantees to a volatile variable like the exchange rate puts savers at the mercy of the fluctuating euro.
He noted that the NASD already handles some cases involving fixed annuities, such as instances of brokers persuading risk-averse retirees to exchange fixed annuities for far more volatile variable annuities.
Product liabilities are predominantly composed of term and universal life insurance products which have predictable cash flows and are free of more volatile variable annuity products.
It makes no sense to fix deposit guarantees, which need to be stable to win public confidence and which should be providing certainty and predictability for ordinary savers, to a volatile variable like the exchange rate.
sense to fix tees, which able to win dence and be providing d predictability for s, to a volatile variable nge rate.
While PNW and APS's credit metrics are consistent with slightly higher rated peers, the ratings also reflect the potential negative financial impact and liquidity challenges resulting from high and volatile variable costs due to the utility's growing reliance on natural gas and purchased power, and provisions that limit recovery of power supply costs under APS's commission-approved Power Supply Adjustor (PSA).
Offsetting these positive rating factors is the company's need to rely on Prudential for financial support in the competitive and volatile variable annuity market.
1 we consider how the use of locks and volatile variables by the programmer affects the memory model.
This is where volatile variables are useful, as defined by the constraints in Appendix A.
We examine the behavior of code that employs volatile variables only, and dub the corresponding memory model volatile consistency.
3 The consistency model among volatile variables, namely, Volatile Consistency, is equal to Sequential Consistency.
Given an execution H and a schedule T, we show that there is a serialization of accesses to volatile variables which is consistent with the program order of all the threads.