开发者

Multithreading in c# how to use?

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


I suggest you read Joe Albahari's free e-book: Threading in C#


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?


A simple tutorial here: http://www.codersource.net/csharp_tutorial_multithreading.html

A good one is here: http://www.albahari.com/threading/


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