什么是Visual c ++中的线程? [英] What is threading in Visual c++ ?

查看:69
本文介绍了什么是Visual c ++中的线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿代码项目,
我一直在浏览该网站上的信息页面,但随后遇到了一些线程.问题是我不知道线程是什么或如何使用它.有人可以告诉我如何使用它吗?
问候,
网络战.

Hey Code Project,
I was looking through the pages of info at this website but then i came across threads. The thing is i do not know what an thread is or how to use it. Would someone please tell me how to use it.
Regards,
Cyberwarfare.

推荐答案

我必须同意SA-即使您忽略了特定于语言的部分,这对于快速解答也是一个太大的话题. >
开始阅读的时间:维基百科 [
I have to agree with SA - this is far too big a subject for a Quick Answer, even if you ignore the language specific parts.

Time to start reading: Wikipedia[^] does a good overview of threading and what threads are. For more detail, most good development teaching books devote a chapter (or three) to teh subject.


正如我所说的,这不仅仅是一个问答题.请尝试从这里开始:
http://en.wikipedia.org/wiki/Thread_%28computing%29 [ ^ ],
http://en.wikipedia.org/wiki/Multi-core_%28computing%29 [ ^ ],
http://en.wikipedia.org/wiki/Thread_pool_pattern [ http://en.wikipedia.org/wiki/Thread_safety [ http://en.wikipedia.org/wiki/Thread_synchronization [ http://msdn.microsoft.com/en-us/library/hh156548.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/3e8s7xdd%28v = vs.110%29.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.threading.aspx [ ^ ].

这是很长的路要走.不要指望一些简单的食谱或快速的概念修正,它们在现阶段将无济于事.这不仅仅是对某些技术的快速培训,而是教育.唯一适合您的概念性解决方案是:快速骑兵攻击不会涵盖此主题. :-)

—SA
As I say, this is not a topic for just one question and answer. Please try to start here:
http://en.wikipedia.org/wiki/Thread_%28computing%29[^],
http://en.wikipedia.org/wiki/Multi-core_%28computing%29[^],
http://en.wikipedia.org/wiki/Thread_pool_pattern[^],
http://en.wikipedia.org/wiki/Thread_safety[^],
http://en.wikipedia.org/wiki/Thread_synchronization[^].

Now, managed threading for .NET:
http://msdn.microsoft.com/en-us/library/hh156548.aspx[^],
http://msdn.microsoft.com/en-us/library/3e8s7xdd%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.threading.aspx[^].

This is pretty long way to go. Don''t expect some simple cookbook recipes or a quick conceptual fix — they would not be helpful at this stage. This is more of education than of quick training in some techniques. The only one conceptual fix for you would be this: this topic is not covered by a swift cavalry attack. :-)

—SA


这篇关于什么是Visual c ++中的线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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