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
Sam HobbsPosted Feb 23, 2011, 3:37 PM
Prabhu ChandramouleeswPosted Feb 23, 2011, 2:03 PM
i have a datatable that has 1000 rows. i can use only 5 threads that has to process all 1000 rows. Need a method for this passing (datatable dt)as parameter to the method and iterating through the rows therby processing every cells in the datarow being processed. 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
Would be of great help
Suthish NairPosted Feb 23, 2011, 1:50 PM
Can you explain what you want to do with this kind of logic?
Prabhu ChandramouleeswPosted Feb 23, 2011, 12:52 PM
Sam HobbsPosted Feb 22, 2011, 9:28 PM