CN106921947B - Method, device and terminal for adjusting broadcast message queue - Google Patents

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

Info

Publication number
CN106921947B
CN106921947B CN201710144263.3A CN201710144263A CN106921947B CN 106921947 B CN106921947 B CN 106921947B CN 201710144263 A CN201710144263 A CN 201710144263A CN 106921947 B CN106921947 B CN 106921947B
Authority
CN
China
Prior art keywords
broadcast message
broadcast
terminal
same
load information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201710144263.3A
Other languages
Chinese (zh)
Other versions
CN106921947A (en
Inventor
裴润升
付亮晶
林志泳
吴汝煜
张俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710144263.3A priority Critical patent/CN106921947B/en
Publication of CN106921947A publication Critical patent/CN106921947A/en
Priority to PCT/CN2017/106607 priority patent/WO2018161575A1/en
Application granted granted Critical
Publication of CN106921947B publication Critical patent/CN106921947B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a method, a device and a terminal for adjusting a broadcast message queue. The method comprises the following steps: acquiring current load information; judging whether the terminal is in a busy state at present according to the current load information; and if the terminal is in a busy state currently, deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue. According to the embodiment of the invention, whether the terminal is in a busy state is judged according to the load information, and the same broadcast message sent by the same broadcast sender in the broadcast message queue in the busy state is deleted, so that the broadcast message can be prevented from being blocked, the system can be prevented from being blocked, and the system overhead can be reduced.

Description

Method, device and terminal for adjusting broadcast message queue
Technical Field
The present invention relates to system broadcast technologies, and in particular, to a method, an apparatus, and a terminal for adjusting a broadcast message queue.
Background
The Android (Android) system is an operating system of a mobile phone and other terminals which are widely applied at present. In the Android system, a plurality of different application programs exist, in order to rapidly transmit information in the different application programs, the Android system is realized by using a broadcasting mechanism, and when a message needs to be notified to the different application programs, the message is sent to the different application programs through broadcasting.
In the Android system, the broadcast messages sent by broadcast senders are not limited, so that one broadcast sender can send any number of broadcasts at will or send broadcasts very frequently, and the broadcast messages to be processed in a broadcast message queue are very much, so that the processing speed is reduced, the broadcast messages are blocked, the system overhead is increased, and the normal operation of the system is influenced.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a terminal for adjusting a broadcast message queue, which can avoid broadcast message blockage and reduce system overhead.
In a first aspect, an embodiment of the present invention provides a method for adjusting a broadcast message queue, where the method includes:
acquiring current load information;
judging whether the terminal is in a busy state at present according to the current load information;
and if the terminal is in a busy state currently, deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue.
In a second aspect, an embodiment of the present invention further provides an apparatus for adjusting a broadcast message queue, where the apparatus includes:
the information acquisition module is used for acquiring current load information;
the busy state judging module is used for judging whether the terminal is in a busy state at present according to the current load information;
and the message processing module is used for deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue if the terminal is in a busy state at present.
In a third aspect, an embodiment of the present invention further provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps when executing the computer program:
acquiring current load information;
judging whether the terminal is in a busy state at present according to the current load information;
and if the terminal is in a busy state currently, deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue.
According to the embodiment of the invention, whether the terminal is in a busy state is judged according to the load information, and the same broadcast message sent by the same broadcast sender in the broadcast message queue in the busy state is deleted, so that the broadcast message can be prevented from being blocked, the system can be prevented from being blocked, and the system overhead can be reduced.
Drawings
Fig. 1 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for adjusting a queue of broadcast messages according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for adjusting a queue of broadcast messages according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method for adjusting a queue of broadcast messages according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating an apparatus for adjusting a broadcast message queue according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention, where the embodiment is applicable to a case where a broadcast message transmission queue is adjusted, and the method may be implemented by a device for adjusting a broadcast message queue, where the device may be implemented by software and/or hardware, the device may be integrated in a terminal, and the terminal may be a smart phone, a tablet computer, or the like, and the method includes:
step 101, obtaining current load information.
The load information may be understood as parameter information capable of characterizing the terminal operation condition, for example, the number of currently operating programs, the number of loaded applications, the usage of the CPU, or the size of the occupied memory. The load information may represent the high or low load of the terminal, with respect to the computing power of the CPU. Too high a load will cause many processes to slow down, and it will take a long time to open a new process, causing the system to jam, so it is generally recommended not to make the load too high.
Preferably, the load information includes at least one of: CPU utilization rate, memory utilization rate and occupation rate of file IO resources.
The CPU utilization is a CPU resource occupied by the running program, and indicates a situation of the running program at a certain time point by the terminal. The higher the usage rate, the more programs the terminal runs at this time. Memory usage, also known as memory occupancy, refers to the memory consumed by the process. A file IO (Input-Output) may be referred to as an IO without a cache, where the IO without a cache refers to that each read/write operation calls one system call in a kernel. The load can be represented by the size of any one or more of the CPU utilization rate, the memory utilization rate and the occupation rate of the file IO resources.
And 102, judging whether the terminal is in a busy state at present according to the current load information.
The current CPU load can be judged according to the current load information, and whether the terminal is busy at present can be identified according to a preset algorithm.
And 103, if the terminal is in a busy state at present, deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue.
The broadcast mechanism is essentially a communication method between components in an operating system of the mobile terminal, and is a mechanism widely used for transmitting messages between application programs. For example, under the android system of the mobile terminal, after some operations are completed, a broadcast message is sent. The broadcast message may be a variety of event message data generated in the operating system. For example, a short message is sent or a call is made, both of which send a broadcast, and when an application receives the broadcast, corresponding processing can be performed. The broadcast mechanism includes three basic elements: the system includes a broadcast for sending the broadcast, a broadcast receiver for receiving the broadcast, and intention content, wherein the broadcast receiver can tell the system what type of broadcast is interested in by calling a function, and register the broadcast receiver with the system in order to have permission to receive the type of broadcast message. The intention content is used for a medium that holds broadcast-related information.
In the Android system, the activityManagerservice is a broadcast center in a broadcast mechanism of the Android system and is responsible for registration and release operations of all broadcasts in the system, wherein the registration of the broadcasts refers to a process of registering a broadcast receiver in the activityManagerservice by an application program. The distribution of the broadcast includes the broadcast sender sending the broadcast to an activiymanagervice, which, after receiving the broadcast, checks in its own registry which broadcast receivers subscribe to the broadcast, and then sends the broadcast one by one to the broadcast receivers.
The Android system broadcast has some similarities with the broadcast station broadcast in the traditional meaning, and is called as broadcast because the sender is only responsible for sending, and does not care whether the receiver receives the message data or not, and does not care how the receiver processes the message data. In addition, the broadcast message may be received by more than one application or may not be received by any application.
The broadcast message queue refers to a queue form formed by sequentially enqueuing the broadcast messages according to the sequence of the broadcast time. The broadcast message queue may be a default broadcast queue or a third party application broadcast queue. Illustratively, the broadcast message queue may be a queue formed by system broadcasts including a bright screen broadcast, an unlock broadcast, a network status change broadcast, a bluetooth status change broadcast, a switching language broadcast, a switching theme broadcast, and the like, or a queue formed by broadcasts sent by third-party application software. The broadcast messages may be named when they are created, and the same broadcast message may be broadcast messages of the same name. For example, a plurality of broadcast messages each named "bright screen broadcast" may be referred to as the same broadcast message. Over a period of time, the same broadcast sender may send multiple broadcast messages, some of which are identical. When the terminal is busy, the same broadcast message sent by the same broadcast sender in the broadcast message queue can be deleted, and broadcast congestion can be reduced. Illustratively, taking a switching language broadcast as an example, the same broadcast sender has successively transmitted multiple switching language broadcasts. When the terminal is busy, the broadcast message can be processed, for example, a part of the switching language broadcast information can be deleted, or only a proper amount of newly queued switching language broadcast messages in the broadcast message queue can be reserved, so as to reduce broadcast congestion. If the terminal is not busy, no other processing is required. And according to the queuing sequence in the broadcast message queue, the broadcast messages are distributed in sequence.
According to the embodiment of the invention, whether the terminal is in a busy state is judged according to the load information, and the same broadcast message sent by the same broadcast sender in the broadcast message queue in the busy state is deleted, so that the broadcast message can be prevented from being blocked, the system can be prevented from being blocked, and the system overhead can be reduced.
Fig. 2 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention, where the method of the embodiment includes:
step 201, obtaining current load information.
Step 202, when the current load information meets a preset condition, determining that the terminal is in a busy state at present.
The preset condition may be set according to some parameters of the performance of the terminal CPU, and the preset condition may limit at least one type of load information, for example, the preset condition may be that the CPU utilization is higher than 80%, or the CPU utilization is higher than 80% and the memory utilization is higher than 80%, or the CPU utilization is higher than 75%, the memory utilization is higher than 80% and the occupancy of the file IO resource is higher than 85%.
Step 203, the same broadcast message sent by the same broadcast sender in the broadcast message queue is pruned.
The embodiment of the invention judges whether the terminal is in a busy state or not by setting the preset condition of the load information, can simply and accurately judge the state of the terminal, and delete the same broadcast message sent by the same broadcast sender in the broadcast message queue in the busy state, thereby avoiding the blockage of the broadcast message, avoiding the blockage of the system and reducing the system overhead.
Fig. 3 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention, where the method of the embodiment includes:
step 301, obtaining current load information.
Step 302, judging whether the terminal is in a busy state at present according to the current load information.
Step 303, if the terminal is currently in a busy state, counting the same broadcast messages sent by the same broadcast sender in the broadcast message queue.
Wherein the source of the information, i.e. the broadcast sender, can be determined from the broadcast message. The broadcast sender may be determined, for example, by obtaining an associated identification or associated configuration parameter of the broadcast message. The broadcast message type may be determined according to the characteristics of the broadcast message and statistics may be performed on the same broadcast message.
For example, in the Android system, a broadcast sender of a broadcast message may be determined through ActivityManagerService.
And step 304, reserving a preset number of broadcast messages according to the enqueue sequence of the same broadcast messages.
The preset number can be set according to the response speed of the terminal and the like, and can also be determined according to the length of the current broadcast message queue. According to the same queuing sequence of the broadcast messages, the preset number of the broadcast messages are reserved, and the rest broadcast messages are deleted, so that the broadcast message blockage is reduced, and the system is prevented from being blocked.
Optionally, reserving a preset number of broadcast messages according to the enqueue order of the same broadcast message, including: removing the broadcast messages which are queued first in the same broadcast messages, and reserving a preset number of broadcast messages which are queued later; or removing the broadcast messages enqueued later in the same broadcast message, and reserving a preset number of broadcast messages enqueued earlier.
For the same broadcast message, according to the sequence of enqueue in the broadcast message queue, reserving the preset number of the broadcast messages enqueued after the enqueue, and removing other broadcast messages. Illustratively, if the preset number is 2, the number of the same broadcast messages sent by the broadcast sender for application a is counted as 4, and the messages are named as a1, a2, A3 and a4 in order of enqueuing, and then all the broadcast messages of the type before A3 and a4 are removed from the reserved 2 broadcast messages for the post-enqueue, i.e., A3 and a 4. Whether the terminal is in a busy state or not is judged according to the load information, the same broadcast messages sent by the same broadcast senders in the broadcast message queue in the busy state are counted, the broadcast messages which are queued first are removed, and the preset number of the broadcast messages which are queued later are reserved, so that the number of the broadcast messages can be reduced, the blockage of the broadcast messages is avoided, the system jamming phenomenon is avoided, and the system overhead is reduced. Meanwhile, the smooth distribution of the late-enqueue broadcast messages is ensured, and the loss of new broadcast messages is avoided.
For the same broadcast message, according to the sequence of enqueue in the queue of the broadcast message, keeping the preset number of the broadcast messages enqueued first, and removing other broadcast messages. Illustratively, if the preset number is 2, the number of the same broadcast messages sent by the broadcast sender for application a is counted as 4, and the messages are named as a1, a2, A3 and a4 in order of enqueuing, and at this time, the 2 broadcast messages enqueued first, i.e., a1 and a2, are retained, and all the broadcast messages of this type after a1 and a2 are removed. Whether the terminal is in a busy state or not is judged according to the load information, the same broadcast messages sent by the same broadcast senders in the broadcast message queue in the busy state are counted, the broadcast messages which are queued after being removed are reserved, the preset number of the broadcast messages which are queued first are reserved, the number of the broadcast messages can be reduced, the broadcast message blockage is avoided, the system jamming phenomenon is avoided, and the system overhead is reduced. Meanwhile, the method ensures that the first-in broadcast message is smoothly distributed, and avoids the loss of the first-in broadcast message with longer waiting time.
Fig. 4 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention, where the method of this embodiment includes:
step 401, obtaining current load information.
And 402, judging whether the terminal is in a busy state at present according to the current load information.
Step 403, if the terminal is currently in a busy state, performing a deletion process on the same broadcast message sent by the same broadcast sender in the broadcast message queue.
Step 404, after receiving a broadcast message sending request, identifying whether a broadcast message identical to the broadcast message requested to be sent by the broadcast message sending request exists in a current broadcast message queue; if so, step 405 is performed, otherwise step 406 is performed.
Step 405, replacing the broadcast message requested to be sent by the broadcast message sending request with the same broadcast message in the current broadcast message queue.
Step 406, allowing the broadcast message requested to be sent by the broadcast message sending request to enter the current broadcast message queue.
The current broadcast message queue may be understood as a broadcast message queue formed by all the undistributed broadcast messages before a time node, which is a current time point. When a new broadcast message sending request is received, the broadcast message is matched with the broadcast message in the broadcast message queue before the broadcast message is not received. If the current broadcast message queue contains the broadcast message same as the broadcast message, the existing same broadcast message can be replaced by the broadcast message, and if the current broadcast message queue does not contain the broadcast message, the broadcast message is added into the broadcast message queue to wait for subsequent processing.
It should be noted that, in the embodiment of the present invention, the above-mentioned process of determining whether the terminal is busy and performing deletion processing on the same broadcast message sent by the same broadcast sender in the broadcast message team when the terminal is busy, and the sequence between the process of processing the newly received broadcast message are not limited, that is, there is no strict sequence between steps 401 and 404 and 406, and the sequence is not limited, and the sequence is within the protection scope of the embodiment of the present invention.
According to the embodiment of the invention, whether the terminal is in a busy state is judged according to the load information, and the same broadcast message sent by the same broadcast sender in the broadcast message queue in the busy state is deleted, so that the broadcast message can be prevented from being blocked, the system can be prevented from being blocked, and the system overhead can be reduced. Meanwhile, the newly received broadcast messages are processed, so that the problem that the same broadcast messages are frequently sent to a system to bring large expenses can be avoided, the loss of certain types of broadcast messages can not be caused, and the guarantee is provided for orderly broadcast message distribution.
Fig. 5 is a block diagram of an apparatus for adjusting a broadcast message queue according to an embodiment of the present invention, which may be implemented by software and/or hardware, and may be generally integrated in a terminal, and may control a broadcast message in the terminal by performing a method for adjusting the broadcast message queue. As shown in fig. 5, the apparatus includes an information acquiring module 501, a busy state determining module 502, and a message processing module 503.
An information obtaining module 501, configured to obtain current load information;
a busy state determining module 502, configured to determine whether the terminal is currently in a busy state according to the current load information;
the message processing module 503 is configured to, if the terminal is currently in a busy state, perform a puncturing process on the same broadcast message sent by the same broadcast sender in the broadcast message queue.
According to the device for adjusting the broadcast message queue, whether the terminal is in a busy state or not is judged according to the load information, and the same broadcast message sent by the same broadcast sender in the broadcast message queue in the busy state is deleted, so that the broadcast message can be prevented from being blocked, the system can be prevented from being blocked, and the system overhead can be reduced.
Optionally, the busy state determining module 502 includes:
and the busy state determining unit is used for determining that the terminal is in a busy state currently when the current load information meets a preset condition.
Optionally, the message processing module 503 includes:
the message counting unit is used for counting the same broadcast messages sent by the same broadcast sender in the broadcast message queue;
and the message retaining unit is used for retaining the preset number of broadcast messages according to the enqueue sequence of the same broadcast message.
Optionally, the message retaining unit is specifically configured to:
removing the broadcast messages which are queued first in the same broadcast messages, and reserving a preset number of broadcast messages which are queued later; or
And removing the broadcast messages which are queued later in the same broadcast message, and reserving a preset number of broadcast messages which are queued earlier.
Optionally, the method further includes:
the message identification module is used for identifying whether the broadcast message which is the same as the broadcast message requested to be sent by the broadcast message sending request exists in the current broadcast message queue or not after the broadcast message sending request is received;
and the message enqueue processing module is used for replacing the broadcast message requested to be sent by the broadcast message sending request with the same broadcast message in the current broadcast message queue if the broadcast message is available.
Optionally, the load information includes at least one of: CPU utilization rate, memory utilization rate and occupation rate of file IO resources.
The device for adjusting the broadcast message queue can execute the method for adjusting the broadcast message queue provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the executed method for adjusting the broadcast message queue. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
The embodiment of the invention also provides a terminal which can comprise the device for adjusting the broadcast message queue provided by any embodiment of the invention. Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention, where the terminal may include: a housing (not shown), a memory 601, a Central Processing Unit (CPU) 602 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 601 and operable on the processor 602, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU602 and the memory 601 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 601 is used for storing a computer program which can run on the processor; the CPU602 reads and executes the computer program stored in the memory 601.
The terminal further includes: peripheral interfaces 603, RF (Radio Frequency) circuitry 605, audio circuitry 606, speakers 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other input/control devices 610, and external ports 604, which communicate via one or more communication buses or signal lines 607.
It should be understood that the illustrated terminal 600 is merely one example of a terminal and that the terminal 600 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal for adjusting a broadcast message queue according to an embodiment of the present invention, where the terminal is a mobile phone.
A memory 601, the memory 601 being accessible by the CPU602, the peripheral interface 603, and the like, the memory 601 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 603, said peripheral interface 603 may connect input and output peripherals of the device to the CPU602 and the memory 601.
An I/O subsystem 609, the I/O subsystem 609 may connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610, to the peripheral interface 603. The I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610. Where one or more input controllers 6092 receive electrical signals from or transmit electrical signals to other input/control devices 610, the other input/control devices 610 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 6092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 612, which touch screen 612 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch screen 612 or transmits electrical signals to the touch screen 612. The touch screen 612 detects a contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 612, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 612 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 605 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 605 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 605 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. RF circuitry 605 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electric signal, and transmit the electric signal to the speaker 611.
The speaker 611 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 605 into sound and play the sound to the user.
And a power management chip 608 for supplying power and managing power to the hardware connected to the CPU602, the I/O subsystem, and the peripheral interface.
The CPU602 provided in the embodiment of the present invention implements the following steps when executing the computer program stored in the memory 601:
acquiring current load information;
judging whether the terminal is in a busy state at present according to the current load information;
and if the terminal is in a busy state currently, deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue.
The terminal can execute the method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of the execution method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A method for adjusting a queue of broadcast messages, the method comprising:
acquiring current load information, wherein the current load information is parameter information capable of representing the operation condition of a terminal, and the load information comprises at least one of the following: CPU utilization rate, memory utilization rate and occupation rate of file IO resources;
judging whether the terminal is in a busy state at present according to the current load information;
if the terminal is in a busy state at present, deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue;
the method for deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue comprises the following steps:
determining a broadcast sender according to the identifier or the configuration parameter of the broadcast message, determining the type of the broadcast message according to the characteristics of the broadcast message, and counting the same broadcast messages sent by the same broadcast sender in a broadcast message queue;
reserving a preset number of broadcast messages according to the queuing sequence of the same broadcast message, wherein the preset number is determined according to the response speed of the terminal and the length of the current broadcast message queue;
judging whether the terminal is in a busy state at present according to the current load information comprises the following steps:
and when the current load information meets a preset condition, determining that the terminal is in a busy state at present, wherein the preset condition limits at least one type of load information.
2. The method of claim 1, wherein reserving a preset number of broadcast messages according to the enqueue order of the same broadcast message comprises:
removing the broadcast messages which are queued first in the same broadcast messages, and reserving a preset number of broadcast messages which are queued later; or
And removing the broadcast messages which are queued later in the same broadcast message, and reserving a preset number of broadcast messages which are queued earlier.
3. The method of any of claims 1-2, further comprising:
after receiving a broadcast message sending request, identifying whether a broadcast message identical to the broadcast message requested to be sent by the broadcast message sending request exists in a current broadcast message queue;
and if so, replacing the broadcast message requested to be transmitted by the broadcast message transmission request with the same broadcast message in the current broadcast message queue.
4. An apparatus for adjusting a queue of broadcast messages, the apparatus comprising:
an information obtaining module, configured to obtain current load information, where the current load information is parameter information capable of characterizing an operating condition of a terminal, and the load information includes at least one of the following: CPU utilization rate, memory utilization rate and occupation rate of file IO resources;
the busy state judging module is used for judging whether the terminal is in a busy state at present according to the current load information;
the message processing module is used for deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue if the terminal is in a busy state at present;
the message processing module comprises:
the message counting unit is used for determining a broadcast sender according to the identifier or the configuration parameter of the broadcast message, determining the type of the broadcast message according to the characteristics of the broadcast message and counting the same broadcast message sent by the same broadcast sender in the broadcast message queue;
a message retaining unit, configured to retain a preset number of broadcast messages according to the enqueue order of the same broadcast message, where the preset number is determined according to a response speed of a terminal and a length of a current broadcast message queue;
the busy state judging module includes:
and the busy state determining unit is used for determining that the terminal is in a busy state at present when the current load information meets a preset condition, and the preset condition limits at least one type of load information.
5. The apparatus according to claim 4, wherein the message reservation unit is specifically configured to:
removing the broadcast messages which are queued first in the same broadcast messages, and reserving a preset number of broadcast messages which are queued later; or
And removing the broadcast messages which are queued later in the same broadcast message, and reserving a preset number of broadcast messages which are queued earlier.
6. The apparatus of any of claims 4-5, further comprising:
the message identification module is used for identifying whether the broadcast message which is the same as the broadcast message requested to be sent by the broadcast message sending request exists in the current broadcast message queue or not after the broadcast message sending request is received;
and the message enqueue processing module is used for replacing the broadcast message requested to be sent by the broadcast message sending request with the same broadcast message in the current broadcast message queue if the broadcast message is available.
7. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of:
acquiring current load information, wherein the current load information is parameter information capable of representing the operation condition of a terminal, and the load information comprises at least one of the following: CPU utilization rate, memory utilization rate and occupation rate of file IO resources;
judging whether the terminal is in a busy state at present according to the current load information;
if the terminal is in a busy state at present, deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue;
the method for deleting the same broadcast message sent by the same broadcast sender in the broadcast message queue comprises the following steps:
counting the same broadcast messages sent by the same broadcast sender in the broadcast message queue;
and reserving a preset number of broadcast messages according to the queuing sequence of the same broadcast message, wherein the preset number is determined according to the response speed of the terminal and the length of the current broadcast message queue.
CN201710144263.3A 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue Expired - Fee Related CN106921947B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710144263.3A CN106921947B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue
PCT/CN2017/106607 WO2018161575A1 (en) 2017-03-10 2017-10-17 Method and device for adjusting broadcast message queue, storage medium, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710144263.3A CN106921947B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue

Publications (2)

Publication Number Publication Date
CN106921947A CN106921947A (en) 2017-07-04
CN106921947B true CN106921947B (en) 2020-09-29

Family

ID=59461349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710144263.3A Expired - Fee Related CN106921947B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue

Country Status (2)

Country Link
CN (1) CN106921947B (en)
WO (1) WO2018161575A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921947B (en) * 2017-03-10 2020-09-29 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast message queue
CN107729158B (en) * 2017-09-20 2022-01-11 惠州Tcl移动通信有限公司 Method for simplifying application program register, storage medium and electronic equipment
CN109379719B (en) * 2018-11-26 2021-11-16 努比亚技术有限公司 Application program broadcast processing method and device and computer readable storage medium
CN110633161B (en) * 2019-09-19 2022-09-02 北京安云世纪科技有限公司 Broadcast processing method and device
CN116088714B (en) * 2022-05-26 2024-05-28 荣耀终端有限公司 Message prompt box processing method and related device
CN116701008A (en) * 2022-09-23 2023-09-05 荣耀终端有限公司 Broadcasting method and apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101835043A (en) * 2010-03-23 2010-09-15 熔点网讯(北京)科技有限公司 Adaptive bandwidth desktop sharing method based on block encoding
CN105208590A (en) * 2015-08-17 2015-12-30 广东欧珀移动通信有限公司 Mobile terminal operation system card slack abnormity detection recovery method and mobile terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100463542C (en) * 2005-03-03 2009-02-18 中兴通讯股份有限公司 Method for transmitting broadcast channel assignment message in CDMA standard group communication system
CN103595547B (en) * 2013-11-15 2016-07-13 北京奇虎科技有限公司 The broadcast hold-up interception method of smart machine and device
CN104375861B (en) * 2014-11-04 2017-06-09 北京奇虎科技有限公司 Application program based on Android platform exempts from method, device and the terminal of installation and operation
CN105335243A (en) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 Broadcast message operation method and system in Android system
CN106851015B (en) * 2017-03-10 2020-09-22 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast message queue
CN106851014B (en) * 2017-03-10 2020-06-30 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast message queue
CN106844069A (en) * 2017-03-10 2017-06-13 广东欧珀移动通信有限公司 Adjust method, device and the terminal of broadcast message queue
CN106921947B (en) * 2017-03-10 2020-09-29 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast message queue

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101835043A (en) * 2010-03-23 2010-09-15 熔点网讯(北京)科技有限公司 Adaptive bandwidth desktop sharing method based on block encoding
CN105208590A (en) * 2015-08-17 2015-12-30 广东欧珀移动通信有限公司 Mobile terminal operation system card slack abnormity detection recovery method and mobile terminal

Also Published As

Publication number Publication date
WO2018161575A1 (en) 2018-09-13
CN106921947A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
CN106921947B (en) Method, device and terminal for adjusting broadcast message queue
CN106851014B (en) Method, device and terminal for adjusting broadcast message queue
CN106851015B (en) Method, device and terminal for adjusting broadcast message queue
US11051272B2 (en) Method for arranging broadcast message in operating system and electronic device
US10097292B2 (en) Method, device, terminal and storage medium for adjusting broadcast message queue
US20180262284A1 (en) Method, apparatus and terminal device for sending broadcast
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
US11086697B2 (en) Broadcast-controlling method in operating system and mobile terminal
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
EP3486770A1 (en) Processing method, device and storage medium for implementing automatic startup
CN109165114B (en) Application program no-response processing method and device, storage medium and intelligent terminal
EP3588993B1 (en) Broadcast sending method and terminal
US10990460B2 (en) Method of generating broadcast queue, storage medium, and terminal
EP3373137B1 (en) Method, apparatus and terminal device for sending broadcast
US10863521B1 (en) Broadcast receiver control method and apparatus, and mobile terminal
CN106844070B (en) Broadcast control method and device and mobile terminal
CN106936826B (en) Registration method and device of broadcast receiver and terminal equipment
CN109614248B (en) Message compression method, device, storage medium and terminal equipment
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN106850458B (en) Broadcast the message the method, apparatus and terminal being lined up
CN106919461B (en) Method and device for adjusting broadcast receiver queue and terminal equipment

Legal Events

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

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200929

CF01 Termination of patent right due to non-payment of annual fee