Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ 语言内置了多线程机制的哦 #544

Closed
chxuan opened this issue Nov 14, 2019 · 2 comments
Closed

C++ 语言内置了多线程机制的哦 #544

chxuan opened this issue Nov 14, 2019 · 2 comments

Comments

@chxuan
Copy link

@chxuan chxuan commented Nov 14, 2019

大佬你好,大佬在Java基础知识->Java 语言有哪些特点上写到C++ 语言没有内置的多线程机制,其实
从C++11开始(2011年的时候)C++就引入了多线程库,在windows、linux、macos都可以使用std::thread和std::async来创建线程。

参考链接:
http://www.cplusplus.com/reference/thread/thread/?kw=thread

@Snailclimb

This comment has been minimized.

Copy link
Owner

@Snailclimb Snailclimb commented Nov 14, 2019

好的 感谢老哥,这个确实知识盲区了,大学学的 C++也是比较老的版本了。

@chxuan chxuan closed this Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.