Using queue and thread objects to achieve target

Queue maintains the tasks to be executed, whereas a list maintains
thread objects which execute the tasks from the queue