I want to create an application which will create(dynamically) n number of threads for a set of tasks .
When one thread finishes its task it will get on to next queued up task.
Something like this:
thread1(task1)
thread2(task2)
thread3(task3)
if thread1 finishes first then it will proceed with the next task
thread1(task2)
or another thread will be created for that purpose.