WO2018161956A1 - Broadcast recipient adjustment method, device, and terminal - Google Patents

Broadcast recipient adjustment method, device, and terminal Download PDF

Info

Publication number
WO2018161956A1
WO2018161956A1 PCT/CN2018/078563 CN2018078563W WO2018161956A1 WO 2018161956 A1 WO2018161956 A1 WO 2018161956A1 CN 2018078563 W CN2018078563 W CN 2018078563W WO 2018161956 A1 WO2018161956 A1 WO 2018161956A1
Authority
WO
WIPO (PCT)
Prior art keywords
broadcast
historical
broadcast receiver
recipient
level
Prior art date
Application number
PCT/CN2018/078563
Other languages
French (fr)
Chinese (zh)
Inventor
付亮晶
裴润升
林志泳
吴汝煜
张俊
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018161956A1 publication Critical patent/WO2018161956A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services

Definitions

  • the present disclosure relates to the field of terminal technologies, for example, to a method, an apparatus, and a terminal for adjusting a broadcast receiver.
  • Broadcasting in Android is a widely used mechanism for transferring information between applications. Broadcasting in Android is used to monitor system events or application events.
  • some applications perform self-starting or other operations in the background by receiving various broadcast messages.
  • the application itself may be performing some time-consuming operations or the application itself may be stuck, resulting in the received broadcast messages being unable to be processed in time, and even some applications may time-out processing the broadcast messages, affecting Subsequent distribution of broadcast messages makes the system less stable.
  • the embodiment of the present invention provides a method, a device, and a terminal for adjusting a broadcast receiver, which can improve the processing efficiency of the broadcast message and ensure system stability.
  • An embodiment of the present application provides a method for adjusting a broadcast receiver, including:
  • the broadcast recipient is adjusted based on the ranked level.
  • the embodiment of the present application further provides an apparatus for adjusting a broadcast receiver, including:
  • the obtaining module is configured to: obtain a historical parameter of the broadcast receiver processing the broadcast message or a type of the broadcast receiver;
  • a dividing module configured to: classify the broadcast receiver according to the acquired historical parameter or the type
  • the adjustment module is configured to: adjust the broadcast recipient based on the grade of the division.
  • the embodiment of the present application further provides a terminal, including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the following steps:
  • the broadcast recipient is adjusted based on the ranked level.
  • the embodiment of the present application further provides a computer readable storage medium storing computer executable instructions for performing the above method.
  • the technical solution provided by the embodiment of the present application can classify the broadcast receiver by the broadcast receiver processing the historical parameter of the broadcast message or the type of the broadcast receiver, and adjust the broadcast receiver according to the level, thereby improving the processing efficiency of the broadcast message. Guarantee system stability.
  • FIG. 1 is a flowchart of a method for adjusting a broadcast receiver according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for adjusting a broadcast receiver according to another embodiment of the present application
  • FIG. 3 is a flowchart of a method for adjusting a broadcast receiver according to another embodiment of the present application.
  • FIG. 4 is a flowchart of a method for adjusting a broadcast receiver according to another embodiment of the present application.
  • FIG. 5 is a flowchart of a method for adjusting a broadcast receiver according to another embodiment of the present application.
  • FIG. 6 is a structural block diagram of an apparatus for adjusting a broadcast receiver according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 1 is a flowchart of a method for adjusting a broadcast recipient according to an embodiment of the present application, where the method is performed by an adjustment device of a broadcast recipient, the device being executed by software and/or hardware, the device Configured in a terminal such as a mobile phone.
  • the technical solution provided in this embodiment includes:
  • Step S110 Acquire a history parameter of the broadcast receiver processing the broadcast message or a type of the broadcast recipient.
  • the broadcast sender's service process sends a broadcast message to the broadcast management module (such as ActivityManagerService, activity management service) by calling a broadcast send function (such as the sendBroadcast function), and the broadcast management module receives the broadcast message and then Put into the broadcast transmission queue, the broadcast management module sends the broadcast message in the broadcast transmission queue to the broadcast receiver that meets the reception condition through the process communication mechanism (such as the Binder process communication mechanism).
  • the broadcast management module such as ActivityManagerService, activity management service
  • the broadcast management module receives the broadcast message and then Put into the broadcast transmission queue
  • the broadcast management module sends the broadcast message in the broadcast transmission queue to the broadcast receiver that meets the reception condition through the process communication mechanism (such as the Binder process communication mechanism).
  • a broadcast message refers to information transmitted by a system or an application during operation and used for transmission between a system and/or an application.
  • a broadcast message may be a system startup broadcast message, a short message type.
  • Broadcast messages telephony-like broadcast messages, or three-party application-type broadcast messages.
  • the historical parameters of the broadcast receiver processing the broadcast message include a historical average time for processing the broadcast message, a historical timeout for processing the broadcast message, a historical timeout for processing the broadcast message, a history timeout for processing the broadcast message accumulation, or processing A dynamic time threshold corresponding to the broadcast message, wherein the dynamic time threshold is used to determine whether the processing of the broadcast message is timed out.
  • the history parameter of the broadcast reception processing broadcast message is not limited to the above parameter form.
  • the historical average time that the broadcast receiver processes the broadcast message may be a historical average time that the broadcast receiver processes the broadcast message within a preset time period, or may also be that the broadcast receiver processes the broadcast message within a preset number of times. The historical average time.
  • the broadcast receiver can process one broadcast message or multiple broadcast messages.
  • the preset time period is set to enable the broadcast receiver. Process multiple broadcast messages. The time at which the broadcast receiver processes each broadcast message is acquired within a preset time period.
  • the historical timeout period of the broadcast receiver processing the broadcast message may be a historical timeout period of the broadcast receiver processing the broadcast message within a preset time period or a preset number of times.
  • the historical timeout period is a time when the broadcast receiver processes the broadcast message within a preset time period or a preset number of times exceeds a set time threshold, and the set time threshold may be fixed or may be fixed. It changes with the number of timeouts.
  • the accumulated historical timeout period is the time at which each time exceeds a set time threshold is added and summed.
  • the dynamic time threshold refers to determining that the broadcast receiver processes the broadcast message timeout if the broadcast receiver processes the broadcast message for a time greater than the dynamic time threshold.
  • the dynamic time threshold is determined based on an initial set value, a historical timeout number, and a time increase value, wherein the time increase value is an increase amount of the dynamic time threshold for each set number of timeouts.
  • the types of broadcast recipients include systems, system applications, and three-party applications.
  • the type of the broadcast receiver may also be other types of type division.
  • Step S120 classify the broadcast receiver based on the acquired historical parameter or the type.
  • classifying the broadcast recipient based on the acquired historical parameter may include: classifying a broadcast recipient based on the acquired historical average time, a historical timeout number, a dynamic time threshold, or an accumulated historical timeout period. .
  • the level of the broadcast recipient may be one level, two level, and three levels, or may also be a fast level, a medium speed level, and a slow speed level.
  • a description will be given by taking the broadcast recipient classification level according to the accumulated historical timeout period as an example, and configuring a range of timeout times for processing the broadcast message corresponding to the level of the broadcast recipient.
  • the maximum value in the accumulated timeout period range of the processing broadcast message corresponding to the third level is smaller than the minimum value in the accumulated timeout time range of the processing broadcast message corresponding to the second level.
  • the maximum value in the timeout period range of the secondary processing corresponding broadcast message is smaller than the minimum value in the timeout time range of processing the broadcast message corresponding to the first level. In other words, the higher the level, the shorter the accumulated history timeout.
  • the level of the broadcast recipient may also be other forms, and the level of the broadcast recipient is not limited to the above three levels, and may be four and other number of levels, which may be set as needed.
  • Step S130 Adjust the broadcast recipient based on the grade of the division.
  • Adjusting the broadcast recipient based on the ranked level may include: adjusting the order of the broadcast recipients in the broadcast recipient queue based on the ranked level; or may also include creating a broadcast recipient queue corresponding to the level based on the divided levels, and The broadcast recipient moves to the corresponding broadcast receiver queue.
  • the broadcast receiver processes the broadcast message in the order of the broadcast receiver queue.
  • the broadcast recipients that register the screencast broadcast message are the video application and the music application, and the order in which the screencast broadcast messages are processed is, in order, the video application and the music application.
  • the video application and the music application process the screencast broadcast messages in the order of the queues.
  • adjusting the order of the broadcast recipients in the broadcast receiver queue based on the level of the division may include: sequentially ordering the broadcast recipients in the broadcast receiver queue according to the ranked ranks from highest to lowest, Adjust the order in which broadcast recipients process broadcast messages.
  • the ranks are ranked from high to low in order of fast, medium, and slow; or one, two, and three.
  • the broadcast recipients who have registered the broadcast message respectively have A, B, and C, wherein the grade of the divided A is a slow grade, the grade of the divided B is a fast grade, and the grade of the divided C is a medium speed grade.
  • the three broadcast receivers A, B, and C are sorted according to the rank from high to low, and the order of the order is B, C, and A, so that the B with the faster processing speed processes the broadcast message first, and C and A respectively process the messages in turn. Broadcast message.
  • the broadcast receiver having a slow processing speed on the broadcast receiver having a faster processing speed and to improve the processing efficiency of the broadcast message.
  • the method for adjusting the broadcast receiver further includes: in the case that the number of broadcast receivers of the same level is greater than one, according to the order of the broadcast receivers in the broadcast receiver queue before the adjustment Sort broadcast receivers of the same level.
  • broadcast recipients who have registered the same broadcast message have a, b, c, and d, respectively, where the levels of b and d are both fast levels, the level of a is a slow level, and the level of c is a medium speed level.
  • the order of the broadcast recipients in the broadcast receiver queue is adjusted according to the level from high to low.
  • the order after the adjustment is b, d before c, a, and c before a.
  • b and d are the same level
  • b and d are sorted
  • b and d are sorted according to the order in which the b and d are in the broadcast receiver queue before the adjustment.
  • the order of the broadcast recipients handling the broadcast message is b, d, c, a.
  • the ordering of the broadcast receivers of the same level may also adopt other sorting manners, and is not limited to the above manner.
  • a broadcast receiver queue corresponding to the rank is created based on the grade of the division, and the broadcast receiver is moved to the corresponding broadcast receiver queue, which can be understood as the broadcast receiver in each broadcast receiver queue.
  • the ranks are the same, and the number of broadcast receiver queues is determined by the grade of the division.
  • the classified levels are a fast level, a medium speed level, and a slow speed level, and three broadcast receiver queues respectively corresponding to the fast level, the medium speed level, and the slow speed level are created, and the broadcast receiver is moved to the corresponding broadcast reception. In the queue.
  • the broadcast receiver is classified by the broadcast receiver to process the historical parameters of the broadcast message or the type of the broadcast receiver, and the broadcast receiver is adjusted according to the level, thereby improving the efficiency of processing the broadcast message and ensuring system stability.
  • a historical parameter includes a historical average time, and the historical parameter based on the acquisition divides the broadcast receiver.
  • a level comprising: classifying the broadcast recipient based on the obtained historical average time; and adjusting the broadcast recipient based on the divided level, comprising: adjusting a broadcast recipient based on the divided level to a broadcast recipient The order in the queue.
  • Step S210 Acquire a historical average time for the broadcast receiver to process the broadcast message.
  • the number of broadcast messages processed by each broadcast recipient may or may not be the same.
  • the types of broadcast messages processed by each broadcast receiver may or may not be the same.
  • the processed broadcast message type may not be considered, and the historical average time is calculated based on all of the times of the broadcast messages processed by the broadcast recipient.
  • the historical average time in the preset time period is calculated as an example.
  • the three broadcast receivers in the terminal are respectively A, B, and C. If A processes 5 broadcast messages in a preset time period, 5 broadcast messages are a1, a2, a3, a4, and a5, respectively, and the time for processing 5 broadcast messages is 8s, 7s, 9s, 8s, 10s, respectively.
  • B processes 3 broadcast messages within a preset time period the three broadcast messages are a1, a2, b1, and B processes 3 broadcast messages at 5s, 6s, and 8s, respectively.
  • C processes 3 broadcast messages within a preset time period 3 broadcast messages are a1, a2, and c1, respectively, and C processes 3 broadcast messages at 7s, 6s, and 8s, respectively.
  • the types of broadcast messages processed by the three broadcast receivers A, B, and C are not exactly the same, and three broadcast receivers A, B, and C are processed to process broadcast messages within a preset time period.
  • the three broadcast receivers based on A, B, and C can process all the time in each broadcast message regardless of the type of the broadcast message, and calculate the historical average time of processing the broadcast message.
  • the type of broadcast message can also be considered when calculating the historical average time that a broadcast recipient processes a broadcast message. Therefore, in an embodiment, in a case where each broadcast receiver has the same type of processed broadcast messages, the calculation of the historical average time may be: calculating the pre-determination based on the time when each broadcast recipient processes the broadcast message. Let the broadcast receiver process the historical average time of the same type of broadcast message within the time period.
  • the same type of broadcast messages processed by the three broadcast receivers A, B, and C in the preset time period are a1 and a2, respectively, and the historical average time is calculated based on the times of processing a1 and a2.
  • the speed at which the broadcast reception processing broadcast message is accurately acquired can be accurately controlled to control the order in which the broadcast recipient processes the broadcast message.
  • Step S220 classify the broadcast recipient according to the obtained historical average time.
  • the broadcast recipient is divided into corresponding levels.
  • the level of the broadcast recipient by the historical average time, it is possible to accurately classify the broadcast recipients to reasonably adjust the order of the broadcast recipients in the broadcast receiver queue.
  • Step S230 Adjust the order of the broadcast recipients in the broadcast receiver queue based on the level of the division.
  • the broadcast receiver may be classified into a level: when the acquired broadcast receiver processes the broadcast message, select a time greater than a set threshold; based on the selected greater than the set threshold Time, calculating an average timeout period for the broadcast recipient to process the broadcast message; classifying the broadcast recipient based on the average timeout period.
  • the threshold is set to a set standard time for processing a broadcast message.
  • the type of broadcast may also be considered, that is, the average timeout period for the broadcast receiver to process the same type of broadcast message is calculated based on the selected time greater than the set threshold.
  • the specific manner in which the broadcast receiver receives the corresponding level based on the historical average time of the broadcast message processed by the broadcast receiver is not limited to the above manner, and may be other manners.
  • FIG. 3 is a flowchart of a method for adjusting a broadcast receiver according to an embodiment of the present application, where the history parameter includes a history timeout number, and the broadcast parameter is classified according to the acquired historical parameter.
  • the method includes: classifying the broadcast recipient according to the obtained historical timeout number; and adjusting the broadcast recipient based on the split level, including: adjusting a broadcast receiver according to the classified level in a broadcast receiver queue The order in .
  • the technical solution provided in this embodiment includes:
  • Step S310 Acquire a historical timeout number of the broadcast receiver processing the broadcast message.
  • the number of timesout for the broadcast receiver to process the broadcast message is obtained by the number of timesout times of the identifier.
  • the broadcast management module is a function module in the terminal system. A variable is created in the broadcast management module, and the variable is used to identify the timeout number, and the timeout number is obtained according to the number of timesout times of the identifier.
  • determining whether the broadcast receiver processes the broadcast message timeout is determined by determining whether the time at which the broadcast recipient processes the broadcast message is greater than a set time threshold; if so, determining that the broadcast recipient processes the broadcast message timeout.
  • the broadcast receiver processes the broadcast message timeout the number of timeouts for processing the broadcast message by the broadcast recipient is identified.
  • the historical timeout number is incremented once.
  • the set fixed time threshold is 10 s
  • the number of times the broadcast receiver processes the broadcast message increases once.
  • the historical timeout number is increased once, wherein the dynamic time threshold is determined based on the initial set value, the historical timeout number, and the time increase value, and the time increase value is set for each increment. The number of timeouts, the amount of increase in the dynamic time threshold.
  • T1 is the initial set value of the dynamic time threshold
  • C is the historical timeout number
  • T0 is the time increase value, which is 1.
  • the initial setting value of the dynamic time threshold is 10s
  • the historical timeout is 1 time
  • the time increase value may also be an increase of 1 s on the basis of the corresponding dynamic time threshold when the broadcast message is last processed, or may be other forms.
  • the dynamic time threshold is determined by the historical timeout number and the time increase value, and the timeout number of the broadcast receiver processing the broadcast message can be reasonably controlled.
  • Step S320 classify the broadcast recipient according to the obtained history timeout number.
  • the broadcast receiver processes the broadcast message with the historical timeout number within a certain level of the number of times
  • the broadcast recipient is divided into corresponding levels.
  • the timeout range of the fast level is 0-3 times
  • the timeout number of the medium speed level is 4-6 times
  • the timeout number range of the slow level is more than 6 times. If the historical timeout number of the target broadcast recipient is 5 times, the target broadcast receiver's historical timeout number is within the medium speed level timeout number range, and the target broadcast recipient is divided into the medium speed level.
  • Step S330 Adjust the order of the broadcast recipients in the broadcast receiver queue based on the grade of the division.
  • the broadcast receivers are ranked according to the historical timeout number, and the order of the broadcast receivers is adjusted in the same broadcast receiver queue, so that the broadcast receivers with less history timeouts first process the broadcast message and improve the broadcast.
  • the processing efficiency of the message avoids the influence of the broadcast receiver with slower processing speed on the broadcast receiver with faster processing speed, and ensures the stability of the system.
  • FIG. 4 is a flowchart of a method for adjusting a broadcast receiver according to an embodiment of the present disclosure.
  • a historical parameter includes a dynamic time threshold; and the historical parameter based on the obtained divides the broadcast receiver.
  • the level includes: classifying the broadcast recipient based on the acquired dynamic time threshold corresponding to the broadcast recipient; and adjusting the broadcast recipient based on the split level, including: adjusting the level based on the division The order in which the broadcast recipients are in the broadcast receiver queue.
  • the technical solution provided in this embodiment includes:
  • Step S410 Acquire a dynamic time threshold corresponding to the broadcast receiver processing the broadcast message.
  • the dynamic time threshold is used to determine whether the broadcast receiver processes the broadcast message or not. When the broadcast receiver processes the broadcast message for a time greater than the dynamic time threshold, it is determined that the broadcast receiver processes the broadcast message timeout.
  • the dynamic time threshold is determined based on the acquired historical timeout number, the time increase value, and the initial set value. In an embodiment, the time increase value is an increase in the dynamic time threshold for each set number of historical timeouts.
  • the historical timeout of the broadcast recipient processing the broadcast message corresponds to a dynamic time threshold. Therefore, the number of historical timeouts on which the broadcast recipient processes the broadcast message corresponds to the dynamic time threshold. For example, the number of timesout for the broadcast receiver to process the broadcast message is 0, which corresponds to the initial set value of the dynamic time threshold. That is, if the number of timesout of the broadcast receiver processing the broadcast message is 0, it is determined whether the processing broadcast message has timed out, and is determined based on the time at which the broadcast message is processed and the initial set value of the dynamic time threshold.
  • Step S420 classify the broadcast recipient according to the acquired dynamic time threshold corresponding to the broadcast recipient.
  • the broadcast receivers have different historical timeout times, and the corresponding dynamic time thresholds are different. If the broadcast receiver processes the dynamic time threshold corresponding to the broadcast message within a certain time range, the broadcast recipient is divided into corresponding levels.
  • Step S430 Adjust the order of the broadcast recipients in the broadcast receiver queue based on the grade of the division.
  • the broadcast recipients are ranked according to a dynamic time threshold corresponding to the broadcast recipient, and the order of the broadcast recipients is adjusted in the same broadcast receiver queue to enable a corresponding broadcast with a lower dynamic time threshold.
  • the receiver first processes the broadcast message, improves the processing efficiency of the broadcast message, and avoids the influence of the broadcast receiver with slower processing speed on the broadcast receiver with faster processing speed, and ensures the stability of the system.
  • FIG. 5 is a flowchart of a method for adjusting a broadcast receiver according to an embodiment of the present disclosure.
  • a type of a broadcast receiver includes: a system, a system application, and a three-party application;
  • Leveling the broadcast recipients includes: classifying the broadcast recipients into levels corresponding to the system, the system application, and the three-party application according to a type of the broadcast recipient;
  • the level of the broadcast recipient is adjusted to include creating a broadcast receiver queue corresponding to the graded division and moving the broadcast recipient to a corresponding broadcast recipient queue.
  • the technical solution provided in this embodiment includes:
  • Step S510 Acquire a type of a broadcast recipient.
  • the types of broadcast recipients include: systems, system applications, and three-party applications.
  • Step S520 The broadcast recipient is divided into levels corresponding to the system, the system application, and the three-party application according to the type of the broadcast recipient.
  • the levels of the system, the system application, and the three-party application are set, and the broadcast recipient is divided into levels corresponding to the system, the system application, and the three-party application according to the type of the broadcast recipient.
  • the levels of system, system application, and three-party applications are set to Level 1, Level 2, and Level 3, respectively. If the type of a target broadcast recipient is a system, the target broadcast reception is divided into levels corresponding to the system, that is, one level.
  • Step S530 Create a broadcast receiver queue corresponding to the divided rank, and move the broadcast receiver to the corresponding broadcast receiver queue.
  • the divided rank corresponds to the broadcast receiver queue, and the broadcast recipient is moved to the broadcast receiver queue corresponding to the broadcast recipient's rank. For example, if the type of the broadcast recipient is a system, the broadcast recipient is moved to the broadcast receiver queue corresponding to the system level.
  • the level of the broadcast recipient is divided by the type of the broadcast recipient, and the broadcast receiver is adjusted according to the divided level, so that the processing speed and efficiency of the broadcast message can be improved.
  • FIG. 6 is a structural block diagram of an apparatus for adjusting a broadcast receiver according to an embodiment of the present application.
  • the apparatus is configured to perform a method for adjusting a broadcast receiver.
  • the apparatus includes an acquiring module 610, and dividing. Module 620 and adjustment module 630.
  • the obtaining module 610 is configured to: acquire a historical parameter of a broadcast message processed by a broadcast receiver or a type of a broadcast receiver;
  • the dividing module 620 is configured to: classify the broadcast receiver according to the acquired historical parameter or the type;
  • the adjustment module 630 is configured to: adjust the broadcast recipient based on the grade of the division.
  • the historical parameter includes a historical average time
  • the dividing module 620 is configured to: classify the broadcast receiver according to the obtained historical average time;
  • the adjustment module 630 is configured to adjust the order of the broadcast recipients in the broadcast receiver queue based on the level of the division.
  • the historical parameter includes a historical timeout number.
  • the dividing module 620 is configured to: classify the broadcast receiver according to the obtained historical timeout number
  • the adjustment module 630 is configured to adjust the order of the broadcast recipients in the broadcast receiver queue based on the level of the division.
  • the historical timeout number is increased once;
  • the historical timeout number is increased once.
  • the dynamic time threshold is based on an initial set value, the historical timeout number, and The time increase value is determined as the increase in the dynamic time threshold for each set number of timeouts.
  • the historical parameter includes a dynamic time threshold
  • the dividing module 620 is configured to: classify the broadcast receiver according to a dynamic time threshold corresponding to the broadcast receiver;
  • the adjusting module 630 is configured to: adjust an order of the broadcast receivers in a broadcast receiver queue based on the level of the division;
  • the dynamic time threshold is used to determine whether the broadcast receiver processes the broadcast message for timeout; the dynamic time threshold is determined based on the acquired historical timeout number, the time increase value, and the initial set value.
  • the types of broadcast recipients include: a system, a system application, and a three-party application;
  • the dividing module 620 is configured to: divide the broadcast receiver into levels corresponding to the system, the system application, and the three-party application according to the type of the broadcast receiver;
  • the adjusting module 630 is configured to: create a broadcast receiver queue corresponding to the divided level, and move the broadcast receiver to a corresponding broadcast receiver queue.
  • the broadcast receiver adjusting apparatus provided in this embodiment can classify the broadcast receiver by the broadcast receiver processing the history parameter of the broadcast message or the type of the broadcast receiver, and adjust the broadcast receiver according to the level, thereby improving the processing broadcast.
  • the efficiency of the message ensures the stability of the system.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • the terminal 700 may include: a memory 701, a central processing unit (CPU) 702 (also referred to as a processor, hereinafter referred to as a CPU), a touch screen 712, and stored in the memory and operable on the CPU.
  • CPU central processing unit
  • Computer program also referred to as a processor, hereinafter referred to as a CPU
  • the touch screen 712 is configured to convert a user operation into an electrical signal input to the CPU and display a visual output signal; when the CPU 702 executes the computer program, the following steps are performed: acquiring a historical parameter of the broadcast receiver processing the broadcast message or a broadcast receiver a type; classifying the broadcast recipient based on the acquired historical parameter or the type; adjusting the broadcast recipient based on the ranked level.
  • the terminal 700 further includes: a peripheral interface 703, an RF (Radio Frequency) circuit 705, an audio circuit 706, a speaker 711, a power management chip 708, an input/output (I/O) subsystem 709, and other inputs/controls.
  • Device 710 and external port 704 these components communicate via one or more communication buses or signal lines 707.
  • the illustrated terminal 700 is merely one example of a terminal, and that the terminal 700 may have more or fewer components than those shown in the figures, two or more components may be combined, or may have Different component configurations.
  • the various components shown in the figures can 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 terminal of the broadcast receiver integrated adjustment apparatus provided in this embodiment is described in detail below.
  • the terminal uses a mobile phone as an example.
  • the memory 701 can be accessed by the CPU 702 and the peripheral interface 703, etc., and the memory 701 can include a high speed random access memory, and can also include a nonvolatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • a nonvolatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • Peripheral interface 703, which can connect the input and output peripherals of the device to CPU 702 and memory 701.
  • the I/O subsystem 709 can connect input and output peripherals on the device, such as touch screen 712 and other input/control devices 710, to peripheral interface 703.
  • the I/O subsystem 709 can include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710.
  • one or more input controllers 7092 receive electrical signals from other input/control devices 710 or transmit electrical signals to other input/control devices 710, and other input/control devices 710 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 7092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch screen 712 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, videos, and the like.
  • Display controller 7091 in I/O subsystem 709 receives an electrical signal from touch screen 712 or an electrical signal to touch screen 712.
  • Touch screen 712 detects contact on the touch screen, display controller 7091 converts the detected contact into interaction with a user interface object displayed on touch screen 712, ie, implements human-computer interaction, and the user interface object displayed on touch screen 712 can be operational
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
  • the RF circuit 705 is mainly used for establishing communication between the mobile phone and the wireless network (ie, the network side), and realizing data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. Specifically, the RF circuit 705 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 705 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate.
  • an RF signal which is also referred to as an electromagnetic signal
  • RF circuitry 705 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 ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
  • an antenna system an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
  • CODEC COder-DECoder, codec
  • SIM Subscriber Identity Module
  • the audio circuit 706 is arranged to receive audio data from the peripheral interface 703, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 711.
  • the speaker 711 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 705 to sound and play the sound to the user.
  • the power management chip 708 is configured to provide power and power management for the hardware connected to the CPU 702, the I/O subsystem, and the peripheral interface.
  • the terminal provided in this embodiment is used to perform the adjustment method of the broadcast receiver described in the foregoing embodiment, and the technical principle and the generated technical effect are similar, and details are not described herein again.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for performing the adjustment method of the broadcast receiver described above.
  • the method provided by the present disclosure classifies the broadcast receiver by the broadcast receiver processing the history parameter of the broadcast message or the type of the broadcast receiver, and adjusts the broadcast receiver according to the level, thereby improving the efficiency of processing the broadcast message and ensuring system stability. Sex.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

