How To Mutex Across a Network?

后端 未结 6 1431
独厮守ぢ
独厮守ぢ 2021-01-17 18:05

I have a desktop application that runs on a network and every instance connects to the same database.

So, in this situation, how can I implement a mutex that works a

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-17 18:51

    put the code inside a transaction either - in the app, or better -inside a stored procedure, and call the stored procedure. the transaction mechanism will isolate the code between the callers.

提交回复
热议问题