I'm always scared that there is a better way or that some gremlin that
will take 50 hours to debug is hiding in my code.  I read the reference

you posted and am wondering how safe the following class is. I have
used this quite a bit particularly for cache type implementations:

http://jakarta.apache.org/commons/collections/api/org/apache/commons/collections/FastHashMap.html

I have never run into any synchronization problems with this class or
some of its related classes, but it now seems it could be dangerous to

switch between the fast and slow modes, which occurs on a cache miss.

David Morris


>>> kulack@us.ibm.com 09/20/02 11:33AM >>>

One of my co-workers said I was scaring people... So I'm probably done
now.
8-)
Sorry about that.

Don't be scared, just be cautious, threads programming is a little
more difficult (even in Java) than many people who love Java would have
you
believe. Just remember to use synchronized {} when sharing data...


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.