Object pool pattern: Difference between revisions

Content deleted Content added
Arch4ngel (talk | contribs)
m Moved the example more at the bottom of the page.
Ruijoel (talk | contribs)
C# Examples: fixed grammatical error. Modified last sentence.
Line 21:
== C# Examples ==
 
In C#, there isare a few objects that implement this pattern. System.Threading.ThreadPool is configured to have a predefined amount of threads to allocate. When the threads are returned they are preparedavailable tofor beanother readycomputation. toThus, beone assignedcan touse anotherthreads processwithout paying the cost of creation and disposal of threads.
 
 
==References==