Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to set a margin.. Pin
Simon P Stevens28-May-09 4:59
Simon P Stevens28-May-09 4:59 
QuestionMany network connections inside threads Pin
mohamang28-May-09 4:50
mohamang28-May-09 4:50 
AnswerRe: Many network connections inside threads Pin
EliottA28-May-09 5:27
EliottA28-May-09 5:27 
GeneralRe: Many network connections inside threads Pin
Luc Pattyn28-May-09 5:37
sitebuilderLuc Pattyn28-May-09 5:37 
GeneralRe: Many network connections inside threads Pin
EliottA28-May-09 5:39
EliottA28-May-09 5:39 
GeneralRe: Many network connections inside threads Pin
Luc Pattyn28-May-09 5:49
sitebuilderLuc Pattyn28-May-09 5:49 
GeneralRe: Many network connections inside threads Pin
mohamang28-May-09 5:52
mohamang28-May-09 5:52 
GeneralRe: Many network connections inside threads Pin
Luc Pattyn28-May-09 6:00
sitebuilderLuc Pattyn28-May-09 6:00 
Hi,

AFAIK the Thread class can be instantiated as long as you don't run out of very basic resources, such as virtual memory (maybe physical memory), and Windows handles. After all, when you look at Task Manager, Windows is running some 100 processes while "doing nothing", and most of these processes have several threads.

There are some limitations in other layers, some fixed, some variable; IIRC the maximum number of threads in the ThreadPool is fixed as the ThreadPool is used by .NET initialization code, hence it is created when a .NET process gets started but long before the user's code is running. And they did not provide a way to grow it.

Networking code often has limitations because it is deemed counterproductive to exceed a certain number, which probably is right most of the time, but would work against you in some situations, e.g. when you want to stress test a server with as few physical clients as possible.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralCheck it out Pin
EliottA28-May-09 5:50
EliottA28-May-09 5:50 
GeneralRe: Check it out Pin
Luc Pattyn28-May-09 6:08
sitebuilderLuc Pattyn28-May-09 6:08 
AnswerRe: Check it out Pin
Nicholas Butler28-May-09 7:35
sitebuilderNicholas Butler28-May-09 7:35 
GeneralRe: Check it out Pin
Luc Pattyn28-May-09 7:43
sitebuilderLuc Pattyn28-May-09 7:43 
GeneralRe: Check it out Pin
Nicholas Butler28-May-09 7:56
sitebuilderNicholas Butler28-May-09 7:56 
GeneralRe: Check it out Pin
Luc Pattyn28-May-09 7:59
sitebuilderLuc Pattyn28-May-09 7:59 
AnswerRe: Many network connections inside threads Pin
led mike28-May-09 7:43
led mike28-May-09 7:43 
GeneralRe: Many network connections inside threads Pin
mohamang30-May-09 7:36
mohamang30-May-09 7:36 
QuestionAforge.net Pin
tibyv28-May-09 4:16
tibyv28-May-09 4:16 
AnswerRe: Aforge.net Pin
Manas Bhardwaj28-May-09 4:17
professionalManas Bhardwaj28-May-09 4:17 
GeneralRe: Aforge.net Pin
Michael Bookatz28-May-09 4:32
Michael Bookatz28-May-09 4:32 
QuestionWindowsService Clarification Pin
MumbleB28-May-09 2:45
MumbleB28-May-09 2:45 
AnswerRe: WindowsService Clarification Pin
PIEBALDconsult28-May-09 3:06
mvePIEBALDconsult28-May-09 3:06 
GeneralRe: WindowsService Clarification Pin
MumbleB28-May-09 3:10
MumbleB28-May-09 3:10 
GeneralRe: WindowsService Clarification Pin
EliottA28-May-09 3:16
EliottA28-May-09 3:16 
GeneralRe: WindowsService Clarification Pin
MumbleB28-May-09 3:31
MumbleB28-May-09 3:31 
AnswerRe: WindowsService Clarification Pin
Calla28-May-09 3:21
Calla28-May-09 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.