Unlock instant, AI-driven research and patent intelligence for your innovation.

Multi-thread bullet chat message distribution method, device, equipment and storage medium

A message distribution and multi-threading technology, which is applied in the field of information communication, can solve the problems of low distribution efficiency of the bullet screen distribution module and reduce the timeliness of bullet screen message distribution, so as to improve the distribution efficiency and timeliness of distribution, improve the distribution efficiency, reduce the The effect of blocking degree

Active Publication Date: 2021-04-27
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the existing bullet chatting message distribution mode is that the bullet chatting distribution module obtains the cached bullet chatting messages one by one from the message cache collection and distributes them one by one according to the order in which the bullet chatting server sends the bullet chatting messages, which will cause the bullet chatting distribution The distribution efficiency of modules is low, which reduces the timeliness of the distribution of barrage messages

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-thread bullet chat message distribution method, device, equipment and storage medium
  • Multi-thread bullet chat message distribution method, device, equipment and storage medium
  • Multi-thread bullet chat message distribution method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] The method for distributing multi-threaded barrage messages provided by this embodiment is applicable to the distribution of barrage messages in audio and video playback / live broadcast application software in the Android client, and is especially suitable for the large number of barrage messages and one barrage message The case where only one bullet chat receiving object is sent. The method can be performed by a multithreaded barrage message distribution device, which can be implemented in software and / or hardware, and can be integrated in a device with a barrage message distribution function carrying an Android system, such as a typical User terminal equipment, such as mobile phones, tablet computers, or smart TVs. see figure 1 , the method of this embodiment specifically includes the following steps:

[0027] S110. When the multi-thread bullet chat distribution condition is met, determine the current concurrent number of bullet chat messages according to the current...

Embodiment 2

[0046] On the basis of the first embodiment above, this embodiment further optimizes "satisfying the multi-thread barrage distribution condition". On this basis, it is possible to further optimize "determining the current concurrent number of barrage messages based on the current system state parameter value". On the basis of the above, the "barrage message distribution mechanism" can be further optimized. The explanations of terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated here. see figure 2 , the multi-threaded barrage message distribution method provided in this embodiment includes:

[0047] S210. When the current timing period of the concurrent message timer arrives, determine the current concurrent number according to the current CPU usage according to the following formula:

[0048] ParaNum=10-(int)(CpuOcRate*100 / 10)

[0049] Among them, ParaNum is the current concurrent number, int is the rounding keyword, and CpuO...

Embodiment 3

[0074] This embodiment provides a multi-thread barrage message distribution device, see image 3 , the device specifically includes:

[0075] The current concurrent quantity determination module 310 is used to determine the current concurrent quantity of the bullet chat message according to the current system state parameter value when the multi-thread bullet chat distribution condition is satisfied;

[0076] The target thread determination module 320 is used to obtain the target barrage message of the current concurrent quantity from the message collection, and determine the target thread of the current concurrent quantity;

[0077] The barrage message distributing module 330 is configured to use each target thread to distribute barrage messages of each target in parallel based on a barrage message distribution mechanism.

[0078] Optionally, satisfying the multi-thread barrage distribution condition includes: the current timing period of the message concurrency timer arrive...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a method, device, equipment and storage medium for distributing multi-threaded barrage messages. The method includes: when the multi-threaded barrage distribution condition is met, determining the current concurrent number of barrage messages according to the current system state parameter value; obtaining the target barrage messages of the current concurrent number from the message set, and determining the current number of barrage messages A concurrent number of target threads; use each of the target threads to distribute each of the target barrage messages in parallel based on the barrage message distribution mechanism. Through the above technical solution, the efficient distribution of bullet chat messages is realized, and the timeliness of distribution of bullet chat messages is improved.

Description

technical field [0001] Embodiments of the present invention relate to information communication technology, and in particular to a method, device, device and storage medium for distributing multi-threaded barrage messages. Background technique [0002] Barrage messages are widely used in audio and video playback / live broadcast applications. Usually, the barrage message is sent to the application software by the server that transmits and processes the barrage message (ie, the barrage server), and then the barrage distribution module in the application software with the function of distributing the barrage message distributes the received barrage message to Each barrage receiving module that needs to receive barrage messages. [0003] When the number of bullet chat messages sent by the bullet chat server is large, and the bullet chat distribution module cannot distribute the bullet chat messages in time, a message collection is usually established in the bullet chat distribut...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N21/4788H04N21/435
CPCH04N21/435H04N21/4788
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD