We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
VB.NET OOP Part 3: The Singleton Pattern
|
| Subject: |
|
Thread-safety |
| Date: |
|
2002-12-07 15:59:54 |
| From: |
|
anonymous2
|
|
|
|
You might want to mention the multi-threaded scenario.
The factory method should be lock-protected (even if just for efficiency). And, unless you ensure the entire class is stateless, all non-static methods must also be lock-protected.
Hope this helps. :-)
|