Solved

Thread Limit

Posted on 2013-07-01
4
543 Views
Last Modified: 2013-07-01
Is there a "Thread Limit?" in VB.Net?
0
Comment
Question by:lrbrister
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:lenordiste
ID: 39291136
there's not really a limit defined for threads in .NET (VB.NET being a language such notion does not exist). The only limit I can think of is a physical one which is the hardware your code is running on. Why are you asking this question ? it seems that you have an underlying problem at hand :)
0
 

Author Comment

by:lrbrister
ID: 39291151
No...I have no underlying problem at all.

I have a process that does a series of HttpWebRequests each in their own thread
12 of them.

Because of the way I'm posting the request, I was asked if I could "do it all" in a separate data post
Since I'm keeping each Web Request  response stream open with
While streamResponse.CanRead...

This means that I would have (x) threads...up to 100 all with an open Response Stream
instead of my current 12
0
 
LVL 11

Accepted Solution

by:
lenordiste earned 500 total points
ID: 39291195
you may want to use a threadpool to manage your threads as it provides useful functionalities:
http://msdn.microsoft.com/en-us/library/system.threading.threadpool.aspx

On a side note, you may easily have more than 100 threads going but do you send your request to a single webserver? If so, that webserver might be a bottleneck, in which case a threadpool will help you set a maximum number of concurrent threads to better tune the overall performance of your application.
0
 

Author Closing Comment

by:lrbrister
ID: 39291320
Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now