Volatile (computer programming)
In some programming languages (C, C++, C#, Java), a variable specially marked to disable optimizations because its value may change between accesses even if it does not appear to be modified; primarily used in hardware access and in threading
In computer programming, a variable is said to be volatile if its value can be read or modified asynchronously by something other than the current thread of execution. The value of a volatile variable may spontaneously change for reasons such as: sharing values with other threads; sharing values with asynchronous signal handlers; accessing hardware devices via memory-mapped I/O (where messages from peripheral devices can be received and sent by reading from and writing to memory).
Nº Q838108 ★
Common · Knowledge
Volatile (computer programming)
In some programming languages (C, C++, C#, Java), a variable specially marked to disable optimizations because its value may change between accesses even if it does not appear to be modified; primarily used in hardware access and in threading
In computer programming, a variable is said to be volatile if its value can be read or modified asynchronously by something other than the current thread of execution. The value of a volatile variable may spontaneously change for reasons such as: sharing values with other threads; sharing values with asynchronous signal handlers; accessing hardware devices via memory-mapped I/O (where messages from peripheral devices can be received and sent by reading from and writing to memory).
Last price
—
Floor price
—
7-day median
—
30-day sales
0
30-day range
—
In circulation
0
Price history
median
low – high
sales
No sales in this period
Show table
| Date | median | Low | High | sales |
|---|
Sales history
- Last sale
- —
- 30-day average
- —
- 30-day low
- —
- 30-day high
- —
- Sales 7d
- 0
- Sales 30d
- 0
No sales yet.
Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.
From Wikipedia
In computer programming, a variable is said to be volatile if its value can be read or modified asynchronously by something other than the current thread of execution. The value of a volatile variable may spontaneously change for reasons such as: sharing values with other threads; sharing values with asynchronous signal handlers; accessing hardware devices via memory-mapped I/O (where messages from peripheral devices can be received and sent by reading from and writing to memory). Support for these use cases varies considerably among the programming languages that have the volatile keyword. Volatility can have implications regarding function calling conventions and how variables are stored, accessed and cached.
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
Volatile memory
Computer memory that requires power to maintain the stored information; needs constant power in order to prevent data from being erased
Nº Q496533 ★
Not listed
-
S
Sentinel value
In-band data value that must be handled specially by computer code
Nº Q71826074 ★
Not listed
-
V
Verbose mode
Option in software to output more or less information about the software's operations as it performs them
Nº Q2514191 ★
Not listed
-
Semaphore (programming)
Variable that is changed (e.g., incremented, decremented, toggled) depending on programmer-defined conditions, used to control access to a common resource by multiple processes in a concurrent system
Nº Q221682 ★★★
Not listed
-
C
Crippleware
Product whose functionality is intentionally and artificially limited by the manufacturer
Nº Q259856 ★
Not listed
-
V
Void type
In programming languages, a keyword indicating the absence of data
Nº Q513000 ★
Not listed