About the book

Source: Internet
Author: User

This book is a multi-threaded and parallel in-depth guide to c++11 new standards, from basic Std::thread,std::mutex, and Std::async, to complex atomic applications and memory models.

The first four chapters describe a variety of library components and how to use them,

The fifth chapter describes the underlying memory model and atomic operations, including how to use atomic manipulation to constrain other code and summarize the previous introductory chapters.

The sixth and seventh chapters begin with high-level topics, with some examples of how to use the base groups to compile more complex structures--lock-based data structures and unrelated structures

The eighth chapter continues the high-level theme, guiding the design of multi-thread programming, performance discussion, implementation of various parallel algorithms,

The Nineth chapter introduces threading management, thread pool, work queue and interrupt operation.

The tenth chapter tests and debugs the types of bugs, locates their technology, how to test them and so on.

The appendix includes a brief description of the new standard for new language tools involving multithreading, the detailed implementation of the messaging library mentioned in the fourth chapter and a reference to a complete c++11 line libraries.

If you are writing multithreaded programs in C + +, you should read this book and you will be able to use the new multithreaded components from the C + + standard library, which is a basic guide. These guidelines and techniques are also helpful if you are using other line libraries.

If you have never written a multithreaded program, I suggest you read it from beginning to end, try not to skip the detailed first five chapters, the seventh chapter will use the knowledge of the fifth chapter, so I want you to skip the fifth chapter please read the seventh chapter.

If you have not used c++11, you can browse Appendix A before you begin to read to make sure you can understand the example of this book, highlight text when using new language components, and if you meet something you haven't seen you can check the appendix.

If you have a multi-threaded admiration in other environments, the chapters in the beginning may still be worth your browsing, if you are doing the underlying work with atomic variables, the fifth chapter is a must, and the eighth chapter is worth browsing to make sure that you are familiar with the thread safety of C + +, and if you have a specific task, the directory will help you to find

Once you use C + + line libraries, Appendix D is useful, such as the detailed introduction and practice of each class and function call, and you can also revert back to the main chapters and refresh your use once in a while.

In order not to change the code used in this book, you need a compiler that supports C++11, you need to copy the C + + standard line libraries.

In writing, g++ is the only compiler to implement the standard line libraries, although the 2011 preview also contains some implementations, g++4.3 first introduced the line libraries, g++4.3 also introduced the features of the C + + language support, more new language features will be supported later,

My company is a software environment solutions company, which sells the full implementation of the C++11 standard library for VS2005, which has been used to test the examples in this book.

Boost Treadlibrary offers a libraries API proposal based on the C++11 standard line, and is portable for multiple platforms, most examples of this book can be modified by the Chen Boost line libraries only by std:: Replace with boost:: and use the appropriate # Include directive. There are some things that are not supported in boost Thread libary or have different names (such as Boost::unique_future).




About the book

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.