, DataTable . , . , . , DataRow DataTable.
So, what would I do, get a lock from the manufacturer, add a new line and release the lock. Then in the conumser you will get the same lock, copy the data contained in DataRow, into a separate data structure, and then immediately release the lock. Now you can work with copied data without synchronization mechanisms, since they are isolated. After you have completed the operation on it, you will get the lock again, merge the changes back into DataRow, and then release the lock and start the process again.
source
share