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

.NET (Core and Framework)

 
AnswerRe: GlobalMemoryStatus() return negative value like - Pin
Luc Pattyn9-Mar-09 3:02
sitebuilderLuc Pattyn9-Mar-09 3:02 
AnswerRe: GlobalMemoryStatus() return negative value like - Pin
Dave Kreskowiak9-Mar-09 3:16
mveDave Kreskowiak9-Mar-09 3:16 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
CoolCoder_New9-Mar-09 3:45
CoolCoder_New9-Mar-09 3:45 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
Luc Pattyn9-Mar-09 3:55
sitebuilderLuc Pattyn9-Mar-09 3:55 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
CoolCoder_New9-Mar-09 4:23
CoolCoder_New9-Mar-09 4:23 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
Luc Pattyn9-Mar-09 4:29
sitebuilderLuc Pattyn9-Mar-09 4:29 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
CoolCoder_New9-Mar-09 4:58
CoolCoder_New9-Mar-09 4:58 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
Luc Pattyn9-Mar-09 5:05
sitebuilderLuc Pattyn9-Mar-09 5:05 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
CoolCoder_New9-Mar-09 5:53
CoolCoder_New9-Mar-09 5:53 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
Luc Pattyn9-Mar-09 6:02
sitebuilderLuc Pattyn9-Mar-09 6:02 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
Dave Kreskowiak9-Mar-09 4:40
mveDave Kreskowiak9-Mar-09 4:40 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
CoolCoder_New9-Mar-09 5:48
CoolCoder_New9-Mar-09 5:48 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
Luc Pattyn9-Mar-09 6:00
sitebuilderLuc Pattyn9-Mar-09 6:00 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
CoolCoder_New9-Mar-09 5:54
CoolCoder_New9-Mar-09 5:54 
QuestionF# and IEnumerable Pin
Matty228-Mar-09 6:01
Matty228-Mar-09 6:01 
AnswerRe: F# and IEnumerable Pin
Matty228-Mar-09 6:17
Matty228-Mar-09 6:17 
Question[Message Deleted] Pin
fraulin6-Mar-09 20:43
fraulin6-Mar-09 20:43 
AnswerRe: "image processing" Pin
Eddy Vluggen8-Mar-09 2:57
professionalEddy Vluggen8-Mar-09 2:57 
QuestionDeployment of Dot Net installar Pin
BijayaSharma6-Mar-09 8:30
BijayaSharma6-Mar-09 8:30 
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 
Sure.
Singleton Example
Let's say that you're implementing an interpreter for a scripting language that contains some mathematical operators. Now, you design your language so that none of the objects that implement the operators (such as AddOperator, MultOperator) have state, just a collection of methods. To reduce the memory consumption of the interpreter, you can choose to have each of those operators as singletons, one instance of the AddOperator will exist in any AppDomain. This is in contrast to parsing the input and creating an AddOperator into an abstract syntax tree every time the parser encounters the + symbol.
Pool Example
Quite often in multi-threaded applications that access data from a persistent store, the connections that the applications use to connect to the persistent store are pooled. For example, it's a common practice to pool a certain number of connections to a database because it's so darn expensive to create the connection. Then, when an application wants to get data from the database, it asks the pool for a connection instead of creating its own.
I think that your confusion may be coming from the thought that "a resource pool is a singleton." That can be true and quite often is. 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?

"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty

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.