Skip to Content
Advanced C++
book

Advanced C++

by Gazihan Alankus, Olena Lizina, Rakesh Mane, Vivek Nagarajan, Brian Price
October 2019
Intermediate to advanced
762 pages
14h 7m
English
Packt Publishing
Content preview from Advanced C++

5. The Philosophers' Dinner – Threads and Concurrency

Learning Objectives

By the end of this chapter, you will be able to:

  • Create synchronous and asynchronous multithreaded applications
  • Apply synchronization to handle data hazards and race conditions
  • Develop efficient multithreaded code with C++ thread library primitives
  • Create threads using move semantics for multithreading closures
  • Implement thread communication with futures, promises, and async

In this chapter, we will clarify the difference between basic terms in multithreaded programming, learn how to write multi-threaded code, find out which resources are provided by the C++ Standard Library for data access synchronization, learn how to prevent our code from encountering race conditions ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced C and C++ Compiling

Advanced C and C++ Compiling

Milan Stevanovic
Mastering C++ Programming

Mastering C++ Programming

Jeganathan Swaminathan
Expert C++

Expert C++

Vardan Grigoryan, Shunguang Wu
C++ High Performance

C++ High Performance

Viktor Sehr, Björn Andrist

Publisher Resources

ISBN: 9781838821135Supplemental Content