Map
Index
Random
Help
th

Quote: the observer pattern is difficult to get right; must analyze all possible interleavings

QuoteRef: leeEA5_2006 , p. 35



Topic:
design pattern
Topic:
process threads

Quotation Skeleton

Consider the observer pattern [ref] … The code in Figure 1 is not thread … be modified [during iteration] … , triggering an exception … [p. 36] [Adding the Java keyword synchronized] is unwise because it can lead … This [improved] code is still not correct, however. … But listeners might be notified of value changes … the wrong one. This pattern can be made … required some rather intricate thinking about possible interleavings. …   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: design pattern (17 items)
Topic: process threads (25 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.