Click here to Skip to main content
15,896,479 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Deployment of Dot Net installar Pin
Curtis Schlak.6-Mar-09 9:28
Curtis Schlak.6-Mar-09 9:28 
AnswerRe: Deployment of Dot Net installar Pin
BijayaSharma6-Mar-09 10:48
BijayaSharma6-Mar-09 10:48 
Questionsingleton v/s pooling Pin
nicetohaveyou6-Mar-09 6:21
nicetohaveyou6-Mar-09 6:21 
AnswerRe: singleton v/s pooling Pin
Curtis Schlak.6-Mar-09 6:57
Curtis Schlak.6-Mar-09 6:57 
GeneralRe: singleton v/s pooling Pin
nicetohaveyou8-Mar-09 7:21
nicetohaveyou8-Mar-09 7:21 
GeneralRe: singleton v/s pooling Pin
Curtis Schlak.9-Mar-09 2:22
Curtis Schlak.9-Mar-09 2:22 
GeneralRe: singleton v/s pooling Pin
nicetohaveyou9-Mar-09 6:29
nicetohaveyou9-Mar-09 6:29 
GeneralRe: singleton v/s pooling Pin
supercat99-Mar-09 6:31
supercat99-Mar-09 6:31 
In general, why would you create multiple pools of resource connections when that kind of defeats the purpose of having that limited number of expensive connections?

Designing an architecture around singleton objects that hold state may lead to problems if requirements change in unexpected ways. Even if it's expected that the singleton will be associated with a hardware resource of which there will never be more than one (e.g. the current display monitor) it's possible that there may in future be a need to support more than one such resource, no matter how unlikely it may seem today.

That having been said, the proper type of object is something like a singleton, in that at most one such object should be associated with any particular hardware resource, and the object should persist as long as anyone has use for it.

There are other pooling situations, like thread pools, where sharing one pool between different parts of an application may lead to resource starvation. While there may be ways of having a single pool implement a suitable prioritization strategy to ensure that every separately-designated part of an application is allowed to have at least one thread running at a time from a shared pool, having different parts use different pools may be simpler.
GeneralRe: singleton v/s pooling Pin
Curtis Schlak.9-Mar-09 7:36
Curtis Schlak.9-Mar-09 7:36 
AnswerRe: singleton v/s pooling Pin
led mike6-Mar-09 8:33
led mike6-Mar-09 8:33 
JokeRe: singleton v/s pooling Pin
Curtis Schlak.6-Mar-09 9:29
Curtis Schlak.6-Mar-09 9:29 
GeneralRe: singleton v/s pooling Pin
Luc Pattyn6-Mar-09 10:28
sitebuilderLuc Pattyn6-Mar-09 10:28 
GeneralRe: singleton v/s pooling Pin
PIEBALDconsult10-Mar-09 7:12
mvePIEBALDconsult10-Mar-09 7:12 
Question[Message Deleted] Pin
Rajeev Dhiman5-Mar-09 23:49
Rajeev Dhiman5-Mar-09 23:49 
AnswerCrosspost Pin
Dave Kreskowiak6-Mar-09 4:19
mveDave Kreskowiak6-Mar-09 4:19 
Questionpatterns and practices Pin
Member 39813665-Mar-09 19:55
Member 39813665-Mar-09 19:55 
AnswerRe: patterns and practices Pin
Pete O'Hanlon5-Mar-09 23:17
mvePete O'Hanlon5-Mar-09 23:17 
AnswerRe: patterns and practices Pin
Curtis Schlak.6-Mar-09 1:52
Curtis Schlak.6-Mar-09 1:52 
AnswerRe: patterns and practices Pin
Mark Graham9-Mar-09 1:45
Mark Graham9-Mar-09 1:45 
Question(Windows CE 5.0) Emulator Pin
saksp5-Mar-09 19:34
saksp5-Mar-09 19:34 
Questionproblem in executing the dynamically refered dll in MMC Pin
renuga52985-Mar-09 18:50
renuga52985-Mar-09 18:50 
QuestionHelp needed for bluetooth application... Pin
Jain Vijay5-Mar-09 18:46
Jain Vijay5-Mar-09 18:46 
QuestionService/Object Locater Pin
Cybernate5-Mar-09 10:42
Cybernate5-Mar-09 10:42 
JokeRe: Service/Object Locater Pin
Manish Sharma 20075-Mar-09 14:32
Manish Sharma 20075-Mar-09 14:32 
GeneralRe: Service/Object Locater Pin
Cybernate5-Mar-09 14:41
Cybernate5-Mar-09 14:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.