Data transmission processing method and device, electronic equipment and storage medium
The invention provides a data transmission processing method and device, electronic equipment and a storage medium. The method comprises the steps that when a write thread calls a message sending interface, whether a thread local variable of the message sending interface is a first preset value is j...
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 provides a data transmission processing method and device, electronic equipment and a storage medium. The method comprises the steps that when a write thread calls a message sending interface, whether a thread local variable of the message sending interface is a first preset value is judged; when the thread local variable is a first preset value, to-be-transmitted data are written into a target first annular queue in a queue pool through a writing thread, the first preset value represents that connection between the target first annular queue and the writing thread and connection between the target first annular queue and the reading thread are established, and the queue pool is preset in a shared memory of the electronic equipment; and the target first annular queue is a lock-free queue. The first annular queue is not locked, so that the locking and unlocking time can be saved, and the data writing and reading output efficiency can be improved.
本申请提供一种数据传输处理方法、装置、电子设备及存储介质。方法包括:在写线程调用消息发送接口时,判断 |
---|