We may earn an affiliate commission when you visit our partners.
Course image
James Raynard

Please note that this course is currently being updated. All the videos are being re-recorded, and new material will be added. I will try to minimize disruption, but there may be times when it is unavoidable.

Multithreading is used in many areas of computing, including graphics processing, machine learning and Internet stores. An understanding of threads is essential to make full use of the capabilities of modern hardware.

C++ now provides direct support for threads, making it possible to write portable multithreaded programs which have well-defined behaviour, without requiring any external libraries.

Read more

Please note that this course is currently being updated. All the videos are being re-recorded, and new material will be added. I will try to minimize disruption, but there may be times when it is unavoidable.

Multithreading is used in many areas of computing, including graphics processing, machine learning and Internet stores. An understanding of threads is essential to make full use of the capabilities of modern hardware.

C++ now provides direct support for threads, making it possible to write portable multithreaded programs which have well-defined behaviour, without requiring any external libraries.

This course thoroughly covers the basics of threading and will prepare you for more advanced work with threads. Source code is provided for all the examples. No previous knowledge of threading is required, but you should be comfortable with programming in C++ at an intermediate level, using "Modern" features such as smart pointers and move semantics.

We start with the concepts of multithreading and learn how to launch threads in C++. We look at the problems which can occur with multiple threads and how to avoid them.

C++ provides tools which allow us to work at a higher level of abstraction than system threads which share data; we cover condition variables and promises with futures. We will also look at asynchronous, lock-free and parallel programming, including atomic variables and the parallel algorithms in C++17. We will finish the course by implementing a concurrent queue and thread pool, which will bring together the material you have learnt.

There are downloadable exercises for each video, with solutions, so you can check your understanding as you learn, gaining familiarity and confidence with the material. There are also some optional assignments, which are more challenging.

I will be actively supporting the course. I will respond promptly if you have any questions or experience difficulties with the course content. Please feel free to use the Q&A feature or alternatively you can send me a private message.

Enroll now

Here's a deal for you

Save money when you learn with a deal that may be relevant to this course.
All coupon codes, vouchers, and discounts are applied automatically unless otherwise noted.

What's inside

Learning objectives

  • How to write portable multi-threaded code in c++
  • Basic principles of multi-threading which will be applicable in all languages
  • Understanding of concurrency
  • Knowledge of c++17 parallel algorithms

Syllabus

Introduction
Lecturer Introduction
Guide to Exercises and Source Code
Review of the Modern C++ Features used in this course
Read more

Initializers, literals, auto and range-for loops.

Lambda expressions.

Move semantics.

Lvalues and rvalues.

Move-only objects, random numbers.

A closer look at the C++ thread class.

How to manage a launched thread.

Launching multiple threads. This is where the "fun" starts!

Example of a data race.

How to overcome a problem with using mutexes directly.

A more fully-featured wrapper class that overcomes a problem with using mutexes directly.

How to wait for a lock on a mutex without blocking indefinitely.

Avoid unnecessary locking when there are many more reading threads than writers.

How to initialize shared data safely. Threadsafe Singleton implementation.

How to create data that is local to a thread.

How to create an atomic variable

How to write a spin lock

Odds and ends to finish off the section.

Introduce the basic concept of parallelism

Introduction to execution policies

How to choose an execution policy, implications for exception handling

A brief look at the new parallel algorithm functions in C++17.

We continue our brief look at the new parallel algorithm functions in C++17.

Hands-on session where we create a basic concurrent queue.

How to really improve the performance of thread-intensive programs.

Hands-on session where we create a basic thread pool.

Traffic lights

Read about what's good
what should give you pause
and possible dealbreakers
Teaches multithreading, which is a cornerstone of modern programming, a key topic for intermediate and advanced coders
Taught by James Raynard, a recognized expert in multithreading and industry thought leader
Examines C++, a key tool used in graphics processing, machine learning, and Internet stores
Provides exercises, solutions, and optional assignments to help learners check their understanding as they progress
This intermediate course requires comfort with C++ at an intermediate level

Save this course

Create your own learning path. Save this course to your list so you can find it easily later.
Save

Reviews summary

Mastering multithreading with modern c++

