Shared lock shared_mutex solves the read/write problem
-
Understand the principle of threads -
Learn the multithreading programming of c++11 -
Learn the principle of thread pool and be able to implement thread pool manually -
Learn the new features related to multithreading of c++11 14 17 20
Development tools used in the course The development tool used in the course is vs2019 Whether the course code is cross platform The course code is based on c++self generated features, without the use of third-party libraries, and is cross platform Whether the old version of development tools can Most of the code in the course is c++11, and most of the development tools support it. Among them, c++14 17 requires relatively new tool support, and c++20 requires vs2019 Whether the course provides source code The course provides source code to facilitate students to debug errors against problems in the learning process.
-
Chapter 1 C++11 Multithreading Quick Start -
1-1 Try Course Introduction 06:40 -
1-2 Why to use multithreading_first thread code example 13:19 -
1-3 Thread object life cycle and thread waiting and separation 11:38 -
1-4 Global function as thread entry analysis parameter passes memory operation 11:10 -
1-5 Thread function passes pointer and reference 10:32 -
1-6 Use member function as thread entry and encapsulate thread base class interface 19:20 -
1-7 Lambda temporary function as thread entry 07:25 -
1-8 Call_once Multi thread calling function only enters once 06:06 -
Chapter 2 Multi thread Communication and Locks -
2-1 Try Analysis of multithreading state and its switching process 07:01 -
2-2 Introduction to the competition state and critical area _ mutex code demonstration 09:55