Provided are a broadcast recipient adjustment method, device, and terminal, said method comprising: obtaining historical parameters of broadcast recipients processing a broadcast message, or the type of broadcast recipient; on the basis of the obtained historical parameter or the type, dividing the broadcast recipients into levels; on the basis of the divided levels, adjusting the broadcast recipients.

Description

广播接收者的调整方法、装置及终端Broadcast receiver adjustment method, device and terminal 技术领域Technical field
本公开涉及终端技术领域,例如涉及一种广播接收者的调整方法、装置及终端。The present disclosure relates to the field of terminal technologies, for example, to a method, an apparatus, and a terminal for adjusting a broadcast receiver.
背景技术Background technique
安卓(Android)***中广播是一种广泛运用在应用程序之间传输信息的机制,Android中的广播用于监听***事件或应用程序事件。Broadcasting in Android is a widely used mechanism for transferring information between applications. Broadcasting in Android is used to monitor system events or application events.
在Android***中,一些应用在后台通过接收各种各样的广播消息进行自启动或者执行其他操作。在一些应用接收广播消息时,由于应用本身可能在执行一些耗时的操作或者应用本身出现卡顿的情况,导致接收到的广播消息无法及时处理,甚至有些应用对广播消息还会超时处理,影响广播消息的后续分发,使***稳定性差。In the Android system, some applications perform self-starting or other operations in the background by receiving various broadcast messages. When some applications receive broadcast messages, the application itself may be performing some time-consuming operations or the application itself may be stuck, resulting in the received broadcast messages being unable to be processed in time, and even some applications may time-out processing the broadcast messages, affecting Subsequent distribution of broadcast messages makes the system less stable.
发明内容Summary of the invention
本申请实施例提供一种广播接收者的调整方法、装置及终端,可以提高广播消息的处理效率,保障***稳定性。The embodiment of the present invention provides a method, a device, and a terminal for adjusting a broadcast receiver, which can improve the processing efficiency of the broadcast message and ensure system stability.
本申请实施例提供了一种广播接收者的调整方法,包括:An embodiment of the present application provides a method for adjusting a broadcast receiver, including:
获取广播接收者处理广播消息的历史参数或者广播接收者的类型;Obtaining a history parameter of a broadcast receiver processing a broadcast message or a type of a broadcast recipient;
基于获取的所述历史参数或者所述类型将所述广播接收者划分等级;Ranking the broadcast recipient based on the obtained historical parameter or the type;
基于划分的等级对所述广播接收者进行调整。The broadcast recipient is adjusted based on the ranked level.
本申请实施例还提供了一种广播接收者的调整装置,包括:The embodiment of the present application further provides an apparatus for adjusting a broadcast receiver, including:
获取模块,设置为:获取广播接收者处理广播消息的历史参数或者广播接收者的类型;The obtaining module is configured to: obtain a historical parameter of the broadcast receiver processing the broadcast message or a type of the broadcast receiver;
划分模块,设置为:基于获取的所述历史参数或者所述类型将所述广播接收者划分等级;a dividing module, configured to: classify the broadcast receiver according to the acquired historical parameter or the type;
调整模块,设置为:基于划分的等级对所述广播接收者进行调整。The adjustment module is configured to: adjust the broadcast recipient based on the grade of the division.
本申请实施例还提供了一种终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以 下步骤:The embodiment of the present application further provides a terminal, including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the following steps:
获取广播接收者处理广播消息的历史参数或者广播接收者的类型;Obtaining a history parameter of a broadcast receiver processing a broadcast message or a type of a broadcast recipient;
基于获取的所述历史参数或者所述类型将所述广播接收者划分等级;Ranking the broadcast recipient based on the obtained historical parameter or the type;
基于划分的等级对所述广播接收者进行调整。The broadcast recipient is adjusted based on the ranked level.
本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。The embodiment of the present application further provides a computer readable storage medium storing computer executable instructions for performing the above method.
本申请实施例提供的技术方案,通过广播接收者处理广播消息的历史参数或者广播接收者的类型将广播接收者划分等级,并根据等级对广播接收者进行调整,可以提高广播消息的处理效率,保障***稳定性。The technical solution provided by the embodiment of the present application can classify the broadcast receiver by the broadcast receiver processing the historical parameter of the broadcast message or the type of the broadcast receiver, and adjust the broadcast receiver according to the level, thereby improving the processing efficiency of the broadcast message. Guarantee system stability.
附图说明DRAWINGS
图1是本申请一实施例提供的一种广播接收者的调整方法的流程图;FIG. 1 is a flowchart of a method for adjusting a broadcast receiver according to an embodiment of the present application;
图2是本申请另一实施例提供的一种广播接收者的调整方法的流程图;2 is a flowchart of a method for adjusting a broadcast receiver according to another embodiment of the present application;
图3是本申请另一实施例提供的一种广播接收者的调整方法的流程图;3 is a flowchart of a method for adjusting a broadcast receiver according to another embodiment of the present application;
图4是本申请另一实施例提供的一种广播接收者的调整方法的流程图;4 is a flowchart of a method for adjusting a broadcast receiver according to another embodiment of the present application;
图5是本申请另一实施例提供的一种广播接收者的调整方法的流程图;FIG. 5 is a flowchart of a method for adjusting a broadcast receiver according to another embodiment of the present application;
图6是本申请一实施例提供的一种广播接收者的调整装置的结构框图;FIG. 6 is a structural block diagram of an apparatus for adjusting a broadcast receiver according to an embodiment of the present application;
图7是本申请一实施例提供的一种终端的结构示意图。FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请进行说明。图1是本申请一个实施例提供的一种广播接收者的调整方法的流程图,所述方法由广播接收者的调整装置来执行,所述装置由软件和/或硬件来执行,所述装置配置在诸如手机等终端中。The present application will be described below in conjunction with the accompanying drawings and embodiments. 1 is a flowchart of a method for adjusting a broadcast recipient according to an embodiment of the present application, where the method is performed by an adjustment device of a broadcast recipient, the device being executed by software and/or hardware, the device Configured in a terminal such as a mobile phone.
如图1所示,本实施例提供的技术方案包括:As shown in FIG. 1 , the technical solution provided in this embodiment includes:
步骤S110:获取广播接收者处理广播消息的历史参数或者广播接收者的类型。Step S110: Acquire a history parameter of the broadcast receiver processing the broadcast message or a type of the broadcast recipient.
在广播处理过程中,广播发送者的服务进程通过调用广播发送函数(如sendBroadcast函数)将广播消息发送至广播管理模块(如ActivityManagerService,活动管理服务),广播管理模块接收到该广播消息后将其放入广播发送队列,广播管理模块通过进程通信机制(如Binder进程通信机制)将广播发送队列中的 广播消息发送至符合接收条件的广播接收者。During the broadcast process, the broadcast sender's service process sends a broadcast message to the broadcast management module (such as ActivityManagerService, activity management service) by calling a broadcast send function (such as the sendBroadcast function), and the broadcast management module receives the broadcast message and then Put into the broadcast transmission queue, the broadcast management module sends the broadcast message in the broadcast transmission queue to the broadcast receiver that meets the reception condition through the process communication mechanism (such as the Binder process communication mechanism).
在广播机制中,广播消息指的是***或者应用程序在运行过程中发送的,用于***和/或应用程序之间传输的信息,示例性的,广播消息可以是***启动广播消息、短信类广播消息、电话类广播消息或者三方应用类广播消息等。In the broadcast mechanism, a broadcast message refers to information transmitted by a system or an application during operation and used for transmission between a system and/or an application. Exemplaryly, a broadcast message may be a system startup broadcast message, a short message type. Broadcast messages, telephony-like broadcast messages, or three-party application-type broadcast messages.
在一实施例中,广播接收者处理广播消息的历史参数包括处理广播消息的历史平均时间、处理广播消息的历史超时次数、处理广播消息的历史超时时间、处理广播消息累加的历史超时时间或者处理广播消息对应的动态时间阈值,其中,动态时间阈值用于判断处理广播消息是否超时。并且广播接收处理广播消息的历史参数并不局限于上述的参数形式。In an embodiment, the historical parameters of the broadcast receiver processing the broadcast message include a historical average time for processing the broadcast message, a historical timeout for processing the broadcast message, a historical timeout for processing the broadcast message, a history timeout for processing the broadcast message accumulation, or processing A dynamic time threshold corresponding to the broadcast message, wherein the dynamic time threshold is used to determine whether the processing of the broadcast message is timed out. And the history parameter of the broadcast reception processing broadcast message is not limited to the above parameter form.
在一实施例中,广播接收者处理广播消息的历史平均时间可以是广播接收者在预设时间段内处理广播消息的历史平均时间,或者也可以是广播接收者在预设次数内处理广播消息的历史平均时间。In an embodiment, the historical average time that the broadcast receiver processes the broadcast message may be a historical average time that the broadcast receiver processes the broadcast message within a preset time period, or may also be that the broadcast receiver processes the broadcast message within a preset number of times. The historical average time.
在预设时间段内,广播接收者可以处理一个广播消息,也可以处理多个广播消息,为了确定每个广播接收者处理广播消息的快慢,对预设时间段进行设置,以使广播接收者处理多个广播消息。在预设时间段内,获取广播接收者处理每个广播消息的时间。During a preset time period, the broadcast receiver can process one broadcast message or multiple broadcast messages. In order to determine the speed at which each broadcast receiver processes the broadcast message, the preset time period is set to enable the broadcast receiver. Process multiple broadcast messages. The time at which the broadcast receiver processes each broadcast message is acquired within a preset time period.
在一实施例中,广播接收者处理广播消息的历史超时次数可以是广播接收者在预设时间段内或者预设次数内处理广播消息的历史超时次数。In an embodiment, the historical timeout period of the broadcast receiver processing the broadcast message may be a historical timeout period of the broadcast receiver processing the broadcast message within a preset time period or a preset number of times.
在一实施例中,历史超时时间是广播接收者在预设时间段内或者预设次数内处理广播消息的时间超出一设定时间阈值的时间,该设定时间阈值可以固定不变,也可以随超时次数的变化而变化。累加的历史超时时间是将每次超过一设定时间阈值的时间进行相加,并求和获得的时间。In an embodiment, the historical timeout period is a time when the broadcast receiver processes the broadcast message within a preset time period or a preset number of times exceeds a set time threshold, and the set time threshold may be fixed or may be fixed. It changes with the number of timeouts. The accumulated historical timeout period is the time at which each time exceeds a set time threshold is added and summed.
在一实施例中,动态时间阈值是指在广播接收者处理广播消息的时间大于动态时间阈值的情况下,判断该广播接收者处理广播消息超时。在一实施例中,动态时间阈值基于初始设定值、历史超时次数以及时间增幅值进行确定,其中,时间增幅值为每增加设定数量的超时次数,动态时间阈值的增加量。In an embodiment, the dynamic time threshold refers to determining that the broadcast receiver processes the broadcast message timeout if the broadcast receiver processes the broadcast message for a time greater than the dynamic time threshold. In an embodiment, the dynamic time threshold is determined based on an initial set value, a historical timeout number, and a time increase value, wherein the time increase value is an increase amount of the dynamic time threshold for each set number of timeouts.
在一实施例中,广播接收者的类型包括***、***应用和三方应用。其中,广播接收者的类型还可以是其他的类型划分形式。In an embodiment, the types of broadcast recipients include systems, system applications, and three-party applications. The type of the broadcast receiver may also be other types of type division.
步骤S120:基于获取的所述历史参数或者所述类型将所述广播接收者划分等级。Step S120: classify the broadcast receiver based on the acquired historical parameter or the type.
在一实施例中,基于获取的所述历史参数将所述广播接收者划分等级可以包括:基于获取的历史平均时间、历史超时次数、动态时间阈值或者累加的历史超时时间将广播接收者划分等级。In an embodiment, classifying the broadcast recipient based on the acquired historical parameter may include: classifying a broadcast recipient based on the acquired historical average time, a historical timeout number, a dynamic time threshold, or an accumulated historical timeout period. .
在将广播接收者划分等级之前,需要设置广播接收者的等级,并为等级配置对应的参数范围。在一实施例中,广播接收者的等级可以是一级、二级和三级,或者也可以为快速等级、中速等级和慢速等级。本实施例中,以根据累加的历史超时时间将广播接收者划分等级为例进行说明,为广播接收者的等级配置对应的处理广播消息累加的超时时间的范围。如,三级对应的处理广播消息的累加的超时时间范围中的最大值小于二级对应的处理广播消息的累加的超时时间范围中的最小值。二级对应的处理广播消息的超时时间范围中的最大值小于一级对应的处理广播消息的超时时间范围中的最小值。也就是说等级越高,累加的历史超时时间越短。Before classifying the broadcast recipients, it is necessary to set the level of the broadcast recipient and configure the corresponding parameter range for the level. In an embodiment, the level of the broadcast recipient may be one level, two level, and three levels, or may also be a fast level, a medium speed level, and a slow speed level. In this embodiment, a description will be given by taking the broadcast recipient classification level according to the accumulated historical timeout period as an example, and configuring a range of timeout times for processing the broadcast message corresponding to the level of the broadcast recipient. For example, the maximum value in the accumulated timeout period range of the processing broadcast message corresponding to the third level is smaller than the minimum value in the accumulated timeout time range of the processing broadcast message corresponding to the second level. The maximum value in the timeout period range of the secondary processing corresponding broadcast message is smaller than the minimum value in the timeout time range of processing the broadcast message corresponding to the first level. In other words, the higher the level, the shorter the accumulated history timeout.
对于根据其他历史参数以及广播接收者的类型对广播接收者划分等级的方式在下述的实施例进行说明。The manner in which the broadcast recipients are ranked according to other history parameters and the types of broadcast recipients will be described in the following embodiments.
在一实施例中,广播接收者的等级还可以是其他形式,广播接收者的等级并不局限于上述的三个等级,还可以是四个以及其他数量的等级,可根据需要进行设定。In an embodiment, the level of the broadcast recipient may also be other forms, and the level of the broadcast recipient is not limited to the above three levels, and may be four and other number of levels, which may be set as needed.
步骤S130:基于划分的等级对所述广播接收者进行调整。Step S130: Adjust the broadcast recipient based on the grade of the division.
基于划分的等级对广播接收者进行调整可以包括:基于划分的等级调整广播接收者在广播接收者队列中的顺序;或者也可以包括基于划分的等级创建与等级对应的广播接收者队列,并将广播接收者移动到对应的广播接收者队列中。Adjusting the broadcast recipient based on the ranked level may include: adjusting the order of the broadcast recipients in the broadcast recipient queue based on the ranked level; or may also include creating a broadcast recipient queue corresponding to the level based on the divided levels, and The broadcast recipient moves to the corresponding broadcast receiver queue.
在本实施例中,对于注册了同一广播消息的广播接收者,广播接收者按照广播接收者队列的顺序处理广播消息。例如,对于熄屏广播消息,在终端内,注册熄屏广播消息的广播接收者是视频应用和音乐应用,并且处理熄屏广播消息的顺序依次是视频应用和音乐应用。视频应用和音乐应用按照队列的顺序对熄屏广播消息进行处理。In the present embodiment, for broadcast receivers who have registered the same broadcast message, the broadcast receiver processes the broadcast message in the order of the broadcast receiver queue. For example, for a screencast broadcast message, within the terminal, the broadcast recipients that register the screencast broadcast message are the video application and the music application, and the order in which the screencast broadcast messages are processed is, in order, the video application and the music application. The video application and the music application process the screencast broadcast messages in the order of the queues.
在一实施例中,基于划分的等级调整广播接收者在广播接收者队列中的顺序,可以包括:按照划分的等级从高到低的顺序将广播接收者在广播接收者队列中依次排序,以调整广播接收者处理广播消息的顺序。在一实施例中,划分等级从高到低的顺序依次为快速等级、中速等级和慢速等级;或者也可以是一 级、二级和三级。In an embodiment, adjusting the order of the broadcast recipients in the broadcast receiver queue based on the level of the division may include: sequentially ordering the broadcast recipients in the broadcast receiver queue according to the ranked ranks from highest to lowest, Adjust the order in which broadcast recipients process broadcast messages. In one embodiment, the ranks are ranked from high to low in order of fast, medium, and slow; or one, two, and three.
例如,注册了广播消息的广播接收者分别有A,B,C,其中划分的A的等级为慢速等级,划分的B的等级为快速等级,划分的C的等级为中速等级。将A,B,C三个广播接收者按照等级从高到低依次排序,排列的顺序是B,C,A,以使处理速度较快的B先处理广播消息,C和A依次分别再处理广播消息。由此,能够避免处理速度较慢的广播接收者对处理速度较快的广播接收者的影响,提高广播消息的处理效率。For example, the broadcast recipients who have registered the broadcast message respectively have A, B, and C, wherein the grade of the divided A is a slow grade, the grade of the divided B is a fast grade, and the grade of the divided C is a medium speed grade. The three broadcast receivers A, B, and C are sorted according to the rank from high to low, and the order of the order is B, C, and A, so that the B with the faster processing speed processes the broadcast message first, and C and A respectively process the messages in turn. Broadcast message. Thereby, it is possible to avoid the influence of the broadcast receiver having a slow processing speed on the broadcast receiver having a faster processing speed, and to improve the processing efficiency of the broadcast message.
在上述实施例的基础上,对广播接收者进行调整的方法还包括:在同一等级的广播接收者的数量大于1个的情况下,按照广播接收者在调整之前广播接收者队列中的先后顺序对同一等级的广播接收者进行排序。由此,能够使等级相同的广播接收者处理广播消息时保留原来的先后顺序,按照原来的先后顺序进行处理广播消息。On the basis of the foregoing embodiment, the method for adjusting the broadcast receiver further includes: in the case that the number of broadcast receivers of the same level is greater than one, according to the order of the broadcast receivers in the broadcast receiver queue before the adjustment Sort broadcast receivers of the same level. Thereby, it is possible to cause the broadcast receivers of the same level to retain the original sequence when processing the broadcast message, and process the broadcast message in the original order.
例如,注册了同一广播消息的广播接收者分别有a,b,c和d,其中,b和d的等级均为快速等级,a的等级为慢速等级,c的等级为中速等级。按照等级从高到低调整广播接收者在广播接收者队列中的顺序,调整之后的顺序是b、d在c、a之前,c在a之前。其中,b和d为同一等级,在对b和d排序时,按照b和d在调整之前广播接收者队列中的先后顺序对b、d进行排序。在调整之前的广播接收者队列中,b在d之前,因此,处理广播消息的广播接收者的排序是b,d,c,a。For example, broadcast recipients who have registered the same broadcast message have a, b, c, and d, respectively, where the levels of b and d are both fast levels, the level of a is a slow level, and the level of c is a medium speed level. The order of the broadcast recipients in the broadcast receiver queue is adjusted according to the level from high to low. The order after the adjustment is b, d before c, a, and c before a. Where b and d are the same level, and when b and d are sorted, b and d are sorted according to the order in which the b and d are in the broadcast receiver queue before the adjustment. In the broadcast receiver queue before the adjustment, b precedes d, and therefore, the order of the broadcast recipients handling the broadcast message is b, d, c, a.
在一实施例中,在同一等级的广播接收者的数量大于1个的情况下,对同一等级的广播接收者的排序还可以采用其他的排序方式,并不局限于上述的方式。In an embodiment, in the case that the number of broadcast receivers of the same level is greater than one, the ordering of the broadcast receivers of the same level may also adopt other sorting manners, and is not limited to the above manner.
在一实施例中,基于划分的等级创建与等级对应的广播接收者队列,并将广播接收者移动到对应的广播接收者队列中,可以理解为每个广播接收者队列中的广播接收者的等级相同,广播接收者队列的数量由划分的等级进行确定。例如,划分的等级为快速等级、中速等级和慢速等级,创建与快速等级、中速等级和慢速等级分别对应的三个广播接收者队列,并将广播接收者移动到对应的广播接收者队列中。通过该方法,能够提高广播消息的处理速度以及效率,保持***的稳定性。In an embodiment, a broadcast receiver queue corresponding to the rank is created based on the grade of the division, and the broadcast receiver is moved to the corresponding broadcast receiver queue, which can be understood as the broadcast receiver in each broadcast receiver queue. The ranks are the same, and the number of broadcast receiver queues is determined by the grade of the division. For example, the classified levels are a fast level, a medium speed level, and a slow speed level, and three broadcast receiver queues respectively corresponding to the fast level, the medium speed level, and the slow speed level are created, and the broadcast receiver is moved to the corresponding broadcast reception. In the queue. By this method, the processing speed and efficiency of the broadcast message can be improved, and the stability of the system can be maintained.
本实施例中,通过广播接收者处理广播消息的历史参数或者广播接收者的 类型将广播接收者划分等级,并根据等级对广播接收者进行调整,提高处理广播消息的效率,保障***稳定性。In this embodiment, the broadcast receiver is classified by the broadcast receiver to process the historical parameters of the broadcast message or the type of the broadcast receiver, and the broadcast receiver is adjusted according to the level, thereby improving the efficiency of processing the broadcast message and ensuring system stability.
图2是本申请一个实施例提供的一种广播接收者的调整方法的流程图,本实施例中,历史参数包括历史平均时间,所述基于获取的所述历史参数将所述广播接收者划分等级,包括:基于获取的所述历史平均时间将所述广播接收者划分等级;所述基于划分的等级对所述广播接收者进行调整,包括:基于划分的等级调整广播接收者在广播接收者队列中的顺序。2 is a flowchart of a method for adjusting a broadcast receiver according to an embodiment of the present application. In this embodiment, a historical parameter includes a historical average time, and the historical parameter based on the acquisition divides the broadcast receiver. a level, comprising: classifying the broadcast recipient based on the obtained historical average time; and adjusting the broadcast recipient based on the divided level, comprising: adjusting a broadcast recipient based on the divided level to a broadcast recipient The order in the queue.
如图2所示,本实施例提供的技术方案如下:As shown in FIG. 2, the technical solution provided by this embodiment is as follows:
步骤S210:获取广播接收者处理广播消息的历史平均时间。Step S210: Acquire a historical average time for the broadcast receiver to process the broadcast message.
在一实施例中,各广播接收者处理广播消息的数量可能相同,也可能不相同。各广播接收者处理广播消息的类型可能相同,也可能不相同。在计算广播接收者处理广播消息的历史平均时间时,可以对处理的广播消息类型不进行考虑,基于广播接收者处理的各广播消息的时间中的所有时间,计算历史平均时间。In an embodiment, the number of broadcast messages processed by each broadcast recipient may or may not be the same. The types of broadcast messages processed by each broadcast receiver may or may not be the same. When calculating the historical average time at which the broadcast recipient processes the broadcast message, the processed broadcast message type may not be considered, and the historical average time is calculated based on all of the times of the broadcast messages processed by the broadcast recipient.
本实施例中以计算预设时间段内的历史平均时间为例进行说明,例如,终端内的三个广播接收者分别是A,B,C。若在预设时间段内A处理了5个广播消息,5个广播消息分别是a1、a2,a3,a4和a5,处理5个广播消息的时间分别是8s,7s,9s,8s,10s。若在预设时间段内B处理了3个广播消息,3个广播消息分别是a1,a2,b1,B处理3个广播消息的时间分别是5s,6s,8s。若C在预设时间段内处理了3个广播消息,3个广播消息分别是a1,a2和c1,C处理3个广播消息的时间分别是7s,6s和8s。In this embodiment, the historical average time in the preset time period is calculated as an example. For example, the three broadcast receivers in the terminal are respectively A, B, and C. If A processes 5 broadcast messages in a preset time period, 5 broadcast messages are a1, a2, a3, a4, and a5, respectively, and the time for processing 5 broadcast messages is 8s, 7s, 9s, 8s, 10s, respectively. If B processes 3 broadcast messages within a preset time period, the three broadcast messages are a1, a2, b1, and B processes 3 broadcast messages at 5s, 6s, and 8s, respectively. If C processes 3 broadcast messages within a preset time period, 3 broadcast messages are a1, a2, and c1, respectively, and C processes 3 broadcast messages at 7s, 6s, and 8s, respectively.
由此,可见看出,A,B,C三个广播接收者处理的广播消息的类型并不完全相同,在计算A,B,C三个广播接收者在预设时间段内处理广播消息的历史平均时间时,可以不考虑广播消息的类型,基于A,B,C三个广播接收者处理各广播消息时间中的所有时间,计算处理广播消息的历史平均时间。通过该方法,预设时间段内广播接收者A处理广播消息的历史平均时间是:(8+7+9+8+10)/5=8.4s;预设时间段内广播接收者B处理广播消息的历史平均时间是(5+6+8)/3=6.3s;预设时间段内广播接收者C处理广播消息的历史平均时间是(7+6+8)/3=7s。Therefore, it can be seen that the types of broadcast messages processed by the three broadcast receivers A, B, and C are not exactly the same, and three broadcast receivers A, B, and C are processed to process broadcast messages within a preset time period. At the historical average time, the three broadcast receivers based on A, B, and C can process all the time in each broadcast message regardless of the type of the broadcast message, and calculate the historical average time of processing the broadcast message. By this method, the historical average time for the broadcast receiver A to process the broadcast message in the preset time period is: (8+7+9+8+10)/5=8.4s; the broadcast receiver B processes the broadcast within the preset time period. The historical average time of the message is (5+6+8)/3=6.3s; the historical average time for the broadcast receiver C to process the broadcast message within the preset time period is (7+6+8)/3=7s.
在计算广播接收者处理广播消息的历史平均时间时,也可以考虑广播消息的类型。因此,在一实施例中,在各广播接收者在处理的广播消息存在相同的类型的情况下,历史平均时间的计算还可以是:基于各广播接收者处理广播消息的时间,计算所述预设时间段内广播接收者处理相同类型的广播消息的历史平均时间。The type of broadcast message can also be considered when calculating the historical average time that a broadcast recipient processes a broadcast message. Therefore, in an embodiment, in a case where each broadcast receiver has the same type of processed broadcast messages, the calculation of the historical average time may be: calculating the pre-determination based on the time when each broadcast recipient processes the broadcast message. Let the broadcast receiver process the historical average time of the same type of broadcast message within the time period.
例如,在本实施例中,A,B,C三个广播接收者在预设时间段内处理的相同类型的广播消息分别是a1和a2,基于处理a1和a2的时间,计算历史平均时间。通过该方法,预设时间段内广播接收者A处理广播消息的历史平均时间是:(8+7)/2=7.5s;预设时间段内广播接收者B处理广播消息的历史平均时间是:(5+6)/2=5.5s;预设时间段内广播接收者C处理广播消息的历史平均时间是(7+6)/2=6.5s。For example, in the present embodiment, the same type of broadcast messages processed by the three broadcast receivers A, B, and C in the preset time period are a1 and a2, respectively, and the historical average time is calculated based on the times of processing a1 and a2. By this method, the historical average time for the broadcast receiver A to process the broadcast message in the preset time period is: (8+7)/2=7.5s; the historical average time for the broadcast receiver B to process the broadcast message within the preset time period is :(5+6)/2=5.5s; the historical average time for the broadcast receiver C to process the broadcast message within the preset time period is (7+6)/2=6.5s.
由此,通过历史平均时间,能够准确获取广播接收处理广播消息的速度,以控制广播接收者处理广播消息的顺序。Thus, by the historical average time, the speed at which the broadcast reception processing broadcast message is accurately acquired can be accurately controlled to control the order in which the broadcast recipient processes the broadcast message.
步骤S220:基于获取的所述历史平均时间将所述广播接收者划分等级。Step S220: classify the broadcast recipient according to the obtained historical average time.
在本实施例中,如果广播接收者处理广播消息的历史平均时间在某一等级对应的时间范围内,将该广播接收者划分为对应的等级。由此,通过历史平均时间划分广播接收者的等级,能够对准确划分广播接收者的等级,以合理调整广播接收者在广播接收者队列中的顺序。In this embodiment, if the historical average time of the broadcast receiver processing the broadcast message is within a time range corresponding to a certain level, the broadcast recipient is divided into corresponding levels. Thus, by dividing the level of the broadcast recipient by the historical average time, it is possible to accurately classify the broadcast recipients to reasonably adjust the order of the broadcast recipients in the broadcast receiver queue.
步骤S230:基于划分的等级调整所述广播接收者在广播接收者队列中的顺序。Step S230: Adjust the order of the broadcast recipients in the broadcast receiver queue based on the level of the division.
在上述实施例的基础上,还可以通过下述方式将广播接收者划分等级:在获取的广播接收者处理广播消息的时间中,选取大于设定阈值的时间;基于选取的大于设定阈值的时间,计算广播接收者处理广播消息的平均超时时间;基于所述平均超时时间将所述广播接收者划分等级。在一实施例中,设定阈值为设定的处理广播消息的标准时间。并且对于平均超时时间进行计算时,也可以考虑广播的类型,即基于选取的大于设定阈值的时间,计算广播接收者处理相同类型的广播消息的平均超时时间。On the basis of the foregoing embodiment, the broadcast receiver may be classified into a level: when the acquired broadcast receiver processes the broadcast message, select a time greater than a set threshold; based on the selected greater than the set threshold Time, calculating an average timeout period for the broadcast recipient to process the broadcast message; classifying the broadcast recipient based on the average timeout period. In an embodiment, the threshold is set to a set standard time for processing a broadcast message. And when calculating the average timeout period, the type of broadcast may also be considered, that is, the average timeout period for the broadcast receiver to process the same type of broadcast message is calculated based on the selected time greater than the set threshold.
在一实施例中,基于获取的广播接收者处理广播消息的历史平均时间将广播接收者划分相应等级的具体方式,并不局限于上述的方式,还可以是其他方式。In an embodiment, the specific manner in which the broadcast receiver receives the corresponding level based on the historical average time of the broadcast message processed by the broadcast receiver is not limited to the above manner, and may be other manners.
由此,通过划分的等级调整广播接收者在广播接收者队列中的顺序,能够避免处理速度慢的广播接收者对处理速度快的广播接收者的影响,优化广播接收者处理广播消息的顺序,提高广播接收者处理广播消息的消息,保证***的稳定性。Thereby, by adjusting the order of the broadcast recipients in the broadcast receiver queue by the level of division, it is possible to avoid the influence of the broadcast receiver having a slow processing speed on the broadcast receiver having a fast processing speed, and optimizing the order in which the broadcast receiver processes the broadcast message. Improve the broadcast receiver's processing of broadcast messages to ensure the stability of the system.
图3是本申请一个实施例提供的一种广播接收者的调整方法的流程图,其中,所述历史参数包括历史超时次数,所述基于获取的所述历史参数将所述广播接收者划分等级,包括:基于获取的所述历史超时次数将所述广播接收者划分等级;所述基于划分的等级对所述广播接收者进行调整,包括:基于划分的等级调整广播接收者在广播接收者队列中的顺序。3 is a flowchart of a method for adjusting a broadcast receiver according to an embodiment of the present application, where the history parameter includes a history timeout number, and the broadcast parameter is classified according to the acquired historical parameter. The method includes: classifying the broadcast recipient according to the obtained historical timeout number; and adjusting the broadcast recipient based on the split level, including: adjusting a broadcast receiver according to the classified level in a broadcast receiver queue The order in .
如图3所示,本实施例提供的技术方案包括:As shown in FIG. 3, the technical solution provided in this embodiment includes:
步骤S310:获取广播接收者处理广播消息的历史超时次数。Step S310: Acquire a historical timeout number of the broadcast receiver processing the broadcast message.
本实施例中,对于广播接收者处理广播消息的超时次数是通过标识的超时次数而获得。广播管理模块是终端***中的一个功能模块,在广播管理模块中创建一个变量,采用该变量标识超时次数,根据标识的超时次数而获得超时次数。In this embodiment, the number of timesout for the broadcast receiver to process the broadcast message is obtained by the number of timesout times of the identifier. The broadcast management module is a function module in the terminal system. A variable is created in the broadcast management module, and the variable is used to identify the timeout number, and the timeout number is obtained according to the number of timesout times of the identifier.
在一实施例中,对于广播接收者处理广播消息是否超时通过如下的方式进行确定:判断广播接收者处理广播消息的时间是否大于设定时间阈值;如果是,判定广播接收者处理广播消息超时。当广播接收者处理广播消息超时时,对该广播接收者处理广播消息的超时次数进行标识。In an embodiment, determining whether the broadcast receiver processes the broadcast message timeout is determined by determining whether the time at which the broadcast recipient processes the broadcast message is greater than a set time threshold; if so, determining that the broadcast recipient processes the broadcast message timeout. When the broadcast receiver processes the broadcast message timeout, the number of timeouts for processing the broadcast message by the broadcast recipient is identified.
在本实施例中,当广播接收者处理广播消息的时间大于设定的固定时间阈值时,历史超时次数增加一次。例如,设定的固定时间阈值为10s,当广播接收者处理广播消息的时间大于10s时,广播接收者处理广播消息的超时次数增加一次。In this embodiment, when the broadcast receiver processes the broadcast message for a time greater than the set fixed time threshold, the historical timeout number is incremented once. For example, the set fixed time threshold is 10 s, and when the broadcast receiver processes the broadcast message for more than 10 s, the number of times the broadcast receiver processes the broadcast message increases once.
或者当广播接收者处理广播消息的时间大于动态时间阈值时,历史超时次数增加一次,其中,动态时间阈值基于初始设定值、历史超时次数以及时间增幅值进行确定,时间增幅值为每增加设定数量的超时次数,动态时间阈值的增加量。Or when the time when the broadcast receiver processes the broadcast message is greater than the dynamic time threshold, the historical timeout number is increased once, wherein the dynamic time threshold is determined based on the initial set value, the historical timeout number, and the time increase value, and the time increase value is set for each increment. The number of timeouts, the amount of increase in the dynamic time threshold.
例如,每增加一次历史超时次数,动态时间阈值在上一次处理广播消息时对应动态时间阈值的基础上增加1s,采用公式表述为:T=C×T0+T1。其中,T1 为动态时间阈值的初始设定值,C为历史超时次数,T0为时间增幅值,即为1。若动态时间阈值的初始设定值为10s,若历史超时次数为1次,动态时间阈值为:1×1+10=11s,即在初始设定值的基础上增加1s,为11s。若再次处理广播消息的时间小于11s,则不超时,若处理广播消息的时间大于11s,则超时,历史超时次数增加1次。时间增幅值或者也可以是每增加两次超时次数,在上一次处理广播消息时对应的动态时间阈值的基础上增加1s,或者还可以是其他形式。For example, each time the historical timeout is increased, the dynamic time threshold is increased by 1 s based on the dynamic time threshold when the broadcast message was last processed, and is expressed by the formula: T=C×T0+T1. Where T1 is the initial set value of the dynamic time threshold, C is the historical timeout number, and T0 is the time increase value, which is 1. If the initial setting value of the dynamic time threshold is 10s, if the historical timeout is 1 time, the dynamic time threshold is: 1×1+10=11s, that is, 1s is added to the initial setting value, which is 11s. If the time for processing the broadcast message is less than 11s, the timeout is not exceeded. If the time for processing the broadcast message is greater than 11s, the timeout occurs, and the number of historical timeouts is increased by one. The time increase value may also be an increase of 1 s on the basis of the corresponding dynamic time threshold when the broadcast message is last processed, or may be other forms.
并且通过历史超时次数和时间增幅值确定动态时间阈值,能够合理控制广播接收者处理广播消息的超时次数。And the dynamic time threshold is determined by the historical timeout number and the time increase value, and the timeout number of the broadcast receiver processing the broadcast message can be reasonably controlled.
步骤S320:基于获取的所述历史超时次数将所述广播接收者划分等级。Step S320: classify the broadcast recipient according to the obtained history timeout number.
在本实施例中,如果广播接收者处理广播消息的历史超时次数在某一等级的次数范围内,将该广播接收者划分为对应的等级。例如,快速等级的超时次数范围是0-3次,中速等级的超时次数范围为4-6次,慢速等级的超时次数范围是大于6次。若目标广播接收者的历史超时次数为5次,则目标广播接收者的历史超时次数在中速等级的超时次数范围内,将目标广播接收者划分为中速等级。In this embodiment, if the broadcast receiver processes the broadcast message with the historical timeout number within a certain level of the number of times, the broadcast recipient is divided into corresponding levels. For example, the timeout range of the fast level is 0-3 times, the timeout number of the medium speed level is 4-6 times, and the timeout number range of the slow level is more than 6 times. If the historical timeout number of the target broadcast recipient is 5 times, the target broadcast receiver's historical timeout number is within the medium speed level timeout number range, and the target broadcast recipient is divided into the medium speed level.
由此,通过历史超时次数划分广播接收者的等级,能够准确划分广播接收者的等级,以优化广播接收者在广播接收者队列中的顺序。Thus, by dividing the level of the broadcast recipient by the number of historical timeouts, it is possible to accurately classify the broadcast recipients to optimize the order of the broadcast recipients in the broadcast receiver queue.
步骤S330:基于划分的等级调整广播接收者在广播接收者队列中的顺序。Step S330: Adjust the order of the broadcast recipients in the broadcast receiver queue based on the grade of the division.
在本实施例中,按照历史超时次数将广播接收者进行分级,并在同一广播接收者队列中,调整广播接收者的顺序,以使历史超时次数少的广播接收者先处理广播消息,提高广播消息的处理效率,避免处理速度较慢的广播接收者对处理速度较快的广播接收者的影响,保证***稳定性。In this embodiment, the broadcast receivers are ranked according to the historical timeout number, and the order of the broadcast receivers is adjusted in the same broadcast receiver queue, so that the broadcast receivers with less history timeouts first process the broadcast message and improve the broadcast. The processing efficiency of the message avoids the influence of the broadcast receiver with slower processing speed on the broadcast receiver with faster processing speed, and ensures the stability of the system.
图4是本申请一个实施例提供的一种广播接收者的调整方法的流程图,本实施例中,历史参数包括动态时间阈值;所述基于获取的所述历史参数将所述广播接收者划分等级,包括:基于获取的与所述广播接收者对应的动态时间阈值将所述广播接收者划分等级;所述基于划分的等级对所述广播接收者进行调整,包括:基于划分的等级调整所述广播接收者在广播接收者队列中的顺序。FIG. 4 is a flowchart of a method for adjusting a broadcast receiver according to an embodiment of the present disclosure. In this embodiment, a historical parameter includes a dynamic time threshold; and the historical parameter based on the obtained divides the broadcast receiver. The level includes: classifying the broadcast recipient based on the acquired dynamic time threshold corresponding to the broadcast recipient; and adjusting the broadcast recipient based on the split level, including: adjusting the level based on the division The order in which the broadcast recipients are in the broadcast receiver queue.
如图4所示,本实施例提供的技术方案包括:As shown in FIG. 4, the technical solution provided in this embodiment includes:
步骤S410:获取广播接收者处理广播消息对应的动态时间阈值。Step S410: Acquire a dynamic time threshold corresponding to the broadcast receiver processing the broadcast message.
在本实施例中,动态时间阈值用于判断广播接收者处理广播消息是否超时。当广播接收者处理广播消息的时间大于动态时间阈值时,判断该广播接收者处理广播消息超时。动态时间阈值基于获取的历史超时次数、时间增幅值以及初始设定值进行确定。在一实施例中,时间增幅值为每增加设定数量的历史超时次数,动态时间阈值的增加量。In this embodiment, the dynamic time threshold is used to determine whether the broadcast receiver processes the broadcast message or not. When the broadcast receiver processes the broadcast message for a time greater than the dynamic time threshold, it is determined that the broadcast receiver processes the broadcast message timeout. The dynamic time threshold is determined based on the acquired historical timeout number, the time increase value, and the initial set value. In an embodiment, the time increase value is an increase in the dynamic time threshold for each set number of historical timeouts.
在一实施例中,广播接收者处理广播消息的历史超时次数与动态时间阈值相对应。因此,广播接收者处理广播消息时基于的历史超时次数与动态时间阈值对应。例如,广播接收者处理广播消息的超时次数为0,对应的是动态时间阈值的初始设定值。即若广播接收者处理广播消息的超时次数为0,判断处理广播消息是否超时,基于处理广播消息的时间与动态时间阈值的初始设定值进行确定。In an embodiment, the historical timeout of the broadcast recipient processing the broadcast message corresponds to a dynamic time threshold. Therefore, the number of historical timeouts on which the broadcast recipient processes the broadcast message corresponds to the dynamic time threshold. For example, the number of timesout for the broadcast receiver to process the broadcast message is 0, which corresponds to the initial set value of the dynamic time threshold. That is, if the number of timesout of the broadcast receiver processing the broadcast message is 0, it is determined whether the processing broadcast message has timed out, and is determined based on the time at which the broadcast message is processed and the initial set value of the dynamic time threshold.
步骤S420:基于获取的与所述广播接收者对应的动态时间阈值将所述广播接收者划分等级。Step S420: classify the broadcast recipient according to the acquired dynamic time threshold corresponding to the broadcast recipient.
在本实施例中,广播接收者的历史超时次数不同,对应的动态时间阈值不同。如果广播接收者处理广播消息对应的动态时间阈值在某一等级的时间范围内,将该广播接收者划分为对应的等级。In this embodiment, the broadcast receivers have different historical timeout times, and the corresponding dynamic time thresholds are different. If the broadcast receiver processes the dynamic time threshold corresponding to the broadcast message within a certain time range, the broadcast recipient is divided into corresponding levels.
由此,通过动态时间阈值划分广播接收者的等级,能够准确划分广播接收者的等级,以优化广播接收者在广播接收者队列中的顺序。Thus, by dividing the level of the broadcast recipient by the dynamic time threshold, it is possible to accurately classify the broadcast recipients to optimize the order of the broadcast recipients in the broadcast receiver queue.
步骤S430:基于划分的等级调整所述广播接收者在广播接收者队列中的顺序。Step S430: Adjust the order of the broadcast recipients in the broadcast receiver queue based on the grade of the division.
在本实施例中,按照与广播接收者对应的动态时间阈值将广播接收者进行分级,并在同一广播接收者队列中,调整广播接收者的顺序,以使对应的动态时间阈值较少的广播接收者先处理广播消息,提高广播消息的处理效率,避免处理速度较慢的广播接收者对处理速度较快的广播接收者的影响,保证***的稳定性。In this embodiment, the broadcast recipients are ranked according to a dynamic time threshold corresponding to the broadcast recipient, and the order of the broadcast recipients is adjusted in the same broadcast receiver queue to enable a corresponding broadcast with a lower dynamic time threshold. The receiver first processes the broadcast message, improves the processing efficiency of the broadcast message, and avoids the influence of the broadcast receiver with slower processing speed on the broadcast receiver with faster processing speed, and ensures the stability of the system.
图5是本申请一个实施例提供的一种广播接收者的调整方法的流程图,本实施例中,广播接收者的类型包括:***、***应用和三方应用;所述基于获取的所述类型将所述广播接收者划分等级,包括:根据所述广播接收者的类型将所述广播接收者划分为与所述***、所述***应用和所述三方应用分别对应 的等级;所述基于划分的等级对所述广播接收者进行调整,包括:创建与划分的等级对应的广播接收者队列,并将所述广播接收者移动到对应的广播接收者队列中。FIG. 5 is a flowchart of a method for adjusting a broadcast receiver according to an embodiment of the present disclosure. In this embodiment, a type of a broadcast receiver includes: a system, a system application, and a three-party application; Leveling the broadcast recipients includes: classifying the broadcast recipients into levels corresponding to the system, the system application, and the three-party application according to a type of the broadcast recipient; The level of the broadcast recipient is adjusted to include creating a broadcast receiver queue corresponding to the graded division and moving the broadcast recipient to a corresponding broadcast recipient queue.
如图5所示,本实施例提供的技术方案包括:As shown in FIG. 5, the technical solution provided in this embodiment includes:
步骤S510:获取广播接收者的类型。Step S510: Acquire a type of a broadcast recipient.
在一实施例中,广播接收者的类型包括:***、***应用和三方应用。In an embodiment, the types of broadcast recipients include: systems, system applications, and three-party applications.
步骤S520:根据所述广播接收者的类型将所述广播接收者划分为与***、***应用和三方应用分别对应的等级。Step S520: The broadcast recipient is divided into levels corresponding to the system, the system application, and the three-party application according to the type of the broadcast recipient.
在本实施例中,设置***、***应用和三方应用的等级,根据广播接收者的类型将广播接收者划分为与***、***应用和三方应用分别对应的等级。例如,将***、***应用和三方应用的等级分别设置为一级、二级和三级。若一个目标广播接收者的类型为***,则将该目标广播接收划分为与***对应的等级,即一级。In this embodiment, the levels of the system, the system application, and the three-party application are set, and the broadcast recipient is divided into levels corresponding to the system, the system application, and the three-party application according to the type of the broadcast recipient. For example, the levels of system, system application, and three-party applications are set to Level 1, Level 2, and Level 3, respectively. If the type of a target broadcast recipient is a system, the target broadcast reception is divided into levels corresponding to the system, that is, one level.
步骤S530:创建与划分的等级对应的广播接收者队列,并将所述广播接收者移动到对应的广播接收者队列中。Step S530: Create a broadcast receiver queue corresponding to the divided rank, and move the broadcast receiver to the corresponding broadcast receiver queue.
在本实施例中,划分的等级与广播接收者队列对应,并将广播接收者移动到与广播接收者的等级对应的广播接收者队列中。例如,若广播接收者的类型为***,将该广播接收者的移动到与***等级对应的广播接收者队列中。In the present embodiment, the divided rank corresponds to the broadcast receiver queue, and the broadcast recipient is moved to the broadcast receiver queue corresponding to the broadcast recipient's rank. For example, if the type of the broadcast recipient is a system, the broadcast recipient is moved to the broadcast receiver queue corresponding to the system level.
由此,通过广播接收者的类型划分广播接收者的等级,并按照划分的等级对广播接收者进行调整,能够提高广播消息的处理速度以及效率。Thereby, the level of the broadcast recipient is divided by the type of the broadcast recipient, and the broadcast receiver is adjusted according to the divided level, so that the processing speed and efficiency of the broadcast message can be improved.
图6是本申请一个实施例提供的一种广播接收者的调整装置的结构框图,所述装置设置为执行广播接收者的调整方法,如图6所示,所述装置包括获取模块610、划分模块620和调整模块630。FIG. 6 is a structural block diagram of an apparatus for adjusting a broadcast receiver according to an embodiment of the present application. The apparatus is configured to perform a method for adjusting a broadcast receiver. As shown in FIG. 6, the apparatus includes an acquiring module 610, and dividing. Module 620 and adjustment module 630.
其中,获取模块610,设置为:获取广播接收者处理广播消息的历史参数或者广播接收者的类型;The obtaining module 610 is configured to: acquire a historical parameter of a broadcast message processed by a broadcast receiver or a type of a broadcast receiver;
划分模块620,设置为:基于获取的所述历史参数或者所述类型将所述广播接收者划分等级;The dividing module 620 is configured to: classify the broadcast receiver according to the acquired historical parameter or the type;
调整模块630,设置为:基于划分的等级对所述广播接收者进行调整。The adjustment module 630 is configured to: adjust the broadcast recipient based on the grade of the division.
在一实施例中,所述历史参数包括历史平均时间,In an embodiment, the historical parameter includes a historical average time,
所述划分模块620,是设置为:基于获取的所述历史平均时间将所述广播接收者划分等级;The dividing module 620 is configured to: classify the broadcast receiver according to the obtained historical average time;
所述调整模块630,是设置为:基于划分的等级调整广播接收者在广播接收者队列中的顺序。The adjustment module 630 is configured to adjust the order of the broadcast recipients in the broadcast receiver queue based on the level of the division.
在一实施例中,所述历史参数包括历史超时次数,In an embodiment, the historical parameter includes a historical timeout number.
所述划分模块620,是设置为:基于获取的所述历史超时次数将所述广播接收者划分等级;The dividing module 620 is configured to: classify the broadcast receiver according to the obtained historical timeout number;
所述调整模块630,是设置为:基于划分的等级调整广播接收者在广播接收者队列中的顺序。The adjustment module 630 is configured to adjust the order of the broadcast recipients in the broadcast receiver queue based on the level of the division.
在一实施例中,在所述广播接收者处理广播消息的时间大于设定的固定时间阈值的情况下,所述历史超时次数增加一次;或者In an embodiment, in a case where the broadcast receiver processes the broadcast message for a time greater than a set fixed time threshold, the historical timeout number is increased once; or
在所述广播接收者处理广播消息的时间大于动态时间阈值的情况下,所述历史超时次数增加一次,在一实施例中,所述动态时间阈值基于初始设定值、所述历史超时次数以及时间增幅值进行确定,所述时间增幅值为每增加设定数量的超时次数,所述动态时间阈值的增加量。In the case that the time when the broadcast receiver processes the broadcast message is greater than the dynamic time threshold, the historical timeout number is increased once. In an embodiment, the dynamic time threshold is based on an initial set value, the historical timeout number, and The time increase value is determined as the increase in the dynamic time threshold for each set number of timeouts.
在一实施例中,所述历史参数包括动态时间阈值;In an embodiment, the historical parameter includes a dynamic time threshold;
所述划分模块620,是设置为:基于获取的与所述广播接收者对应的动态时间阈值将所述广播接收者划分等级;The dividing module 620 is configured to: classify the broadcast receiver according to a dynamic time threshold corresponding to the broadcast receiver;
所述调整模块630,是设置为:基于划分的等级调整所述广播接收者在广播接收者队列中的顺序;The adjusting module 630 is configured to: adjust an order of the broadcast receivers in a broadcast receiver queue based on the level of the division;
其中,所述动态时间阈值用于判断广播接收者处理广播消息是否超时;所述动态时间阈值基于获取的历史超时次数、时间增幅值以及初始设定值进行确定。The dynamic time threshold is used to determine whether the broadcast receiver processes the broadcast message for timeout; the dynamic time threshold is determined based on the acquired historical timeout number, the time increase value, and the initial set value.
在一实施例中,广播接收者的类型包括:***、***应用和三方应用;In an embodiment, the types of broadcast recipients include: a system, a system application, and a three-party application;
所述划分模块620,是设置为:根据所述广播接收者的类型将所述广播接收者划分为与所述***、所述***应用和所述三方应用分别对应的等级;The dividing module 620 is configured to: divide the broadcast receiver into levels corresponding to the system, the system application, and the three-party application according to the type of the broadcast receiver;
所述调整模块630,是设置为:创建与划分的等级对应的广播接收者队列,并将所述广播接收者移动到对应的广播接收者队列中。The adjusting module 630 is configured to: create a broadcast receiver queue corresponding to the divided level, and move the broadcast receiver to a corresponding broadcast receiver queue.
本实施例提供的一种广播接收者调整装置,通过广播接收者处理广播消息的历史参数或者广播接收者的类型将广播接收者划分等级,并根据等级对广播 接收者进行调整,可以提高处理广播消息的效率,保障***稳定性。The broadcast receiver adjusting apparatus provided in this embodiment can classify the broadcast receiver by the broadcast receiver processing the history parameter of the broadcast message or the type of the broadcast receiver, and adjust the broadcast receiver according to the level, thereby improving the processing broadcast. The efficiency of the message ensures the stability of the system.
本申请实施例提供了一种终端,该终端中可集成本申请实施例提供的广播接收者的调整装置。图7为本申请一个实施例提供的一种终端的结构示意图。如图7所示,该终端700可以包括:存储器701、中央处理器(Central Processing Unit,CPU)702(又称处理器,以下简称CPU)、触摸屏712以及存储在存储器上并可在CPU上运行的计算机程序。所述触摸屏712,用于将用户操作转换成电信号输入至所述CPU,并显示可视输出信号;CPU702执行计算机程序时实现以下步骤:获取广播接收者处理广播消息的历史参数或者广播接收者的类型;基于获取的所述历史参数或者所述类型将所述广播接收者划分等级;基于划分的等级对所述广播接收者进行调整。The embodiment of the present application provides a terminal in which the adjustment apparatus of the broadcast receiver provided by the embodiment of the present application can be integrated. FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in FIG. 7, the terminal 700 may include: a memory 701, a central processing unit (CPU) 702 (also referred to as a processor, hereinafter referred to as a CPU), a touch screen 712, and stored in the memory and operable on the CPU. Computer program. The touch screen 712 is configured to convert a user operation into an electrical signal input to the CPU and display a visual output signal; when the CPU 702 executes the computer program, the following steps are performed: acquiring a historical parameter of the broadcast receiver processing the broadcast message or a broadcast receiver a type; classifying the broadcast recipient based on the acquired historical parameter or the type; adjusting the broadcast recipient based on the ranked level.
所述终端700还包括:外设接口703、RF(Radio Frequency,射频)电路705、音频电路706、扬声器711、电源管理芯片708、输入/输出(I/O)子***709、其他输入/控制设备710以及外部端口704,这些部件通过一个或多个通信总线或信号线707来通信。The terminal 700 further includes: a peripheral interface 703, an RF (Radio Frequency) circuit 705, an audio circuit 706, a speaker 711, a power management chip 708, an input/output (I/O) subsystem 709, and other inputs/controls. Device 710 and external port 704, these components communicate via one or more communication buses or signal lines 707.
应该理解的是,图示终端700仅仅是终端的一个范例,并且终端700可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated terminal 700 is merely one example of a terminal, and that the terminal 700 may have more or fewer components than those shown in the figures, two or more components may be combined, or may have Different component configurations. The various components shown in the figures can 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 terminal of the broadcast receiver integrated adjustment apparatus provided in this embodiment is described in detail below. The terminal uses a mobile phone as an example.
存储器701,所述存储器701可以被CPU702和外设接口703等访问,所述存储器701可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 701 can be accessed by the CPU 702 and the peripheral interface 703, etc., and the memory 701 can include a high speed random access memory, and can also include a nonvolatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
外设接口703,所述外设接口703可以将设备的输入和输出外设连接到CPU702和存储器701。 Peripheral interface 703, which can connect the input and output peripherals of the device to CPU 702 and memory 701.
I/O子***709,所述I/O子***709可以将设备上的输入输出外设,例如触摸屏712和其他输入/控制设备710,连接到外设接口703。I/O子***709可以包括显示控制器7091和用于控制其他输入/控制设备710的一个或多个输入控制器7092。其中,一个或多个输入控制器7092从其他输入/控制设备710接收 电信号或者向其他输入/控制设备710发送电信号,其他输入/控制设备710可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器7092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 709, which can connect input and output peripherals on the device, such as touch screen 712 and other input/control devices 710, to peripheral interface 703. The I/O subsystem 709 can include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Wherein, one or more input controllers 7092 receive electrical signals from other input/control devices 710 or transmit electrical signals to other input/control devices 710, and other input/control devices 710 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel. It is worth noting that the input controller 7092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏712,所述触摸屏712是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 712 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user. The visual output may include graphics, text, icons, videos, and the like.
I/O子***709中的显示控制器7091从触摸屏712接收电信号或者向触摸屏712发送电信号。触摸屏712检测触摸屏上的接触,显示控制器7091将检测到的接触转换为与显示在触摸屏712上的用户界面对象的交互,即实现人机交互,显示在触摸屏712上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。 Display controller 7091 in I/O subsystem 709 receives an electrical signal from touch screen 712 or an electrical signal to touch screen 712. Touch screen 712 detects contact on the touch screen, display controller 7091 converts the detected contact into interaction with a user interface object displayed on touch screen 712, ie, implements human-computer interaction, and the user interface object displayed on touch screen 712 can be operational The icon of the game, the icon of the network to the corresponding network, and the like. It is worth noting that the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
RF电路705,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路705接收并发送RF信号,RF信号也称为电磁信号,RF电路705将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路705可以包括用于执行这些功能的已知电路,其包括但不限于天线***、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 705 is mainly used for establishing communication between the mobile phone and the wireless network (ie, the network side), and realizing data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. Specifically, the RF circuit 705 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 705 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate. RF circuitry 705 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 ( COder-DECoder, codec) Chipset, Subscriber Identity Module (SIM), etc.
音频电路706,设置为从外设接口703接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器711。The audio circuit 706 is arranged to receive audio data from the peripheral interface 703, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 711.
扬声器711,设置为将手机通过RF电路705从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 711 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 705 to sound and play the sound to the user.
电源管理芯片708,设置为为CPU702、I/O子***及外设接口所连接的硬件进行供电及电源管理。The power management chip 708 is configured to provide power and power management for the hardware connected to the CPU 702, the I/O subsystem, and the peripheral interface.
本实施例提供的终端用于执行上述实施例所述的广播接收者的调整方法,其技术原理和产生的技术效果类似,这里不再赘述。The terminal provided in this embodiment is used to perform the adjustment method of the broadcast receiver described in the foregoing embodiment, and the technical principle and the generated technical effect are similar, and details are not described herein again.
本实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述广播接收者的调整方法。The embodiment further provides a computer readable storage medium storing computer executable instructions for performing the adjustment method of the broadcast receiver described above.
工业实用性Industrial applicability
本公开提供的方法,通过广播接收者处理广播消息的历史参数或者广播接收者的类型将广播接收者划分等级,并根据等级对广播接收者进行调整,可以提高处理广播消息的效率,保障***稳定性。The method provided by the present disclosure classifies the broadcast receiver by the broadcast receiver processing the history parameter of the broadcast message or the type of the broadcast receiver, and adjusts the broadcast receiver according to the level, thereby improving the efficiency of processing the broadcast message and ensuring system stability. Sex.

