“The Java Memory Model requires fetch and store operations to be atomic, but for nonvolatile long and double variables, the JVM is permitted to treat a 64-bit read or write as two separate 32-bit operations. If the reads and writes occur in different threads, it is therefore possible to read a nonvolatile long and get back the high 32 bits of one value and the low 32 bits of another.[3] Thus, even if you don't care about stale values, it is not safe to use shared mutable long and double variables in multithreaded programs unless they are declared volatile or guarded by a lock. [3]”
―
Java Concurrency in Practice
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From
Browse By Tag
- love (100950)
- life (78985)
- inspirational (75543)
- humor (44230)
- philosophy (30807)
- inspirational-quotes (28700)
- god (26816)
- truth (24630)
- wisdom (24454)
- romance (24272)
- poetry (23107)
- life-lessons (22507)
- quotes (20908)
- death (20490)
- happiness (18909)
- hope (18453)
- faith (18291)
- inspiration (17225)
- travel (16908)
- spirituality (15628)
- relationships (15432)
- religion (15353)
- motivational (15241)
- life-quotes (15208)
- love-quotes (15044)
- writing (14907)
- success (14151)
- motivation (13096)
- time (12808)
- science (12043)