Writing custom iterators in C++ for use in std::unique

Background std::unique accepts an forward iterator and rearranges the items in the corresponding container in such a way that, the items from the start ( as given by the begin iterator, which was passed to the function ) to the iterator returned from std::unique, are unique and will contain no duplicates. It can optionally accept… Continue reading Writing custom iterators in C++ for use in std::unique

Chaining Parallel Processes on a dependency graph using Bash

Linux , or for this matter, any modern OS allows parallel processing/ multiprocessing. But what if the parallel processes depend on each other. It may be a data dependency as in, the second and third processes is dependent on the first for data. But once the data is ready, second and the third processes can… Continue reading Chaining Parallel Processes on a dependency graph using Bash