Claims (14)

  1. 一种广播接收者的调整方法,包括:A method for adjusting a broadcast recipient, comprising:
    获取广播接收者处理广播消息的历史参数或者广播接收者的类型;Obtaining a history parameter of a broadcast receiver processing a broadcast message or a type of a broadcast recipient;
    基于获取的所述历史参数或者所述类型将所述广播接收者划分等级;Ranking the broadcast recipient based on the obtained historical parameter or the type;
    基于划分的等级对所述广播接收者进行调整。The broadcast recipient is adjusted based on the ranked level.
  2. 根据权利要求1所述的方法,其中,所述历史参数包括历史平均时间,The method of claim 1 wherein said historical parameters include historical average time,
    所述基于获取的所述历史参数将所述广播接收者划分等级,包括:The classifying the broadcast recipient based on the obtained historical parameter includes:
    基于获取的所述历史平均时间将所述广播接收者划分等级;Ranking the broadcast recipient based on the historical average time obtained;
    所述基于划分的等级对所述广播接收者进行调整,包括:The adjusting the broadcast recipient based on the level of the division comprises:
    基于划分的等级调整所述广播接收者在广播接收者队列中的顺序。The order of the broadcast recipients in the broadcast receiver queue is adjusted based on the level of the division.
  3. 根据权利要求1所述的方法,其中,所述历史参数包括历史超时次数,The method of claim 1 wherein said historical parameters include historical timeouts,
    所述基于获取的所述历史参数将所述广播接收者划分等级,包括:The classifying the broadcast recipient based on the obtained historical parameter includes:
    基于获取的所述历史超时次数将所述广播接收者划分等级;Ranking the broadcast recipient based on the obtained number of historical timeouts;
    所述基于划分的等级对所述广播接收者进行调整,包括:The adjusting the broadcast recipient based on the level of the division comprises:
    基于划分的等级调整所述广播接收者在广播接收者队列中的顺序。The order of the broadcast recipients in the broadcast receiver queue is adjusted based on the level of the division.
  4. 根据权利要求3所述的方法,其中,The method of claim 3, wherein
    在所述广播接收者处理广播消息的时间大于设定的固定时间阈值的情况下,所述历史超时次数增加一次;或者In a case where the broadcast receiver processes the broadcast message for a time greater than a set fixed time threshold, the historical timeout number is incremented once; or
    在所述广播接收者处理广播消息的时间大于动态时间阈值的情况下,所述历史超时次数增加一次,其中,所述动态时间阈值基于初始设定值、所述历史超时次数以及时间增幅值进行确定,所述时间增幅值为每增加设定数量的超时次数,所述动态时间阈值的增加量。In a case that the broadcast receiver processes the broadcast message for a time greater than a dynamic time threshold, the historical timeout number is increased once, wherein the dynamic time threshold is based on an initial set value, the historical timeout number, and a time increase value. It is determined that the time increase value is an increase amount of the dynamic time threshold value for each set number of timeouts.
  5. 根据权利要求1所述的方法,其中,所述历史参数包括动态时间阈值;The method of claim 1 wherein the historical parameter comprises a dynamic time threshold;
    所述基于获取的所述历史参数将所述广播接收者划分等级,包括:The classifying the broadcast recipient based on the obtained historical parameter includes:
    基于获取的与所述广播接收者对应的动态时间阈值将所述广播接收者划分等级;Ranking the broadcast recipient based on the acquired dynamic time threshold corresponding to the broadcast recipient;
    所述基于划分的等级对所述广播接收者进行调整,包括:The adjusting the broadcast recipient based on the level of the division comprises:
    基于划分的等级调整所述广播接收者在广播接收者队列中的顺序;Adjusting the order of the broadcast recipients in the broadcast receiver queue based on the level of the division;
    其中,所述动态时间阈值用于判断广播接收者处理广播消息是否超时;所述动态时间阈值基于获取的历史超时次数、时间增幅值以及初始设定值进行确定。The dynamic time threshold is used to determine whether the broadcast receiver processes the broadcast message for timeout; the dynamic time threshold is determined based on the acquired historical timeout number, the time increase value, and the initial set value.
  6. 根据权利要求1所述的方法,其中,广播接收者的类型包括:***、系 统应用和三方应用;The method of claim 1 wherein the type of broadcast recipient comprises: a system, a system application, and a three-party application;
    所述基于获取的所述类型将所述广播接收者划分等级,包括:The classifying the broadcast recipient based on the type of the acquisition includes:
    根据所述广播接收者的类型将所述广播接收者划分为与所述***、所述***应用和所述三方应用分别对应的等级;Dividing the broadcast recipient into levels corresponding to the system, the system application, and the three-party application, respectively, according to a type of the broadcast recipient;
    所述基于划分的等级对所述广播接收者进行调整,包括:The adjusting the broadcast recipient based on the level of the division comprises:
    创建与划分的等级对应的广播接收者队列,并将所述广播接收者移动到对应的广播接收者队列中。A broadcast receiver queue corresponding to the divided rank is created and the broadcast recipient is moved to the corresponding broadcast recipient queue.
  7. 一种广播接收者的调整装置,包括:A broadcast receiver adjustment device comprising:
    获取模块,设置为:获取广播接收者处理广播消息的历史参数或者广播接收者的类型;The obtaining module is configured to: obtain a historical parameter of the broadcast receiver processing the broadcast message or a type of the broadcast receiver;
    划分模块,设置为:基于获取的所述历史参数或者所述类型将所述广播接收者划分等级;a dividing module, configured to: classify the broadcast receiver according to the acquired historical parameter or the type;
    调整模块,设置为:基于划分的等级对所述广播接收者进行调整。The adjustment module is configured to: adjust the broadcast recipient based on the grade of the division.
  8. 根据权利要求7所述的装置,其中,所述历史参数包括历史平均时间,The apparatus of claim 7 wherein said historical parameter comprises a historical average time,
    所述划分模块,是设置为:基于获取的所述历史平均时间将所述广播接收者划分等级;The dividing module is configured to: classify the broadcast receiver according to the obtained historical average time;
    所述调整模块,是设置为:基于划分的等级调整所述广播接收者在广播接收者队列中的顺序。The adjustment module is configured to adjust an order of the broadcast recipients in a broadcast receiver queue based on the level of the division.
  9. 根据权利要求7所述的装置,其中,所述历史参数包括历史超时次数,The apparatus of claim 7, wherein the historical parameter comprises a historical timeout number,
    所述划分模块,是设置为:基于获取的所述历史超时次数将所述广播接收者划分等级;The dividing module is configured to: classify the broadcast receiver according to the obtained historical timeout times;
    所述调整模块,是设置为:基于划分的等级调整所述广播接收者在广播接收者队列中的顺序。The adjustment module is configured to adjust an order of the broadcast recipients in a broadcast receiver queue based on the level of the division.
  10. 根据权利要求9所述的装置,其中,The apparatus according to claim 9, wherein
    在所述广播接收者处理广播消息的时间大于设定的固定时间阈值的情况下,所述历史超时次数增加一次;或者In a case where the broadcast receiver processes the broadcast message for a time greater than a set fixed time threshold, the historical timeout number is incremented once; or
    在所述广播接收者处理广播消息的时间大于动态时间阈值的情况下,所述历史超时次数增加一次,其中,所述动态时间阈值基于初始设定值、所述历史超时次数以及时间增幅值进行确定,所述时间增幅值为每增加设定数量的超时次数,所述动态时间阈值的增加量。In a case that the broadcast receiver processes the broadcast message for a time greater than a dynamic time threshold, the historical timeout number is increased once, wherein the dynamic time threshold is based on an initial set value, the historical timeout number, and a time increase value. It is determined that the time increase value is an increase amount of the dynamic time threshold value for each set number of timeouts.
  11. 根据权利要求7所述的装置,其中,所述历史参数包括动态时间阈值;The apparatus of claim 7, wherein the historical parameter comprises a dynamic time threshold;
    所述划分模块,是设置为:基于获取的与所述广播接收者对应的动态时间阈值将所述广播接收者划分等级;The dividing module is configured to: classify the broadcast receiver according to a dynamic time threshold corresponding to the broadcast receiver;
    所述调整模块,是设置为:基于划分的等级调整所述广播接收者在广播接收者队列中的顺序;The adjusting module is configured to: adjust an order of the broadcast receivers in a broadcast receiver queue based on a level of division;
    其中,所述动态时间阈值用于判断广播接收者处理广播消息是否超时;所述动态时间阈值基于获取的历史超时次数、时间增幅值以及初始设定值进行确定。The dynamic time threshold is used to determine whether the broadcast receiver processes the broadcast message for timeout; the dynamic time threshold is determined based on the acquired historical timeout number, the time increase value, and the initial set value.
  12. 根据权利要求7所述的装置,其中,广播接收者的类型包括:***、***应用和三方应用;The apparatus of claim 7, wherein the type of broadcast recipient comprises: a system, a system application, and a three-party application;
    所述划分模块,是设置为:根据所述广播接收者的类型将所述广播接收者划分为与所述***、所述***应用和所述三方应用分别对应的等级;The dividing module is configured to: divide the broadcast receiver into levels corresponding to the system, the system application, and the three-party application according to a type of the broadcast receiver;
    所述调整模块,是设置为:创建与划分的等级对应的广播接收者队列,并将所述广播接收者移动到对应的广播接收者队列中。The adjusting module is configured to: create a broadcast receiver queue corresponding to the divided level, and move the broadcast receiver to a corresponding broadcast receiver queue.
  13. 一种终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现以下步骤:A terminal comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the following steps:
    获取广播接收者处理广播消息的历史参数或者广播接收者的类型;Obtaining a history parameter of a broadcast receiver processing a broadcast message or a type of a broadcast recipient;
    基于获取的所述历史参数或者所述类型将所述广播接收者划分等级;Ranking the broadcast recipient based on the obtained historical parameter or the type;
    基于划分的等级对所述广播接收者进行调整。The broadcast recipient is adjusted based on the ranked level.
  14. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-6任一项的方法。A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-6.
