A method, device and server for orderly control and storage information of lock-free threads
A technology to control storage and storage location, applied in multi-program device, program control design, program synchronization, etc., can solve the problems of reducing concurrency efficiency and increasing additional overhead, and achieve the effect of reducing additional overhead and improving concurrency efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] In some cases, such as the distributed client centrally produces payment orders based on the user's purchase of goods, and sends the payment order to the server, and the server processes each payment order. In order to improve the user's consumption experience, the server needs to store the consumption data in the payment order in a timely manner. Give client feedback. At this time, concurrent lock-free threads storing consumption data will frequently seize shared storage nodes, and storage nodes will also frequently enter and exit from the storage queue. Correspondingly, multi-threaded reading of consumption data in the server will also increase the frequency of entering and exiting queues. In order to consider the integrity of the data structure in the storage queue, adding virtual nodes or additional identifiers will reduce the concurrency efficiency.
[0050] In order to improve the concurrency efficiency of threads in the above situation, such as figure 1 As shown, ...
Embodiment 2
[0088] In some cases, such as distributed client sharing bullet chatting information through communication and interaction with the server, the bullet chatting information produced based on user editing behavior on a client is sent to the server, and the server feeds back the bullet chatting information based on video requests on other clients. The barrage information is shared by distributed clients, and the live video is played centrally on the client. At this time, the server reads the barrage information and inserts the barrage information into the live video. When the interaction between the server and the distributed client is frequent , different barrage information also needs to be continuously inserted into the live video.
[0089] In order to improve the thread concurrency efficiency in the above situation, such as Figure 5 As shown, the present application provides another method for a lock-free thread to control and store information in a circular queue, and the s...
Embodiment 3
[0115] Based on the same idea, Embodiment 2 of the present invention also provides a device for processing resource data, which can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, the device for processing test data of the present invention, as a device in a logical sense, is formed by reading the corresponding computer program instructions in the memory through the CPU equipped with it and then running it.
[0116] In an exemplary embodiment of the present invention, a lock-free thread controls and stores information in a circular queue. The basic operating environment of the device includes CPU, memory and other hardware. From a logical perspective, the logical structure of the device 800 Such as Figure 8 As shown, it includes: an instruction call unit 810 , a state modification unit 820 , a node allocation unit 830 and a cursor update unit 840 .
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com