I just started to learning threading in Asp.net... I have few questions if someone could help me.
When doing Delegate.BeginInvoke, it takes a Thread from ThreadPool. so lets say if we do Delegate.BeginInvoke within a Loop (query 1000 request or send 1000 emails) is it going to borrow new thread for every new record or it will reuse the same one over and over again?
Delegate.BeginInvoke also has Delegate.endInvoke... is using EndInvoke Required? why do I have to use it?
Lets say by doing Delegate.BeginInvoke within the Delegate's provided Function, I want to update a LABEL (like on which record we are on.. lbl1.text=myRecord), can we do this? simple example?
Also... is it good idea to use Delegate.BeginInvoke for busy web applications? or is it good only for Batch operations OR Intranets etc? Say I have 1000 users on my site and they all accessing a page which has Delegate.BeginInvoke, is it going to open 1000 threads and choke the server to crash?
Visual Stuido has 200 ThreadPools VS Deployed application which has 25 threadPools. is this true?
Thanks in advance