什么时候在C#中使用线程?哪种情况在c#应用程序中使用线程? [英] When will use threading in c#? Which scenario uses threading in c# application?

查看:127
本文介绍了什么时候在C#中使用线程?哪种情况在c#应用程序中使用线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,

什么时候将在C#中使用线程???

Guys,

When will use threading in c#??? Which scenario uses threading in c# application?

推荐答案

几乎在所有地方.几乎所有情况.这就是为什么此主题过于广泛而无法在此论坛中涵盖一个答案的原因.如果您是新手,则至少需要一本书,而不是简短的文章.

首先,不是在C#中进行线程化,而是在.NET中进行线程化.就是说,我不太确定您是否了解平台和框架的作用,以了解或多或少的高级知识.假设你做.当您询问场景时,也许您通常并不熟悉线程概念.无论如何,迟早您可能需要启动.某些或其他方式,例如:
http://en.wikipedia.org/wiki/Thread_%28computing%29 [ ^ ],
http://msdn.microsoft.com/en-us/library/hyz69czz%28v = vs.100%29.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/ms173178%28v = vs.110%29.aspx [ ^ ].

—SA
Everywhere, almost. All scenarios, almost. That''s why this topic is too broad to cover in one answer at this forum. If you are a novice, you would need a book, as a minimum, not a short article.

First of all, not threading in C#, but threading in .NET. That said, I''m am not really sure you understand the role of the platform and the framework, to get into more or less advanced stuff. Suppose you do. As you ask about scenario, perhaps you are not familiar with threading concepts in general. Anyway, sooner or later you probably need to start. Some or another way, like:
http://en.wikipedia.org/wiki/Thread_%28computing%29[^],
http://msdn.microsoft.com/en-us/library/hyz69czz%28v=vs.100%29.aspx[^],
http://msdn.microsoft.com/en-us/library/ms173178%28v=vs.110%29.aspx[^].

—SA


这篇关于什么时候在C#中使用线程?哪种情况在c#应用程序中使用线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