Creates Tasks in a Queue and process task using thread pool