Sample code that illustrates different task queue patterns that can be implemented using C++11 primitives.