If anyone is watching this later on, I figured out the issues, I have posted the updated code on that repo itself.
The earlier code worked fine if each node had significant work to do, but I also improved the time in cases where it didn’t ( using master-slave threads ). In the earlier approach the threads were equal entities. ( Except the manager thread )