Tuesday, November 6, 2007

Double-Checked Locking

Here is a very good article on Double-Checked Locking

I liked the 4th method a lot - On Demand Lazy Initialization. Using simple concepts and achieving solution to complex problem.

"Static classes are not initialized until needed and the initialization is guaranteed to be thread-safe."

No comments: