Reputation: 5114
I never work with multithreading in c#. Can some body give me a simple code example to do this?
(c# with asp.net web application)
My intention is i want to read 10 values at a same time. So I'm going for multithreading concept. Is it right thing what I choose? Or is there any best way to approach?
Thank you, nagu
Upvotes: 0
Views: 4519
Reputation: 8531
Based on your response to Mitch's answer, it sounds like what you really want is to multicast your messages (one message to many addresses) as opposed to many simulatenous messages. What API are you using to send the message? Does it support multicast?
Upvotes: 2
Reputation: 9300
MSDN is always a good place to start, with extensive information on just about everything, including threading.
See: http://msdn.microsoft.com/en-us/library/ms173178.aspx
Also, a good tutorial on threading in C# is available here: http://msdn.microsoft.com/en-us/library/aa645740%28VS.71%29.aspx
Upvotes: 0
Reputation: 9028
A simple tutorial here: http://www.codersource.net/csharp_tutorial_multithreading.html
A good one is here: http://www.albahari.com/threading/
Upvotes: 0
Reputation: 300827
I suggest you read Joe Albahari's free e-book: Threading in C#
Upvotes: 4