“Because threads share the same memory address space and run concurrently, they can access or modify variables that other threads might be using. This is a tremendous convenience, because it makes data sharing much easier than would other inter-thread communications mechanisms. But it is also a significant risk: threads can be confused by having data change unexpectedly. Allowing multiple threads to access and modify the same variables introduces an element of nonsequentiality into an otherwise sequential programming model, which can be confusing and difficult to reason about. For a multithreaded program's behavior to be predictable, access to shared variables must be properly coordinated so that threads do not interfere with one another. Fortunately, Java provides synchronization mechanisms to coordinate such access. UnsafeSequence”
―
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)