I am using threads to create a multi-threaded app ...
I now have a script that creates multiple threads that does same task with obviously different parameters, but i want to limit to 2 threads per task. Wait till it completes & issue 2 more .. & so on.
How can I limit to 2 threads & how to wait for 2 threads to complete...
Thank you.