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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


