473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.
www.tcon.co.il
Nov 15 '05 #1
13 5625
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]
- mv*@spam.guard.caspershouse.com

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:%2********************@TK2MSFTNGP12.phx.gbl.. .
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

Nov 15 '05 #2
No.

Willy.

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message news:%2********************@TK2MSFTNGP12.phx.gbl.. .
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

Nov 15 '05 #3
OK, Pritty clear...
I know this, but It does not looking me smart, are there some seriouse
reason for it???

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:#U**************@TK2MSFTNGP12.phx.gbl...
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

Nov 15 '05 #4
Yes
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:el**************@TK2MSFTNGP10.phx.gbl...
No.

Willy.

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message

news:%2********************@TK2MSFTNGP12.phx.gbl.. .
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


Nov 15 '05 #5
Yes, what?
"news.microsoft.com" <di********@discussion.microsoft.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Yes
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:el**************@TK2MSFTNGP10.phx.gbl...
No.

Willy.

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message

news:%2********************@TK2MSFTNGP12.phx.gbl.. .
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



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

Willy.

"news.microsoft.com" <di********@discussion.microsoft.com> wrote in message news:eq**************@TK2MSFTNGP10.phx.gbl...
Yes
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:el**************@TK2MSFTNGP10.phx.gbl...
No.

Willy.

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message

news:%2********************@TK2MSFTNGP12.phx.gbl.. .
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



Nov 15 '05 #7
The problem that I'm not :)

This why I'm asking...

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:Ot**************@TK2MSFTNGP09.phx.gbl...
If you are so sure it's yes, I'm sure you can tell us how ;-).

Willy.

"news.microsoft.com" <di********@discussion.microsoft.com> wrote in

message news:eq**************@TK2MSFTNGP10.phx.gbl...
Yes
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:el**************@TK2MSFTNGP10.phx.gbl...
No.

Willy.

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message

news:%2********************@TK2MSFTNGP12.phx.gbl.. .
> 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
>
>



Nov 15 '05 #8
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" <ta**********@tcon-NOSPAM.co.il> wrote in message news:u%****************@TK2MSFTNGP12.phx.gbl...
The problem that I'm not :)

This why I'm asking...

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:Ot**************@TK2MSFTNGP09.phx.gbl...
If you are so sure it's yes, I'm sure you can tell us how ;-).

Willy.

Nov 15 '05 #9
Mybe (just for case) you know if multiple threadpools will avialiable in C#
v2 (beggining of the next year)?
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:OD**************@TK2MSFTNGP09.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" <ta**********@tcon-NOSPAM.co.il> wrote in message

news:u%****************@TK2MSFTNGP12.phx.gbl...
The problem that I'm not :)

This why I'm asking...

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:Ot**************@TK2MSFTNGP09.phx.gbl...
If you are so sure it's yes, I'm sure you can tell us how ;-).

Willy.


Nov 15 '05 #10


"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:OD**************@TK2MSFTNGP09.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.

re: the I/O workitems...1000 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
Nov 15 '05 #11
Dave,

I don't know if it's documented somewhere, but the value is reported by ThreadPool.GetMaxThreads. (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" <no****************@wi.rr.com> wrote in message news:u$**************@TK2MSFTNGP12.phx.gbl...


"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:OD**************@TK2MSFTNGP09.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.

re: the I/O workitems...1000 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

Nov 15 '05 #12
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" <no****************@wi.rr.com> wrote in message news:Oe**************@TK2MSFTNGP11.phx.gbl...
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]" <wi*************@pandora.be> wrote in message
news:eC****************@TK2MSFTNGP11.phx.gbl...
Dave,

I don't know if it's documented somewhere, but the value is reported by

ThreadPool.GetMaxThreads. (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.


Nov 15 '05 #13

Hi Tamir,

Thanks for posting in this group.
I think you can provide your suggestion to microsoft at the link below:
http://register.microsoft.com/mswish/suggestion.asp

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" <ta**********@tcon-NOSPAM.co.il>
| References: <#U**************@TK2MSFTNGP12.phx.gbl>
<el**************@TK2MSFTNGP10.phx.gbl>
<eq**************@TK2MSFTNGP10.phx.gbl>
<Ot**************@TK2MSFTNGP09.phx.gbl>
<u#**************@TK2MSFTNGP12.phx.gbl>
<OD**************@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: <eN**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 82-166-168-12.barak.net.il 82.166.168.12
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:195277
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Mybe (just for case) you know if multiple threadpools will avialiable in
C#
| v2 (beggining of the next year)?
|
|
| "Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
| news:OD**************@TK2MSFTNGP09.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" <ta**********@tcon-NOSPAM.co.il> wrote in message
| news:u%****************@TK2MSFTNGP12.phx.gbl...
| > > The problem that I'm not :)
| > >
| > > This why I'm asking...
| > >
| > >
| > >
| > > "Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
| > > news:Ot**************@TK2MSFTNGP09.phx.gbl...
| > > > If you are so sure it's yes, I'm sure you can tell us how ;-).
| > > >
| > > > Willy.
| > > >
| >
| >
|
|
|

Nov 15 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: MikeE | last post by:
Hi all, What's the best way to queue up and wait for number of threads to complete. This problem was trivial in VC++ 6 but I'm finding it rather hard to solve in VB.NET. My calculations run...
6
by: Quiet Man | last post by:
Hi all, I'm designing a fairly simple service that will run on W2K/SP4 and W2K3 servers. It's job is to be a very specialized database server that listens on a given IP address / TCP port and...
8
by: Jim Kane | last post by:
I've written a c# web service. When a request is received I need to download a potentially large file from another site. To do that I was starting a new thread using QueueUserWorkItem but to my...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
5
by: Jeremy | last post by:
I have a core VB service that monitors a database, and based on data in the records will execute code to send email notifications. Problem: I don't want my main program code to halt and wait for...
7
by: Sin Jeong-hun | last post by:
Hi. I'm writing a Client/Multi-threaded Server program on Windows Vista. It worked fine on Windows Vista, but when the server ran on Windows XP, I/O operation has been aborted because of either...
5
by: =?Utf-8?B?RkxEYXZlTQ==?= | last post by:
I'm developing an application that gets data from 100 sources (via telnet connections, but you can think stock quotes from a webservice if you like). I was planning on using the thread pool (25...
2
by: Karthik D V | last post by:
Hi All, I have the following requirement. I have table which contains requestID, priority and the request status(status can be 'Queued','Procesing','Completed','Failed') I need a class which...
3
by: UltimateBanoffee | last post by:
Hi, I'm using asp.net 2.0 and I have an understanding issue here! I don't quite understand when the available threads in the ThreadPool are ever used. The application I have running doesn't use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.