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
Conversely consider a message queue. As mentioned, the DB should manage all of this for you either in transactions or serial access to tables (ala MyISAM).