PCT/CN2018/078563 2017-03-10 2018-03-09 Broadcast recipient adjustment method, device, and terminal WO2018161956A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710140530.XA CN106851592B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast receiver
CN201710140530.X 2017-03-10

Publications (1)

Publication Number Publication Date
WO2018161956A1 true WO2018161956A1 (en) 2018-09-13

Family

ID=59144119

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/078563 WO2018161956A1 (en) 2017-03-10 2018-03-09 Broadcast recipient adjustment method, device, and terminal

Country Status (2)

Country Link
CN (1) CN106851592B (en)
WO (1) WO2018161956A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851592B (en) * 2017-03-10 2019-12-10 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast receiver
CN106919459B (en) * 2017-03-10 2020-12-04 Oppo广东移动通信有限公司 Management method, device and terminal for broadcast receiver
CN115277557B (en) * 2022-07-25 2024-01-05 Oppo广东移动通信有限公司 Broadcast processing method, device, electronic equipment and storage medium
CN115988437B (en) * 2022-12-27 2023-12-15 中为聚旦数字科技(苏州)有限公司 Service short message monitoring system and method based on big data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491507A (en) * 2013-09-05 2014-01-01 深圳市欧珀通信软件有限公司 Method and device for relocation of orderly broadcast priority
US20140289761A1 (en) * 2013-03-15 2014-09-25 Blinkx, Inc. Systems and Methods of Processing Data Involving Presentation of Information on Android Devices
CN105208590A (en) * 2015-08-17 2015-12-30 广东欧珀移动通信有限公司 Mobile terminal operation system card slack abnormity detection recovery method and mobile terminal
CN105550104A (en) * 2015-12-08 2016-05-04 北京奇虎科技有限公司 Application program performance test method and device
CN105988868A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Method for transferring application programs and terminal
CN106851592A (en) * 2017-03-10 2017-06-13 广东欧珀移动通信有限公司 A kind of method of adjustment of broadcast recipients, device and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090028564A1 (en) * 2007-07-27 2009-01-29 Villarruel Fernando X Dual Broadcast and Narrowcast Systems and Methods
DE112011100184B4 (en) * 2011-05-24 2015-07-09 Spreadtrum Communications (Shanghai) Co., Ltd. Multi-mode, multi-SIM and multi-readiness communication terminal, and arbitration method and apparatus for arbitrating a reception conflict thereof
CN106406821A (en) * 2016-08-15 2017-02-15 平安科技(深圳)有限公司 Data processing request sorting method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140289761A1 (en) * 2013-03-15 2014-09-25 Blinkx, Inc. Systems and Methods of Processing Data Involving Presentation of Information on Android Devices
CN103491507A (en) * 2013-09-05 2014-01-01 深圳市欧珀通信软件有限公司 Method and device for relocation of orderly broadcast priority
CN105988868A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Method for transferring application programs and terminal
CN105208590A (en) * 2015-08-17 2015-12-30 广东欧珀移动通信有限公司 Mobile terminal operation system card slack abnormity detection recovery method and mobile terminal
CN105550104A (en) * 2015-12-08 2016-05-04 北京奇虎科技有限公司 Application program performance test method and device
CN106851592A (en) * 2017-03-10 2017-06-13 广东欧珀移动通信有限公司 A kind of method of adjustment of broadcast recipients, device and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
QING, SIHAN: "Research on Android Security of Broadcasting Mechanism", TELECOMMUNICATIONS SCIENCE, 20 October 2016 (2016-10-20) *

