C++11 Multithreading – Part 7: Condition Variables Explained
In this article we will discuss the usage of Condition Variable in C++11 Multi-threading with example. (more…)
C++11 Multithreading – Part 6: Need of Event Handling
In this article we will discuss the need of Event Handling in Multi-threading. (more…)
C++11 Multithreading – Part 5: Using mutex to fix Race Conditions
In this article we will discuss how to use mutex locks to protect shared data in multithreaded environment and avoid race conditions. (more…)
C++11 Multithreading – Part 4: Data Sharing and Race Conditions
In multithreading environment data sharing between threads is very easy. But this easy sharing of data can cause problems in application. One such problem is Race Condition. (more…)
C++11 Multithreading – Part 3: Carefully Pass Arguments to Threads
To Pass arguments to thread's associated callable object or function just pass additional arguments to the std::thread constructor. By default all arguments are copied into the internal storage of new…
C++11 Multithreading – Part 2: Joining and Detaching Threads
In this article we will discuss about joining and detaching of std::thread. (more…)
C++11 Multithreading – Part 1 : Three Different ways to Create Threads
In this article we will discuss how to create threads in C++11 using std::thread. (more…)
Using std::find & std::find_if with User Defined Classes
std::find and std::find_if algorithms are used to find first element in the given range. (more…)
C++11 Smart Pointer – Part 5: shared_ptr, Binary trees and the problem of Cyclic References
Main advantage of shared_ptr is that it automatically releases the associated memory when not used any more. (more…)
C++11 Smart Pointer – Part 4: Create shared_ptr objects carefully
We should create shared_ptr objects carefully. Checkout below two cases, (more…)