Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DataTable internals and multithreaded usage

I would like to know if there is great book or website that discusses in great detail how to use DataTable in a multithreaded way. It should discusses in great detail how it behave upon add, get, update and deletion of rows. It should also discuss the proper way of using locks, acceptchanges and other important details.

like image 266
yoitsfrancis Avatar asked Apr 17 '26 02:04

yoitsfrancis


1 Answers

DataTables aren't special: just reading from a DataTable instance is thread-safe (as it says in the documentation), but if you change any aspect of an instance you have to make sure that you synchronize access to it.

Instead of looking for something specific to multithreading data tables, you should read about threading in general. For that, you can't go wrong with Joseph Albahari's Threading in C#.

(Having said that, take a look at this discussion thread on a related topic.)

like image 60
Jeff Sternal Avatar answered Apr 19 '26 17:04

Jeff Sternal