According to students, this course offers a comprehensive and clear path to mastering C++ multithreading. Learners consistently praise the instructor's ability to explain complex topics with exceptional clarity, making advanced concepts like mutexes, condition variables, and futures accessible. The course is highlighted for its strong hands-on approach, providing valuable exercises and culminating in practical projects such as a concurrent queue and thread pool. Recent updates have significantly improved the course's production quality and added new, invaluable content, addressing prior feedback. While requiring a solid intermediate C++ background, it's considered a must-take for serious C++ developers looking to build portable, high-performance concurrent applications.
The instructor provides active and prompt support for student questions.
"The instructor's quick responses in Q&A were very helpful."
"Instructor is extremely responsive in Q&A, which is a big plus."
"I now feel confident tackling multithreaded applications thanks to the excellent content and support."
Recent updates have significantly enhanced video quality and added valuable new content.
"The updated content on C++17 parallel algorithms is excellent. The updated course material is a huge improvement! The new videos are crisp."
"While older videos had some sound quality issues, the re-recorded sections and new material are invaluable."
"The updated material is top-notch. It's great to see the course evolve and address previous feedback."
Practical exercises and a capstone project deeply reinforce theoretical knowledge.
"The hands-on exercises truly solidify the concepts. I especially appreciated the final project on the concurrent queue and thread pool."
"The exercises are helpful and well-designed. The concurrent queue and thread pool implementations are challenging but rewarding."
"The hands-on coding and projects are the strongest part of the course for me, really helping to solidify my understanding."
Complex multithreading concepts are broken down into digestible and understandable lessons.
"The instructor's explanations are incredibly clear, breaking down complex topics like mutexes and condition variables into digestible segments."
"This course completely demystified multithreading for me. The explanations of data races and deadlocks were particularly insightful."
"The instructor handles incredibly complex concepts with such ease and clarity. Every topic... is explained meticulously with practical code."
Some advanced sections could benefit from more in-depth coverage or examples.
"I found the section on lock-free programming a bit dense and could use more practical examples."
"I wish there were more advanced topics or deeper dives into performance considerations. The lock-free section felt a bit abstract."
"The C++17 parallel algorithms section, while concise, could be expanded to provide more depth for expert-level needs."
A solid foundation in modern C++ features is essential for success.
"Prerequisites are real – be comfortable with modern C++. This course is definitely for intermediate C++ developers."
"This course is a must for anyone serious about modern C++ concurrency, but ensure you meet the C++ knowledge requirements."
"I found it too basic initially for my needs as an experienced C++ developer, but it picked up later. Good for those new to multithreading, even if they know C++."

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Learn Multithreading with Modern C++ with these activities:
Review asynchronous programming concepts
Refreshing your knowledge of asynchronous programming will provide a solid foundation for understanding how to avoid thread blocking effectively and handle tasks efficiently.
Browse courses on Asynchronous Programming
Show steps
  • Review notes or articles on asynchronous programming concepts.
  • Go through code examples or tutorials that demonstrate asynchronous programming in C++.
Organize and review course materials
Regularly organizing and reviewing your course materials will help you stay on top of the content and improve your retention and comprehension.
Show steps
  • Go through your notes, assignments, quizzes, and exams.
  • Identify any gaps in your understanding.
  • Revisit relevant sections of the course material to fill those gaps.
Follow tutorials on advanced multithreading techniques
Exploring tutorials on advanced multithreading techniques will broaden your knowledge and expose you to different approaches and best practices.
Browse courses on Concurrency
Show steps
  • Identify reputable sources or platforms offering tutorials on advanced multithreading concepts.
  • Select tutorials that align with your learning objectives.
  • Follow the tutorials, taking notes and implementing the code examples provided.
Three other activities
Expand to see all activities and additional details
Show all six activities
Practice C++ multithreading exercises
Completing each of the downloadable exercises with solutions will help you improve your understanding of multithreading concepts and apply them effectively in C++.
Show steps
  • Review the instructions and exercise description.
  • Attempt to solve the exercise on your own.
  • Check your solution against the provided solutions.
Write a blog post on a multithreading topic
Writing a blog post will help you synthesize and reinforce your understanding of multithreading concepts, while also potentially benefiting others who read your post.
Browse courses on Multithreading
Show steps
  • Choose a specific topic related to multithreading based on the course content.
  • Research and gather information on the topic.
  • Outline and draft your blog post.
  • Revise and edit your post for clarity and accuracy.
Build a multithreaded web server
Developing a web server using multithreading techniques will provide a practical application of the concepts covered in the course, allowing you to solidify your understanding.
Browse courses on Multithreading
Show steps
  • Choose a suitable web framework and development environment.
  • Design and implement a multithreaded architecture for handling client requests.
  • Test and debug the web server to ensure it handles multiple requests efficiently.
  • Deploy the web server and monitor its performance.

