Map
Index
Random
Help
th

Quote: example of race condition in java.util.vector; lastIndexOf and trimToSize may use elementCount without acquiring the lock

topics > all references > references e-f > QuoteRef: flanC6_2000 , p. 226



Topic:
race conditions

Quotation Skeleton

Figure 5 contains an excerpt from java.util.vector that … If one thread calls lastIndexOf(elem) … that method may access elementCount without acquiring the … and then call trimToSize … Thus, an array out of bounds exception will … array based on the old value of elementCount. …   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: race conditions (30 items)

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