CN106936828B - Method, device and terminal for adjusting broadcast receiver queue - Google Patents

Method, device and terminal for adjusting broadcast receiver queue Download PDF

Info

Publication number
CN106936828B
CN106936828B CN201710141477.5A CN201710141477A CN106936828B CN 106936828 B CN106936828 B CN 106936828B CN 201710141477 A CN201710141477 A CN 201710141477A CN 106936828 B CN106936828 B CN 106936828B
Authority
CN
China
Prior art keywords
broadcast
messages
broadcast receiver
queue
receiver
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710141477.5A
Other languages
Chinese (zh)
Other versions
CN106936828A (en
Inventor
付亮晶
裴润升
林志泳
吴汝煜
张俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710141477.5A priority Critical patent/CN106936828B/en
Publication of CN106936828A publication Critical patent/CN106936828A/en
Application granted granted Critical
Publication of CN106936828B publication Critical patent/CN106936828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling

Abstract

The embodiment of the invention discloses a method, a device and a terminal for adjusting a broadcast receiver queue, wherein the method comprises the following steps: receiving a target broadcast message sent by a broadcast sender; detecting the number of broadcast messages in a broadcast message queue of a broadcast receiver; adjusting an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages, wherein the broadcast receiver queue is a broadcast receiver queue corresponding to the target broadcast message. The embodiment of the invention can improve the speed and efficiency of processing the broadcast message and improve the stability of the system.

Description

Method, device and terminal for adjusting broadcast receiver queue
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for adjusting a broadcast receiver queue, and a terminal.
Background
Broadcasting in the Android system is a mechanism widely used for transmitting information between applications, and broadcasting in the Android system is used for monitoring system events or application events.
In the Android system, some applications self-start or perform other operations in the background by receiving various broadcasts. When some applications receive broadcasts, the received broadcasts cannot be processed in time due to the fact that the applications may execute some time-consuming operations or the applications are stuck, even some applications can process the broadcasts overtime, subsequent distribution of the broadcasts is affected, and the system is low in power consumption and poor in stability.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and a terminal for queuing broadcast receivers, which can improve the broadcast message processing speed and efficiency, and improve the stability of a system.
In a first aspect, an embodiment of the present invention provides a method for adjusting a broadcast receiver queue, including:
receiving a target broadcast message sent by a broadcast sender;
detecting the number of broadcast messages in a broadcast message queue of a broadcast receiver;
adjusting an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages, wherein the broadcast receiver queue is a broadcast receiver queue corresponding to the target broadcast message.
In a second aspect, an embodiment of the present invention further provides a broadcast receiver queue adjusting apparatus, including:
the receiving module is used for receiving the target broadcast message sent by the broadcast sender;
a detection module for detecting the number of broadcast messages in a broadcast message queue of a broadcast receiver;
an adjusting module, configured to adjust an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages, where the broadcast receiver queue is a broadcast receiver queue corresponding to the target broadcast message.
In a third aspect, this embodiment further provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the following steps:
receiving a target broadcast message sent by a broadcast sender;
detecting the number of broadcast messages in a broadcast message queue of a broadcast receiver;
adjusting an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages, wherein the broadcast receiver queue is a broadcast receiver queue corresponding to the target broadcast message.
According to the technical scheme provided by the embodiment of the invention, the sequence of the broadcast receiver in the broadcast receiver queue is adjusted according to the number of the broadcast messages in the broadcast message queue of the broadcast receiver, so that the speed and the efficiency of processing the broadcast messages can be improved, and the stability of the system can be improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a method for adjusting a broadcast receiver queue according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for adjusting a queue of a broadcast receiver according to an embodiment of the present invention
Fig. 3 is a flowchart of a method for adjusting a broadcast receiver queue according to an embodiment of the present invention;
fig. 4 is a block diagram of a broadcast receiver queue adjusting apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Fig. 1 is a flowchart of a method for adjusting a queue of a broadcast receiver according to an embodiment of the present invention, where the method is performed by a device for adjusting a queue of a broadcast receiver, the device being implemented by software and/or hardware, and the device being configured in a terminal such as a mobile phone. As shown in fig. 1, the technical solution provided by this embodiment is as follows:
and S110, receiving the target broadcast message sent by the broadcast sender.
The processing mechanism of the broadcast message is as follows: the service process of the broadcast sender sends the broadcast message to a broadcast management module (e.g., activity management service) by calling a broadcast sending function (e.g., sendBroadcast function), the broadcast management module receives the broadcast message and then puts it into a broadcast sending queue, and the broadcast management module sends the broadcast message in the broadcast sending queue to the broadcast receiver meeting the receiving condition through a process communication mechanism (e.g., Binder process communication mechanism).
In the broadcast mechanism, a broadcast message refers to information transmitted by a system or an application program during operation and used for transmission between the system and/or the application program, and the broadcast message may be, for example, a system start broadcast message, a short message type broadcast message, a telephone type broadcast message, a three-party application type broadcast message, or the like.
In this embodiment, a target broadcast message sent by a broadcast sender, which may be a system, a system-in application, or a three-party application, is received by a broadcast management module. The number of the target broadcast messages can be one or more, and the target broadcast messages can be system starting broadcast messages, short message broadcast messages, telephone broadcast messages or three-party application broadcast messages and the like.
The number of broadcast messages in the broadcast message queue of the broadcast receiver is detected S120.
In this embodiment, various broadcast messages registered for each broadcast receiver may be received, the broadcast messages received by each broadcast receiver form a broadcast message queue, and the broadcast receivers process the broadcast messages in the order of the broadcast message queue. The processed broadcast message is deleted in the broadcast message queue, so that the broadcast message in the broadcast message queue is a pending broadcast message, that is, the broadcast message in the broadcast message queue of the broadcast receiver is an unprocessed broadcast message.
In this embodiment, the number of broadcast messages in the broadcast message queue of the broadcast receiver is detected, that is, the number of broadcast messages unprocessed by the broadcast receiver is detected. When there are more broadcast messages that the broadcast receiver has not processed, the more time the broadcast receiver needs to wait to process the received targeted broadcast message.
And S130, adjusting the sequence of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages, wherein the broadcast receiver queue is a broadcast receiver queue corresponding to the target broadcast message.
The broadcast receiver queue is a queue formed by broadcast receivers all registered with the target broadcast message.
In the present embodiment, the order of broadcast receivers in the broadcast receiver queue corresponding to the target broadcast message is adjusted based on the number of detected broadcast messages to adjust the order in which the broadcast receivers process the target broadcast message.
Optionally, the adjusting the order of the broadcast receivers in the broadcast receiver queue based on the detected number of the broadcast messages includes: and sequencing the broadcast receivers in a broadcast receiver queue according to the sequence of the number of the broadcast messages in the broadcast message queue from small to large so as to adjust the sequence of the broadcast receivers for processing the target broadcast messages.
Since the broadcast receivers process the distributed target broadcast messages in the order of the broadcast receiver queue, when one broadcast receiver processes the target broadcast message whose distribution is completed, the next broadcast receiver can process the target broadcast message. Therefore, the broadcast receivers are sequenced according to the order of the number of the broadcast messages in the broadcast message queue from small to large, so that the broadcast receivers with less broadcast messages in the broadcast message queue process the target broadcast message first, and the efficiency and the speed of the target broadcast message can be improved.
For example, if the target broadcast message is x, the broadcast receivers registering the target broadcast message x are a and B in sequence, respectively. The number of broadcast messages in the broadcast message queue of a is 5, and the number of broadcast messages in the broadcast message queue of B is 0, that is, a has 5 unprocessed broadcast messages, and B has no unprocessed broadcast messages. When A processes the distributed target broadcast message x, it needs to complete the 5 unprocessed broadcast messages arranged in front of the broadcast message queue to process the target broadcast message x, and only after A processes the target broadcast message x, the target broadcast message x can be distributed to B, and B processes the target broadcast message x. When A processes 5 broadcast messages in the broadcast message queue, since B does not process the broadcast messages, the sequence of A and B can be adjusted, B processes the target broadcast message x first, and then A processes the target broadcast message x, thereby improving the processing speed of the broadcast messages.
On the basis of the above-described embodiment, the order of the broadcast receivers in the broadcast receiver queue is not limited to the above-described method, and may be adjusted by other methods. For example, the order of the broadcast receivers is adjusted by the number of registered broadcast messages. Specifically, according to the order of the number of the registered broadcast messages from small to large, the broadcast receivers are sequenced in the broadcast receiver queue to adjust the order of the broadcast receivers for processing the broadcast messages, and the processing efficiency of the broadcast messages is improved.
In this embodiment, the order of the broadcast receivers in the broadcast receiver queue is adjusted by the number of the broadcast messages in the broadcast message queue of the broadcast receivers, so that the speed and efficiency of processing the broadcast messages can be improved, and the stability of the system can be improved.
Fig. 2 is a flowchart of a method for adjusting a broadcast receiver queue according to an embodiment of the present invention, and optionally, the adjusting an order of the broadcast receiver in the broadcast receiver queue based on the number of the detected broadcast messages includes: and sequencing the broadcast receivers in a broadcast receiver queue according to the sequence of the number of the broadcast messages in the broadcast message queue from small to large so as to adjust the sequence of the broadcast receivers for processing the target broadcast messages.
As shown in fig. 2, the technical solution provided by this embodiment includes:
and S210, receiving the target broadcast message sent by the broadcast sender.
The number of broadcast messages in the broadcast message queue of the broadcast receiver is detected S220.
And S230, when the number of the broadcast messages in the broadcast message queue of the broadcast receiver is the same, adjusting the sequence of the broadcast receiver in the broadcast receiver queue based on the historical average time of processing the broadcast messages in the preset time period of the broadcast receiver.
The broadcast message processed by the broadcast receiver in the preset time period may be the same as the type of the target broadcast message, or may be different from the type of the target broadcast message. The historical average time for the broadcast receiver to process the broadcast message for the preset period of time is calculated based on the time for all broadcast messages processed within the preset period of time of the broadcast receiver.
Specifically, when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same, the broadcast receivers are sorted in the broadcast receiver queue in the order of less to more than the historical average time of processing the broadcast messages within the preset time period to adjust the order in which the broadcast receivers process the target broadcast messages.
For example, if the target broadcast message is y, the broadcast receivers registering the target broadcast message y are respectively C and D in turn, where the broadcast messages in the broadcast message queues of C and D are 2. When the sequence of the broadcast receivers processing the target broadcast message Y is determined, the historical average time of processing the broadcast messages by C and D in the preset time period is judged because the number of the broadcast messages in the broadcast message queues of C and D is 2. If the broadcast messages processed by the C within the preset time period are x, y and z respectively, calculating the historical average time of processing 3 broadcast messages by the C, wherein the historical average time is 10 s; d, processing the broadcast messages within a preset time period into x, y, k and w respectively, and calculating the historical average time of processing 4 broadcast messages by D to be 8.5 s. Since D has a smaller historical average time, i.e., D has a faster processing speed, D is adjusted before C so that D processes the target broadcast message y first.
Therefore, when the number of the broadcast messages in the message queue of the broadcast receiver is the same, the sequence of the broadcast receiver is adjusted based on the historical average time of processing the broadcast messages in the preset time period of the broadcast receiver, so that the processing efficiency of the broadcast messages can be improved, and the stability of the system can be ensured.
On the basis of the above-mentioned embodiment, for the historical average time of processing the broadcast messages based on the preset time period of the broadcast receiver, adjusting the order of the broadcast receiver in the broadcast receiver queue may also be another limiting condition of the number of broadcast messages in the broadcast message queue, for example, the difference between the number of broadcast messages in the broadcast receiver's broadcast message queue is smaller than the set value.
Fig. 3 is a flowchart of a method for adjusting a broadcast receiver queue according to an embodiment of the present invention, where optionally, the adjusting an order of the broadcast receiver in the broadcast receiver queue based on the number of the detected broadcast messages includes: when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same, adjusting the order of the broadcast receiver in the broadcast receiver queue based on the historical average time of processing broadcast messages within the broadcast receiver preset time period.
As shown in fig. 3, the technical solution provided by this embodiment includes:
and S310, receiving the target broadcast message sent by the broadcast sender.
The number of broadcast messages in the broadcast message queue of the broadcast receiver is detected S320.
S330: when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same, adjusting the order of the broadcast receiver in the broadcast receiver queue based on the type of the target broadcast message.
Optionally, the adjusting the order of the broadcast receivers in the broadcast receiver queue based on the type of the target broadcast message includes: adjusting an order of the broadcast receiver in the broadcast receiver queue based on the type of the target broadcast message and a historical average time that the broadcast receiver processes the broadcast message of the same type as the target broadcast message within a preset time period.
Specifically, when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same, based on the type of the target broadcast message, the broadcast message with the same type as the target broadcast message is selected from the broadcast messages processed in the preset time period of the broadcast receiver, the processing time and the number of the selected broadcast messages are acquired, and the historical average time is calculated. The broadcast receivers are sorted in order of the historical average time from as little as much.
For example, if the target broadcast messages are x1 and x2, respectively, and the target broadcast messages x1 and x2 are ordered in sequence, the broadcast receivers registered with the target broadcast messages x1 and x2 are E and F, respectively. Wherein, the broadcast messages in the broadcast message queues of E and F are 2. When determining the precedence order of the broadcast receivers processing the target broadcast message, the target broadcast message x1 is distributed first because the broadcast messages in the broadcast message queues of E and F are 2 and the target broadcast message x1 precedes the target broadcast message x 2. When the target broadcast message x1 is detected, the historical average times of processing the target broadcast message x1 within a preset time period of the broadcast receiver E, F are respectively acquired. If the historical average time of processing the target broadcast message x1 in the E preset time period is 8s, and the historical average time of processing the target broadcast message x1 in the F preset time period is 9s, in the broadcast receiver queue, E is adjusted to be before F. When the target broadcast message x1 is detected, the target broadcast message x1 may be distributed, or the target broadcast message x1 may be before distributed. When the target broadcast message x2 is detected, if the historical average time of processing the target broadcast message x2 within the preset time period of E is 10s, and the historical average time of processing the target broadcast message x2 within the preset time period of F is 7s, in the broadcast receiver queue, F is adjusted to be before E, so that F processes the target broadcast message x2 first. It can be seen that when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same, the order of the broadcast receiver in the broadcast receiver queue may also be different due to the different types of target broadcast messages.
It should be noted that the type of the target broadcast message in the present embodiment may be understood as a parameter for distinguishing different broadcast messages. Thus, when the broadcast messages are different, it can be understood that the types of the broadcast messages are also different.
Therefore, when the number of the broadcast messages in the broadcast message queue of the broadcast receiver is the same, the sequence of the broadcast receiver in the broadcast receiver queue is adjusted based on the type of the target broadcast message, so that the speed and efficiency of the broadcast receiver for processing the broadcast message can be improved, and the stability of the system can be improved.
On the basis of the above embodiment, the order of the broadcast receiver in the broadcast receiver queue is adjusted based on the type of the target broadcast message, and may also be another limitation condition of the number of broadcast messages in the broadcast message queue, for example, the difference between the numbers of broadcast messages in the broadcast message queue of the broadcast receiver is smaller than a preset value.
Fig. 4 is a block diagram illustrating a structure of a broadcast receiver queue adjusting apparatus according to an embodiment of the present invention, and the apparatus includes a receiving module 410, a detecting module 420, and an adjusting module 430, as shown in fig. 4.
A receiving module 410, configured to receive a target broadcast message sent by a broadcast sender;
a detecting module 420 for detecting the number of broadcast messages in the broadcast message queue of the broadcast receiver;
an adjusting module 430, configured to adjust an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages, where the broadcast receiver queue is a broadcast receiver queue corresponding to the target broadcast message.
Further, the adjusting module 430 is configured to sort the broadcast receivers in the broadcast receiver queue according to an order from a small number to a large number of broadcast messages in the broadcast message queue, so as to adjust an order in which the broadcast receivers process the target broadcast message.
Further, the adjusting module 430 is configured to adjust the order of the broadcast receiver in the broadcast receiver queue based on the historical average time of processing broadcast messages within the preset time period of the broadcast receiver when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same.
Further, the adjusting module 430 is configured to adjust the order of the broadcast receiver in the broadcast receiver queue based on the detected type of the current target broadcast message when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same.
Further, the adjusting the order of the broadcast receiver in the broadcast receiver queue based on the type of the target broadcast message includes:
adjusting an order of the broadcast receivers in the broadcast receiver queue based on a type of a target broadcast message and a historical average time that the broadcast receivers process broadcast messages of the same type as the target broadcast message within a preset time period.
The broadcast receiver queue adjusting device provided by the embodiment adjusts the sequence of the broadcast receivers in the broadcast receiver queue by the number of the broadcast messages in the broadcast message queue of the broadcast receivers, so that the speed and the efficiency of broadcast message processing can be improved, and the stability of a system can be improved.
The embodiment of the invention provides a terminal, and the terminal can be integrated with the broadcast receiver queue adjusting device provided by the embodiment of the invention. Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 5, the terminal may include: a memory 501, a Central Processing Unit (CPU) 502 (also called a processor, hereinafter referred to as CPU), a touch screen 512, and a computer program stored in the memory and running on the processor. The touch screen 512 is used for converting user operation into an electric signal, inputting the electric signal to the processor and displaying a visual output signal; the processor 502, when executing the computer program, performs the following steps: receiving a target broadcast message sent by a broadcast sender; detecting the number of broadcast messages in a broadcast message queue of a broadcast receiver; adjusting an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages, wherein the broadcast receiver queue is a broadcast receiver queue corresponding to the target broadcast message.
The terminal further comprises: peripheral interface 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, power management chip 508, input/output (I/O) subsystem 509, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.
It should be understood that the illustrated terminal 500 is only one example of a terminal, and that the terminal 500 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the terminal integrated with the broadcast receiver queue adjusting apparatus provided in this embodiment, and the terminal is taken as a mobile phone as an example.
A memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
The terminal provided in this embodiment is used to execute the method for adjusting a broadcast receiver queue described in the above embodiments, and the technical principle and the generated technical effect are similar, which are not described herein again.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A broadcast receiver queue adjustment method, comprising:
receiving a target broadcast message sent by a broadcast sender;
detecting the number of broadcast messages in a broadcast message queue of a broadcast receiver;
adjusting an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages;
or adjusting an order of broadcast receivers in the broadcast receiver queue based on the number of registered broadcast messages;
wherein the broadcast receiver queue is a broadcast receiver queue corresponding to the target broadcast message; the broadcast receivers process the distributed target broadcast messages according to the sequence of the broadcast receiver queues, and when one broadcast receiver processes the distributed target broadcast messages, the next broadcast receiver can process the target broadcast messages;
the adjusting an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages includes:
sequencing the broadcast receivers in a broadcast receiver queue according to the sequence of the number of the broadcast messages in the broadcast message queue from less to more so as to adjust the sequence of the broadcast receivers for processing the target broadcast messages;
or when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same, adjusting the order of the broadcast receiver in the broadcast receiver queue based on the type of the target broadcast message.
2. The method of claim 1,
the adjusting an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages includes:
when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same, adjusting the order of the broadcast receiver in the broadcast receiver queue based on the historical average time of processing broadcast messages within the broadcast receiver preset time period.
3. The method of claim 1, wherein the adjusting the order of the broadcast receivers in a broadcast receiver queue based on the type of the target broadcast message comprises:
adjusting an order of the broadcast receiver in the broadcast receiver queue based on the type of the target broadcast message and a historical average time that the broadcast receiver processes the broadcast message of the same type as the target broadcast message within a preset time period.
4. A broadcast receiver queue adjusting apparatus, comprising:
the receiving module is used for receiving the target broadcast message sent by the broadcast sender;
a detection module for detecting the number of broadcast messages in a broadcast message queue of a broadcast receiver;
an adjusting module for adjusting an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages or adjusting an order of the broadcast receivers in the broadcast receiver queue based on the registered number of the broadcast messages;
wherein the broadcast receiver queue is a broadcast receiver queue corresponding to the target broadcast message; the broadcast receivers process the distributed target broadcast messages according to the sequence of the broadcast receiver queues, and when one broadcast receiver processes the distributed target broadcast messages, the next broadcast receiver can process the target broadcast messages;
the adjusting module is configured to sort the broadcast receivers in the broadcast receiver queue according to an order of the number of broadcast messages in the broadcast message queue from a small number to a large number, so as to adjust an order in which the broadcast receivers process the target broadcast message, or
When the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same, adjusting the order of the broadcast receiver in the broadcast receiver queue based on the type of the target broadcast message.
5. The apparatus of claim 4,
the adjusting module is configured to adjust an order of the broadcast receiver in the broadcast receiver queue based on a historical average time of processing broadcast messages within a preset time period of the broadcast receiver when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same.
6. The apparatus of claim 4, wherein the adjusting the order of the broadcast receiver in a broadcast receiver queue based on the type of the target broadcast message comprises:
adjusting an order of the broadcast receiver in the broadcast receiver queue based on the type of the target broadcast message and a historical average time that the broadcast receiver processes the broadcast message of the same type as the target broadcast message within a preset time period.
7. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of:
receiving a target broadcast message sent by a broadcast sender;
detecting the number of broadcast messages in a broadcast message queue of a broadcast receiver;
adjusting an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages;
or adjusting an order of broadcast receivers in the broadcast receiver queue based on the number of registered broadcast messages; wherein the broadcast receiver queue is a broadcast receiver queue corresponding to the target broadcast message; the broadcast receivers process the distributed target broadcast messages according to the sequence of the broadcast receiver queues, and when one broadcast receiver processes the distributed target broadcast messages, the next broadcast receiver can process the target broadcast messages;
the adjusting an order of the broadcast receivers in a broadcast receiver queue based on the detected number of the broadcast messages includes:
sequencing the broadcast receivers in a broadcast receiver queue according to the sequence of the number of the broadcast messages in the broadcast message queue from less to more so as to adjust the sequence of the broadcast receivers for processing the target broadcast messages;
or when the number of broadcast messages in the broadcast message queue of the broadcast receiver is the same, adjusting the order of the broadcast receiver in the broadcast receiver queue based on the type of the target broadcast message.
CN201710141477.5A 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast receiver queue Active CN106936828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710141477.5A CN106936828B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast receiver queue

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710141477.5A CN106936828B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast receiver queue

Publications (2)

Publication Number Publication Date
CN106936828A CN106936828A (en) 2017-07-07
CN106936828B true CN106936828B (en) 2020-01-14

Family

ID=59433121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710141477.5A Active CN106936828B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast receiver queue

Country Status (1)

Country Link
CN (1) CN106936828B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039931B (en) * 2019-06-03 2023-04-28 本无链科技(深圳)有限公司 Elastic broadcasting method and system for P2P network
CN112447040B (en) * 2019-08-27 2022-04-08 北京地平线机器人技术研发有限公司 Queue order detection method and device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8819249B2 (en) * 2008-11-26 2014-08-26 Free Stream Media Corp. Automated discovery and switch of a primary output display from a first display of a mobile device to a second display of a networked media device through an operating system of the mobile device
CN104834506A (en) * 2015-05-15 2015-08-12 北京北信源软件股份有限公司 Method for processing business application through multiple threads
CN105306383A (en) * 2014-06-10 2016-02-03 腾讯科技(深圳)有限公司 Message push method, terminal and push server
CN105357648A (en) * 2015-10-10 2016-02-24 上海斐讯数据通信技术有限公司 Method and Android system for sending broadcast message to application program
CN106412091A (en) * 2016-10-25 2017-02-15 广东欧珀移动通信有限公司 Method, device and system for controlling data transmission

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8819249B2 (en) * 2008-11-26 2014-08-26 Free Stream Media Corp. Automated discovery and switch of a primary output display from a first display of a mobile device to a second display of a networked media device through an operating system of the mobile device
CN105306383A (en) * 2014-06-10 2016-02-03 腾讯科技(深圳)有限公司 Message push method, terminal and push server
CN104834506A (en) * 2015-05-15 2015-08-12 北京北信源软件股份有限公司 Method for processing business application through multiple threads
CN105357648A (en) * 2015-10-10 2016-02-24 上海斐讯数据通信技术有限公司 Method and Android system for sending broadcast message to application program
CN106412091A (en) * 2016-10-25 2017-02-15 广东欧珀移动通信有限公司 Method, device and system for controlling data transmission

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Android中的消息传递,详解广播机制;jeromexiong;《https://blog.csdn.net/jeromexiong/article/details/54375259》;20170112;第1-5页 *

Also Published As

Publication number Publication date
CN106936828A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
US10819455B2 (en) Broadcast processing method, non-transitory storage medium, and electronic device
CN106919459B (en) Management method, device and terminal for broadcast receiver
CN106851014B (en) Method, device and terminal for adjusting broadcast message queue
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN106936825B (en) Method and device for controlling broadcast transmission and mobile terminal
CN106936827B (en) A kind of broadcast recipients' queue regulation method, device and terminal
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
US11051272B2 (en) Method for arranging broadcast message in operating system and electronic device
WO2018161956A1 (en) Broadcast recipient adjustment method, device, and terminal
CN106844069A (en) Adjust method, device and the terminal of broadcast message queue
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
WO2018161966A1 (en) Broadcast sending method, device, terminal and storage medium
WO2018161607A1 (en) Broadcasting control method and apparatus, and mobile terminal and storage medium
US10990460B2 (en) Method of generating broadcast queue, storage medium, and terminal
CN106936828B (en) Method, device and terminal for adjusting broadcast receiver queue
CN106844070B (en) Broadcast control method and device and mobile terminal
CN106791090B (en) Mobile terminal restart control method and device and mobile terminal
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
US20180262358A1 (en) Method for monitoring broadcast message and terminal
CN106851594B (en) A kind of broadcast transmission method, apparatus and terminal
CN106850458A (en) Broadcast the message method, device and the terminal queued up
CN106919461B (en) Method and device for adjusting broadcast receiver queue and terminal equipment
CN106936996B (en) Method, device and terminal for sending shutdown broadcast
CN106933685B (en) A kind of management method of broadcast recipients, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant