Threading Vs Delegates

  • Thread starter Thread starter rb531
  • Start date Start date
R

rb531

Guys,

I am struck up with a dilemma whether to use threading or delgates for
asynchronous processing. Can anyone throw some light on this?

Please let me know which one is better.

Thanks
 
Definitely use delegates. Delegates will save you a lot of effort and likely will perform better than a home grown solution. In case this isn't common knowledge, with delegates asynchronous processing is built-in with the BeginInvoke/EndInvoke methods inherent in your delegate instance.

~harris
 
Delegates do have limitations, as they use the common thread pool, but they
make asynchronous programming so much easier. Unless you need more threads
than are available in the thread pool, or need more precise control over
thread execution, definitely use delegates.

Michael C.

Harris Reynolds said:
Definitely use delegates. Delegates will save you a lot of effort and
likely will perform better than a home grown solution. In case this isn't
common knowledge, with delegates asynchronous processing is built-in with
the BeginInvoke/EndInvoke methods inherent in your delegate instance.
 
Back
Top