Multiple threadpool for one process

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tamir Khason

    #1

    Multiple threadpool for one process

    Is there "standart" way to use more then one threadpool in one process?
    I mean, without custom developed classes, native way??

    Thank you

    --
    Regards,
    Tamir Khason
    Especially those days you need a flexible IT service provider that can meet
    your needs through a broad set of offerings.
    TCON - A technology company that understands your business.



  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Multiple threadpool for one process

    Tamir,

    No, there is not. You will have to create another class that handles a
    pool of threads on your own.

    Hope this helps.

    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message
    news:%23Uvm%23% 23knDHA.2200@TK 2MSFTNGP12.phx. gbl...[color=blue]
    > Is there "standart" way to use more then one threadpool in one process?
    > I mean, without custom developed classes, native way??
    >
    > Thank you
    >
    > --
    > Regards,
    > Tamir Khason
    > Especially those days you need a flexible IT service provider that can[/color]
    meet[color=blue]
    > your needs through a broad set of offerings.
    > TCON - A technology company that understands your business.
    > www.tcon.co.il
    >
    >[/color]


    Comment

    • Willy Denoyette [MVP]

      #3
      Re: Multiple threadpool for one process

      No.

      Willy.

      "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message news:%23Uvm%23% 23knDHA.2200@TK 2MSFTNGP12.phx. gbl...[color=blue]
      > Is there "standart" way to use more then one threadpool in one process?
      > I mean, without custom developed classes, native way??
      >
      > Thank you
      >
      > --
      > Regards,
      > Tamir Khason
      > Especially those days you need a flexible IT service provider that can meet
      > your needs through a broad set of offerings.
      > TCON - A technology company that understands your business.
      > www.tcon.co.il
      >
      >[/color]


      Comment

      • Tamir Khason

        #4
        Re: Multiple threadpool for one process

        OK, Pritty clear...
        I know this, but It does not looking me smart, are there some seriouse
        reason for it???

        "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message
        news:#Uvm##knDH A.2200@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Is there "standart" way to use more then one threadpool in one process?
        > I mean, without custom developed classes, native way??
        >
        > Thank you
        >
        > --
        > Regards,
        > Tamir Khason
        > Especially those days you need a flexible IT service provider that can[/color]
        meet[color=blue]
        > your needs through a broad set of offerings.
        > TCON - A technology company that understands your business.
        > www.tcon.co.il
        >
        >[/color]


        Comment

        • news.microsoft.com

          #5
          Re: Multiple threadpool for one process

          Yes


          "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
          news:elvUKFlnDH A.2848@TK2MSFTN GP10.phx.gbl...[color=blue]
          > No.
          >
          > Willy.
          >
          > "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message[/color]
          news:%23Uvm%23% 23knDHA.2200@TK 2MSFTNGP12.phx. gbl...[color=blue][color=green]
          > > Is there "standart" way to use more then one threadpool in one process?
          > > I mean, without custom developed classes, native way??
          > >
          > > Thank you
          > >
          > > --
          > > Regards,
          > > Tamir Khason
          > > Especially those days you need a flexible IT service provider that can[/color][/color]
          meet[color=blue][color=green]
          > > your needs through a broad set of offerings.
          > > TCON - A technology company that understands your business.
          > > www.tcon.co.il
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Tamir Khason

            #6
            Re: Multiple threadpool for one process

            Yes, what?


            "news.microsoft .com" <discussion@dis cussion.microso ft.com> wrote in message
            news:eqJMfLlnDH A.2592@TK2MSFTN GP10.phx.gbl...[color=blue]
            > Yes
            >
            >
            > "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
            > news:elvUKFlnDH A.2848@TK2MSFTN GP10.phx.gbl...[color=green]
            > > No.
            > >
            > > Willy.
            > >
            > > "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message[/color]
            > news:%23Uvm%23% 23knDHA.2200@TK 2MSFTNGP12.phx. gbl...[color=green][color=darkred]
            > > > Is there "standart" way to use more then one threadpool in one[/color][/color][/color]
            process?[color=blue][color=green][color=darkred]
            > > > I mean, without custom developed classes, native way??
            > > >
            > > > Thank you
            > > >
            > > > --
            > > > Regards,
            > > > Tamir Khason
            > > > Especially those days you need a flexible IT service provider that can[/color][/color]
            > meet[color=green][color=darkred]
            > > > your needs through a broad set of offerings.
            > > > TCON - A technology company that understands your business.
            > > > www.tcon.co.il
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Willy Denoyette [MVP]

              #7
              Re: Multiple threadpool for one process

              If you are so sure it's yes, I'm sure you can tell us how ;-).

              Willy.

              "news.microsoft .com" <discussion@dis cussion.microso ft.com> wrote in message news:eqJMfLlnDH A.2592@TK2MSFTN GP10.phx.gbl...[color=blue]
              > Yes
              >
              >
              > "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
              > news:elvUKFlnDH A.2848@TK2MSFTN GP10.phx.gbl...[color=green]
              > > No.
              > >
              > > Willy.
              > >
              > > "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message[/color]
              > news:%23Uvm%23% 23knDHA.2200@TK 2MSFTNGP12.phx. gbl...[color=green][color=darkred]
              > > > Is there "standart" way to use more then one threadpool in one process?
              > > > I mean, without custom developed classes, native way??
              > > >
              > > > Thank you
              > > >
              > > > --
              > > > Regards,
              > > > Tamir Khason
              > > > Especially those days you need a flexible IT service provider that can[/color][/color]
              > meet[color=green][color=darkred]
              > > > your needs through a broad set of offerings.
              > > > TCON - A technology company that understands your business.
              > > > www.tcon.co.il
              > > >
              > > >[/color]
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • Tamir Khason

                #8
                Re: Multiple threadpool for one process

                The problem that I'm not :)

                This why I'm asking...



                "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
                news:OtKxZzmnDH A.2444@TK2MSFTN GP09.phx.gbl...[color=blue]
                > If you are so sure it's yes, I'm sure you can tell us how ;-).
                >
                > Willy.
                >
                > "news.microsoft .com" <discussion@dis cussion.microso ft.com> wrote in[/color]
                message news:eqJMfLlnDH A.2592@TK2MSFTN GP10.phx.gbl...[color=blue][color=green]
                > > Yes
                > >
                > >
                > > "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
                > > news:elvUKFlnDH A.2848@TK2MSFTN GP10.phx.gbl...[color=darkred]
                > > > No.
                > > >
                > > > Willy.
                > > >
                > > > "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message[/color]
                > > news:%23Uvm%23% 23knDHA.2200@TK 2MSFTNGP12.phx. gbl...[color=darkred]
                > > > > Is there "standart" way to use more then one threadpool in one[/color][/color][/color]
                process?[color=blue][color=green][color=darkred]
                > > > > I mean, without custom developed classes, native way??
                > > > >
                > > > > Thank you
                > > > >
                > > > > --
                > > > > Regards,
                > > > > Tamir Khason
                > > > > Especially those days you need a flexible IT service provider that[/color][/color][/color]
                can[color=blue][color=green]
                > > meet[color=darkred]
                > > > > your needs through a broad set of offerings.
                > > > > TCON - A technology company that understands your business.
                > > > > www.tcon.co.il
                > > > >
                > > > >
                > > >
                > > >[/color]
                > >
                > >[/color]
                >
                >[/color]


                Comment

                • Willy Denoyette [MVP]

                  #9
                  Re: Multiple threadpool for one process

                  There is only one single CLR threadpool available per process split into two different pools (non I/O style workitems - 25
                  threads/CPU default,. and one I/O style workitems - 1000 threads/CPU default).
                  If you need a separate threadpool, you need to implement it yourself.

                  Willy.


                  "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message news:u%23a3TLnn DHA.2488@TK2MSF TNGP12.phx.gbl. ..[color=blue]
                  > The problem that I'm not :)
                  >
                  > This why I'm asking...
                  >
                  >
                  >
                  > "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
                  > news:OtKxZzmnDH A.2444@TK2MSFTN GP09.phx.gbl...[color=green]
                  > > If you are so sure it's yes, I'm sure you can tell us how ;-).
                  > >
                  > > Willy.
                  > >[/color][/color]


                  Comment

                  • Tamir Khason

                    #10
                    Re: Multiple threadpool for one process

                    Mybe (just for case) you know if multiple threadpools will avialiable in C#
                    v2 (beggining of the next year)?


                    "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
                    news:ODSfnYnnDH A.1296@TK2MSFTN GP09.phx.gbl...[color=blue]
                    > There is only one single CLR threadpool available per process split into[/color]
                    two different pools (non I/O style workitems - 25[color=blue]
                    > threads/CPU default,. and one I/O style workitems - 1000 threads/CPU[/color]
                    default).[color=blue]
                    > If you need a separate threadpool, you need to implement it yourself.
                    >
                    > Willy.
                    >
                    >
                    > "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message[/color]
                    news:u%23a3TLnn DHA.2488@TK2MSF TNGP12.phx.gbl. ..[color=blue][color=green]
                    > > The problem that I'm not :)
                    > >
                    > > This why I'm asking...
                    > >
                    > >
                    > >
                    > > "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
                    > > news:OtKxZzmnDH A.2444@TK2MSFTN GP09.phx.gbl...[color=darkred]
                    > > > If you are so sure it's yes, I'm sure you can tell us how ;-).
                    > > >
                    > > > Willy.
                    > > >[/color][/color]
                    >
                    >[/color]


                    Comment

                    • Dave

                      #11
                      Re: Multiple threadpool for one process



                      "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
                      news:ODSfnYnnDH A.1296@TK2MSFTN GP09.phx.gbl...[color=blue]
                      > There is only one single CLR threadpool available per process split into[/color]
                      two different pools (non I/O style workitems - 25[color=blue]
                      > threads/CPU default,. and one I/O style workitems - 1000 threads/CPU[/color]
                      default).[color=blue]
                      > If you need a separate threadpool, you need to implement it yourself.
                      >
                      > Willy.
                      >
                      >[/color]
                      re: the I/O workitems...100 0 threads/cpu? Can you provide a link to any docs
                      on this? I've not heard of this pool and I'd like to learn more about it.
                      Thanks

                      Dave


                      Comment

                      • Willy Denoyette [MVP]

                        #12
                        Re: Multiple threadpool for one process

                        Dave,

                        I don't know if it's documented somewhere, but the value is reported by ThreadPool.GetM axThreads. (25 for v1.0 and 1000 for 1.1)
                        Note that I/O threads are only used for asynchronous I/O operations (BeginRead/Write, etc) and the max. number is process wide not
                        per processor.

                        Willy.

                        "Dave" <noSpamdlevineN NTP2@wi.rr.com> wrote in message news:u$tkn$snDH A.1948@TK2MSFTN GP12.phx.gbl...[color=blue]
                        >
                        >
                        > "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
                        > news:ODSfnYnnDH A.1296@TK2MSFTN GP09.phx.gbl...[color=green]
                        > > There is only one single CLR threadpool available per process split into[/color]
                        > two different pools (non I/O style workitems - 25[color=green]
                        > > threads/CPU default,. and one I/O style workitems - 1000 threads/CPU[/color]
                        > default).[color=green]
                        > > If you need a separate threadpool, you need to implement it yourself.
                        > >
                        > > Willy.
                        > >
                        > >[/color]
                        > re: the I/O workitems...100 0 threads/cpu? Can you provide a link to any docs
                        > on this? I've not heard of this pool and I'd like to learn more about it.
                        > Thanks
                        >
                        > Dave
                        >
                        >[/color]


                        Comment

                        • Willy Denoyette [MVP]

                          #13
                          Re: Multiple threadpool for one process

                          Dave,
                          Yes the value is excessive, but the value of 25 in .NET v1.0 was just too low for server class applications, I guess MSFT decided to
                          set such a high value so that resources like memory and CPU would get exhausted before the value would be reached.
                          Also note that the threadpool threads are all IOCP bound on OSses that support IOCP's.

                          Willy.


                          "Dave" <noSpamdlevineN NTP2@wi.rr.com> wrote in message news:OefMjxJoDH A.2364@TK2MSFTN GP11.phx.gbl...[color=blue]
                          > Willy,
                          >
                          > Thanks, I get the same reported value. 1000 IO threads seem excessive to me.
                          > That would consume over 1G of virtual address space if each managed thread
                          > was mapped to a unique OS thread. They could use the same thread to handle
                          > multiple async IO operations using IO completion ports. I suspect that value
                          > actually represents something other then actual IO threads. Some data from
                          > MSFT on this would be helpful.
                          >
                          > Thanks,
                          > Dave
                          >
                          >
                          >
                          > "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
                          > news:eCdSf8%23n DHA.2732@TK2MSF TNGP11.phx.gbl. ..[color=green]
                          > > Dave,
                          > >
                          > > I don't know if it's documented somewhere, but the value is reported by[/color]
                          > ThreadPool.GetM axThreads. (25 for v1.0 and 1000 for 1.1)[color=green]
                          > > Note that I/O threads are only used for asynchronous I/O operations[/color]
                          > (BeginRead/Write, etc) and the max. number is process wide not[color=green]
                          > > per processor.
                          > >[/color]
                          >
                          >[/color]


                          Comment

                          • Jeffrey Tan[MSFT]

                            #14
                            Re: Multiple threadpool for one process


                            Hi Tamir,

                            Thanks for posting in this group.
                            I think you can provide your suggestion to microsoft at the link below:


                            After your feedback, we will review your suggestion.
                            I think you'd better provide the reason for your suggestion.

                            Again, thanks for your feedback.

                            Best regards,
                            Jeffrey Tan
                            Microsoft Online Partner Support
                            Get Secure! - www.microsoft.com/security
                            This posting is provided "as is" with no warranties and confers no rights.

                            --------------------
                            | From: "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il>
                            | References: <#Uvm##knDHA.22 00@TK2MSFTNGP12 .phx.gbl>
                            <elvUKFlnDHA.28 48@TK2MSFTNGP10 .phx.gbl>
                            <eqJMfLlnDHA.25 92@TK2MSFTNGP10 .phx.gbl>
                            <OtKxZzmnDHA.24 44@TK2MSFTNGP09 .phx.gbl>
                            <u#a3TLnnDHA.24 88@TK2MSFTNGP12 .phx.gbl>
                            <ODSfnYnnDHA.12 96@TK2MSFTNGP09 .phx.gbl>
                            | Subject: Re: Multiple threadpool for one process
                            | Date: Thu, 30 Oct 2003 07:49:20 +0200
                            | Lines: 33
                            | X-Priority: 3
                            | X-MSMail-Priority: Normal
                            | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
                            | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
                            | Message-ID: <eNakVmqnDHA.22 68@TK2MSFTNGP12 .phx.gbl>
                            | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                            | NNTP-Posting-Host: 82-166-168-12.barak.net.il 82.166.168.12
                            | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
                            | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1952 77
                            | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                            |
                            | Mybe (just for case) you know if multiple threadpools will avialiable in
                            C#
                            | v2 (beggining of the next year)?
                            |
                            |
                            | "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
                            | news:ODSfnYnnDH A.1296@TK2MSFTN GP09.phx.gbl...
                            | > There is only one single CLR threadpool available per process split into
                            | two different pools (non I/O style workitems - 25
                            | > threads/CPU default,. and one I/O style workitems - 1000 threads/CPU
                            | default).
                            | > If you need a separate threadpool, you need to implement it yourself.
                            | >
                            | > Willy.
                            | >
                            | >
                            | > "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message
                            | news:u%23a3TLnn DHA.2488@TK2MSF TNGP12.phx.gbl. ..
                            | > > The problem that I'm not :)
                            | > >
                            | > > This why I'm asking...
                            | > >
                            | > >
                            | > >
                            | > > "Willy Denoyette [MVP]" <willy.denoyett e@pandora.be> wrote in message
                            | > > news:OtKxZzmnDH A.2444@TK2MSFTN GP09.phx.gbl...
                            | > > > If you are so sure it's yes, I'm sure you can tell us how ;-).
                            | > > >
                            | > > > Willy.
                            | > > >
                            | >
                            | >
                            |
                            |
                            |

                            Comment

                            Working...