multithreading - C# WinForm Concurrency with Invoke -


i have ui interacts mssql db. there heartbeat thread inserts/updates data same db within invoke statement.

1) implementation safeguard against db data inconsistency/corruption?

2) invoke efficient/simplest way of creating db serialization between ui thread/heartbeat thread or locks way go?

you should think backgroundworker. abstraction of calling invoke method, handle of cases.


Comments