Career center

Learners who complete Learn Multithreading with Modern C++ will develop knowledge and skills that may be useful to these careers:

Reading list

We've selected 46 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Learn Multithreading with Modern C++.
Provides a comprehensive overview of concurrency in Java, including a chapter on condition variables. This book has been written by some of the leading experts in Java concurrency.
Widely considered the authoritative guide to concurrency in Java, this book provides a deep understanding of the Java Memory Model, thread-safe classes, and the concurrency utilities library. It is an essential reference for serious Java developers and is often recommended for advanced undergraduate and graduate students, as well as working professionals. While not the most recent publication, its foundational knowledge remains highly relevant.
Provides a collection of 42 specific guidelines for writing effective modern C++ code. These guidelines cover a wide range of topics, from basic coding practices to advanced design techniques.
Provides a collection of 55 specific guidelines for writing effective C++ code. These guidelines cover a wide range of topics, from basic coding practices to advanced design techniques.
This textbook provides a comprehensive overview of parallel computing, covering topics such as parallel architectures, programming models, and performance analysis. Grama, Gupta, Karypis, and Kumar are all renowned experts in the field, and their book is considered a standard reference.
Is the definitive guide to writing multithreaded applications in C++. It covers the C++ memory model, threading support library, and synchronization facilities, with practical examples and insights. It is valuable for C++ developers of all levels looking to implement robust and efficient concurrent code. The third edition is updated for modern C++ standards.
Provides a comprehensive overview of effective Java programming, including data races and how to avoid them.
Classic work on multiprocessor programming, including a chapter on synchronization and mutexes. It good resource for developers who want to learn more about the theoretical foundations of concurrency.
Provides a comprehensive overview of deadlocks, including both theoretical and practical aspects. It good choice for students who want to learn more about the subject in depth.
Provides a comprehensive overview of the C++ programming language, covering everything from basic syntax to advanced topics such as templates and the Standard Template Library (STL). It great resource for both beginners and experienced C++ programmers.
Provides a comprehensive treatment of distributed algorithms, which are used to solve problems in distributed systems. Lynch covers a wide range of topics, including synchronization, fault tolerance, and consensus. The book valuable resource for anyone interested in designing and implementing distributed systems.
Provides a collection of practical recipes for implementing concurrency, asynchronous programming, and multithreading in C#. It's a great resource for C# developers looking for hands-on solutions to common concurrency problems and exploring modern C# features like async/await. It's more of a practical guide than a theoretical text.
Provides a comprehensive overview of C++ templates, covering everything from the basics to advanced topics such as metaprogramming. It great resource for both beginners and experienced C++ programmers who want to learn more about templates.
Provides a comprehensive treatment of real-time systems, which are systems that must meet strict timing constraints. Laplante covers a wide range of topics, including concurrency, scheduling, and fault tolerance. The book valuable resource for anyone interested in designing and implementing real-time systems.
Provides a comprehensive overview of C++ concurrency, covering everything from the basics to advanced topics such as thread synchronization and parallelism. It great resource for both beginners and experienced C++ programmers who want to learn more about concurrency.
Provides a comprehensive overview of C++ templates, covering everything from the basics to advanced topics such as metaprogramming. It great resource for both beginners and experienced C++ programmers who want to learn more about templates.
Provides a detailed look at low-level concurrency in Rust, focusing on atomics and locks. It's aimed at Rust developers who need to write high-performance, thread-safe code and understand the intricacies of memory ordering and synchronization in Rust.
Another highly regarded operating systems textbook that covers multithreading and concurrency in detail. provides a comprehensive overview of how operating systems manage threads and handle concurrent processes, making it a valuable resource for undergraduate and graduate students seeking a deeper understanding of the system-level aspects of multithreading.
Offers a practical, hands-on approach to learning concurrency in Rust. It covers various concurrency primitives and techniques with clear examples, making it suitable for Rust developers who want to gain practical experience with multithreading.
Provides a comprehensive overview of the Rust programming language, which is known for its focus on memory safety and concurrency, including data races.
Covers a wide range of topics in cloud computing, including concurrency. Buyya, Vecchiola, and Selvi provide a comprehensive treatment of concurrency in the context of cloud computing, including topics such as load balancing, fault tolerance, and scalability. The book valuable resource for anyone interested in designing and implementing cloud-based applications.
While not solely focused on multithreading, this widely used textbook provides essential background knowledge on processes, threads, and concurrency as fundamental operating system concepts. It is an excellent resource for high school and undergraduate students to gain a broad understanding of the underlying principles that enable multithreading.
Provides a broad overview of operating systems, including a chapter on condition variables.
Covers both the theoretical foundations of parallel programming and the practical aspects of implementing parallel algorithms on real-world systems. Wilkinson and Allen's extensive experience in the field makes the book a valuable resource for both students and practitioners.
Provides a comprehensive overview of multithreaded programming in C#, including a chapter on condition variables.
Focuses on asynchronous programming in Python using the asyncio library, which is crucial for I/O-bound concurrency. It provides a clear and practical guide with hands-on examples, suitable for Python developers looking to improve the performance and scalability of their applications.
This foundational book on the Go programming language provides a solid introduction to Go's built-in concurrency features, including goroutines and channels. It's an essential read for anyone learning Go and wanting to understand its idiomatic approach to concurrent programming.
Provides a solid introduction to the principles and practice of parallel programming. It covers various parallel programming models and technologies, making it suitable for students and developers new to the field of parallel computing.
Explores various concurrency models and mechanisms available on the Java Virtual Machine, going beyond just traditional threading. It covers topics like software transactional memory and actors, offering a broader perspective on concurrency for Java developers and those working with other JVM languages like Scala.
Provides a clear introduction to the fundamental concepts of concurrent and distributed programming. It uses various programming languages and formalisms to illustrate principles, making it accessible to students and those new to the topic.
Provides a comprehensive overview of operating systems, including a chapter on concurrency and deadlocks. It is written in a clear and concise style, making it a good choice for students.
While not exclusively about multithreading, this influential book on software craftsmanship includes principles and practices that are highly relevant to writing maintainable and understandable concurrent code. It emphasizes clarity and good design, which are crucial for avoiding concurrency bugs.
This textbook provides a comprehensive overview of parallel computer architecture, covering both hardware and software aspects. It discusses different parallel architectures, programming models, and performance optimization techniques. (fit_score: 65, difficulty_score: 85)
This introductory textbook covers fundamental concepts of parallel programming, including concurrency, synchronization, and load balancing. It uses Java as the programming language and provides hands-on exercises and case studies. (fit_score: 60, difficulty_score: 55)
This advanced textbook focuses on high-performance parallel computing techniques, including message passing, shared memory programming, and GPGPU computing. It covers topics such as performance analysis, optimization, and fault tolerance. (fit_score: 55, difficulty_score: 95)
This textbook covers parallel processing techniques for scientific computing, including numerical methods, linear algebra, and differential equations. It emphasizes practical aspects and provides hands-on exercises and case studies. (fit_score: 50, difficulty_score: 80)
Focuses on parallel programming in C++. It covers topics such as multithreading, synchronization, and data parallelism. (fit_score: 30, difficulty_score: 70)

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Here are nine courses similar to Learn Multithreading with Modern C++.
Mastering Multithreading with Go
Most relevant
Computer Architecture
Most relevant
Up and Running with Concurrency in Go (Golang)
Most relevant
Java Multithreading, Concurrency & Performance...
Most relevant
Multi-Paradigm Programming with Modern C++
Most relevant
Mastering Multithreading Programming with Go (Golang)
Most relevant
Concurrency, Multithreading and Parallel Computing in Java
Most relevant
Learn Parallel Programming with C# and .NET
Most relevant
Concurrent Programming in Java
Most relevant

Udemy Buyer Protection & Guarantee

Verified partner policies & purchase protections

Global Marketplace Leader
Free Trial & Audit

Free Lecture Previews

Free preview video lectures available for all courses; optional 7-day free trial on Personal Plan subscriptions (cancel before trial ends to avoid conversion).

Return & Refund Policy

30-Day Money-Back Guarantee

30-day money-back guarantee on all eligible individual course purchases (provided course content has not been substantially consumed or downloaded). Subscription fees are non-refundable once billed.

Buyer Protections

Verified Academic & Industry Partner

Lifetime access to purchased individual courses and future updates, verifiable certificate of completion, and direct student Q&A forums.

Key Purchase Protections
30-day 100% money-back guarantee on course purchases
Lifetime access on web, mobile, and offline
Certificate of completion included with purchase
Direct instructor Q&A and active student community
OpenCourser Verified Partner Policy details last reviewed: 2026-10-22
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser