Test and test-and-set: Difference between revisions

Content deleted Content added
Yobot (talk | contribs)
m WP:CHECKWIKI error 61 fix, References after punctuation per WP:REFPUNC and WP:PAIC using AWB (8459)
Line 27:
 
==Caveat==
Although this [[Optimization (computer science)|optimization]] is useful in [[system programming]] it should be avoided in high level [[concurrent programming]] unless all constraints are clear and understood. One example of bad usage is a similar [[programming idiom|idiom]] called [[double-checked locking]], which, isunder listedcertain asconditions, can be an [[anti-pattern]].<ref>David Bacon et al. [http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html The "Double-Checked Locking is Broken" Declaration].</ref>
 
==See also==