Distributed mutual exclusion lock method and system based on thread security container
The invention discloses a distributed mutual exclusion lock method and system based on a thread security container. The method comprises the following steps: starting a client; establishing a network TCP long link pool connection business mutual exclusion check service through the native Socket and...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a distributed mutual exclusion lock method and system based on a thread security container. The method comprises the following steps: starting a client; establishing a network TCP long link pool connection business mutual exclusion check service through the native Socket and the thread security container; and the client processes the service through a service processing method. According to the invention, the distributed mutual exclusion lock based on the thread security container is introduced, so that business mutual exclusion among business systems distributed in different cities can be quickly realized; the data consistency can be ensured, and the performance of a service system is optimized. The error rate of business processing can be reduced under the condition that multiple persons operate the same business.
本发明公开一种基于线程安全容器的分布式互斥锁的方法与系统,该方法包括:启动客户端;通过原生Socket和线程安全容器创建网络TCP长链接池连接业务互斥检查服务;客户端通过业务处理方法实现对业务的处理。本发明通过引入基于线程安全容器的分布式互斥锁,能够快速实现分布在不同城市的业务系统间的业务互斥;能够保证数据的一致性,优化业务系统性能。可在多人 |
---|