Static Initializers and Lazy Instantiation
Techniques Article Published May 17, 2000
The pros and cons of these powerful processes must be weighed to determine which is best for a given use.
wdejong@ca.imrglobal.com
The pros and cons of these powerful processes must be weighed to determine which is best for a given use.
Part two of a two-part series. Database connections are an expensive commodity. To share connections, you can set up an connection pool using the object pool pattern.
Part one of a two-part series. Database connections are an expensive commodity. To share connections, you can set up an connection pool using the object pool pattern.
C++ uses global variables; Java does not. Fortunately, C++ programmers can use the Singleton pattern as they make the language transition.