Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
In my application i will be used the one thread for inserting the the array value to the datatable after ending the inserting into the datatable start one thread for insert this datatable into the the MYSQL database. In the first thread the datatable rows are variable in length.
consider e.g 1st datatable contains 12 rows
2nd contains 1000 rows
3rd contains 700 rows
in the updating the database i will be used the dataadapter.update(datatable)
these all threads stop at this lines when first release fast then third release then second release.but i want release these in the number wise & also increased the performance for updating the database.this process will be worked slowly.
any one known the solution for increased the performance for writing the data into the
MYSQL database then tell me.
yanks in advance.
Posted

1 solution

I did not get what you want exactly.... but if matter is related to thread and performance then you should use BackGroundWorkder Component(control) or you can use one class AutoResetEvent to execute your thread in related sequence...

Link1[^]
Link2[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900