Also Published As

Publication number Publication date
CN106851592B (en) 2019-12-10
CN106851592A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
WO2018161956A1 (en) Broadcast recipient adjustment method, device, and terminal
CN106919459B (en) Management method, device and terminal for broadcast receiver
US10819455B2 (en) Broadcast processing method, non-transitory storage medium, and electronic device
US11160052B2 (en) Method for adjusting broadcast receiver queue, storage medium and electronic device
US11157334B2 (en) Control method and apparatus for broadcast sending, storage medium, and electronic device
US10097292B2 (en) Method, device, terminal and storage medium for adjusting broadcast message queue
US11051272B2 (en) Method for arranging broadcast message in operating system and electronic device
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
CN106937258B (en) A kind of control method of broadcast, device and mobile terminal
CN106851014A (en) Adjust method, device and the terminal of broadcast message queue
US20200004614A1 (en) Broadcast Transmission Method, Terminal, and Storage Medium
US10990460B2 (en) Method of generating broadcast queue, storage medium, and terminal
US10785741B2 (en) Registration method for broadcast receiver, terminal and storage medium
CN106844070B (en) Broadcast control method and device and mobile terminal
US20210141677A1 (en) Broadcast sending control method and apparatus, storage medium, and electronic device
CN106936828B (en) Method, device and terminal for adjusting broadcast receiver queue
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN107402816B (en) Method, device, terminal and storage medium for adjusting work queue of touch screen
US20180262358A1 (en) Method for monitoring broadcast message and terminal
CN106919461B (en) Method and device for adjusting broadcast receiver queue and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18763967

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18763967

Country of ref document: EP

Kind code of ref document: A1