There is a dataset that has 1000 rows.
i can use only 5 threads that has to process all 1000 rows. Need a method for this passing datatable as parameter to the method and iterating through the rows.
For instance,
If the first 5rows are processed by the first 5 threads initially,
Then when any one of those 5 thread completes the process the thread is free, it has to process the next available data row in the data table. and this has to continue til 1000 rows are complete.. but ONLY using 5 threads