Re: ThreadPool question .NET 2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • William Stacey [C# MVP]

    Re: ThreadPool question .NET 2

    Things like the Parallel fx gives you ability to scatter and gather (i.e.
    wait for all or any) which makes these kind of patterns easier. It is also
    a good library to get to know and worth the learning curve for future
    projects.

    "Brian Stoop" <b.stoop@consul tant-spam.free.comwr ote in message
    news:OTb6A1CBJH A.4724@TK2MSFTN GP05.phx.gbl...
    >I have several Threads that start other Threads like this:
    >
    ThreadA
    {
    for (int i=0; i <10; i++)
    {
    ThreadPool.Queu eUserWorkItem(n ew WaitCallback(Te stThread1),
    (object)i);
    ....

Working...