In the previous chapter, we discussed template metaprogramming that will make a code in compile-time execution. It will also improve the flow control of our code since we can refactor the flow using the template. Now, in this chapter, we will talk about concurrency in C++, where we have to control the flow again when we run two or more processes simultaneously. In this chapter, we will discuss the following topics:
- Running single as well as multiple threads in C++ programming
- Synchronizing the thread to avoid a deadlock
- Using the handle resource in Windows to create a thread