Learn C++ Multi Threading in 20 Minutes

Опубликовано: 20 Май 2026
на канале: arisaif
75,735
1.1k

Learn C++ Multi Threading in 20 minutes.

I will explain how to create threads using std::thread and how to create tasks using std::async. For each of them, I demo how to use:

Pointer to function
Functors (Function Object)
Lambda functions

I also explain promises and futures and how to create tasks using std::async.

You can download and code with me using this link:
https://github.com/ourarash/multithre...

You can run the code either using Bazel or G++.

Check my other video on using Bazel to build C++ files in Visual Studio Code:

   • Bazel & Google Test in Visual Studio Code  

More details on Bazel:
https://github.com/ourarash/cpp-template

My article on Multi threading:
https://hackernoon.com/learn-c-multi-...
------------------------------------------------------------------------------------------
Keep in touch with me:
  / ourarash  

I'm the founder of BitcoinCrazyness app:

http://www.bitcoincrazyness.com/

The Most Advanced Cryptocurrency APP
Alerts, Charts, Coin Query, Coin Tracker, True Gain/Loss Calculation