CS4282/CS6282 Internet and Distributed Systems Programming
Doug Lea : Concurrent Programming in Java
ThreadLocal and Singleton
Notes on page 86
1. Consider using ThreadLocal rather than a Singleton in situations where it is more appropriate to create ONE instance of a class PER thread than one instnace per program.
http://www.ibm.com/developerworks/java/library/j-threads3.html
Keine Kommentare:
Kommentar veröffentlichen