المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Split Data Table Records into several parts and assign to different Threads



C# Programming
02-11-2010, 05:00 PM
Hi,
I would like to use Multi threading to improve the performance. I have a datatable it may have any no of records. But the problems is i have to split those records and assign some records to one thread, some other records to other thread and so on.
I will pass the table,no of threads, records for thread like the following

public void MultiThreadingSample(DataTable table, int noOfThreads,int recordsForThread)
{

}
please help to me.