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++!