1 Hello, world of concurrency in c++!

Source: Internet
Author: User

This chapter includes the history of multithreading and parallelism, why to use multithreading and parallelism in the program, the parallel support of C + +, simple multithreaded programs

Since the release of the C + + standard in 1998 for 13 years, there was an exciting time for C + + users, the C + + Standards Committee is giving the language and his support library an important overhaul, the new C + + standard was released in 2011, making C + + development easier and more useful.

The most iconic new feature of C++11 is the support of multi-threaded programs, for the first time, the C + + standard supports multithreaded programming at the language level and provides components in the library for write multithreaded procedures, which makes it possible for a C + + multithreaded program to not use the extended and easy multithreaded code of the specified platform. This is also when more and more programmers are looking for concurrency, using multithreaded programs to improve program performance.

This book covers the use of multithreaded writing programs and C + + language features and library components in C + +. I will start with the parallel and multi-threading I understand and why your program is going to use multithreading and parallelism, and after a quick explanation explain why you might not want to use it. I'm going to give a simple generalization of the parallel to C + + support, I'll end this chapter with a simple C + + parallel program, multithreaded development experienced readers may want to skip this chapter, and in the subsequent chapters I'll cover more examples and deeper library components, which will fully involve multithreading and parallel C + + Standard library components.

So what is parallel and multithreading?

1 Hello, world of concurrency in c++!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.