Sample Implementation of Threaded Task Queue (Beginners can try out)