Hi
I want to make an application in
VB.NET and I want this application to work as follows, There will be an array of items on which I want to perform a specific operation (MyTask), with the help of multiple
threads.
for example say the array is holding 50000 items in it, and I want to create maximum 16 threads to do the work, first therad reads the first item from the array and goes to perform the specific operation (MyTask). second thread reads the second item from the array and goes to perform the MyTask. third thread reads the third itm from the array and goes to perform the Mytask.
Now once the first thread completes the MyTask, I want to assign fourth item from the array to the first thread to continue the process
once the second thread completes the MyTask, I want to assign the fifth item from the array to the second thread and so on...
till, all the item from the array is processed.
How can I do this, Any help? Please provide me with the URL if any site have any description about it.