WO2018161573A1 - Broadcast receiver queue adjusting method and apparatus, storage medium, and electronic device - Google Patents
Broadcast receiver queue adjusting method and apparatus, storage medium, and electronic device Download PDFInfo
- Publication number
- WO2018161573A1 WO2018161573A1 PCT/CN2017/106605 CN2017106605W WO2018161573A1 WO 2018161573 A1 WO2018161573 A1 WO 2018161573A1 CN 2017106605 W CN2017106605 W CN 2017106605W WO 2018161573 A1 WO2018161573 A1 WO 2018161573A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- broadcast
- queue
- broadcast receiver
- receiver
- preset
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/543—Local
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
Definitions
- the embodiments of the present invention relate to computer technologies, and in particular, to a broadcast receiver queue adjustment method, apparatus, storage medium, and electronic device.
- Broadcast is a widely used mechanism for transmitting information between applications. Taking the Android operating system as an example, it uses broadcast to realize data transmission and sharing between applications. Typically, such as Android's own text messages, telephones and other broadcasts.
- the present application provides a broadcast receiver queue adjustment method, apparatus, storage medium, and electronic device, which improves broadcast processing efficiency, reduces system resource consumption, and increases system stability.
- the embodiment of the present application provides a broadcast receiver queue adjustment method, including:
- the process corresponding to the broadcast receiver is traversed, and the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue.
- the embodiment of the present application further provides a broadcast receiver queue adjustment apparatus, including:
- An obtaining module configured to acquire a broadcast message to be sent in a broadcast sending queue
- a receiver determining module configured to determine a broadcast receiver corresponding to the broadcast message to be sent
- a process traversal module configured to traverse a process corresponding to the broadcast receiver
- the queue adjustment module is configured to set a broadcast receiver whose process activity meets a preset condition to a front end of the broadcast receiving queue.
- an embodiment of the present application provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to perform the steps in the broadcast receiver queue adjustment method.
- an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
- the process corresponding to the broadcast receiver is traversed, and the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue.
- the present application provides a broadcast receiver queue adjustment method, apparatus, storage medium, and electronic device, which improves broadcast processing efficiency, reduces system resource consumption, and increases system stability.
- FIG. 1 is a flowchart of a broadcast receiver queue adjustment method according to an embodiment of the present application.
- FIG. 2 is a flowchart of another method for adjusting a broadcast receiver queue according to an embodiment of the present application.
- FIG. 3 is a flowchart of still another method for adjusting a broadcast receiver queue according to an embodiment of the present application.
- FIG. 4 is a structural block diagram of a broadcast receiver queue adjustment apparatus according to an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- the broadcast sender sends a broadcast message by calling the sendBroadcast function
- the broadcast receiver registers the broadcast receiver (BroadcastReceiver) in the management module by calling the registerReceiver function, and defines a broadcast message of interest to the broadcaster. To achieve the reception of the corresponding broadcast message.
- a broadcast receiver has a defect in receiving a broadcast transmitted by a broadcast sender, so that the broadcast processing efficiency is low, system resource consumption is excessive, and stability is poor.
- the embodiment of the present application provides a broadcast receiver queue adjustment method, including:
- the process corresponding to the broadcast receiver is traversed, and the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue.
- the determining, by the broadcast receiver corresponding to the broadcast message to be sent includes:
- the process activity characterizes a state of a process run by the broadcast recipient, wherein the state includes a state of a corresponding process in a current running process of the broadcast recipient, and/or the broadcast The state of the process corresponding to the receiver during the history run.
- setting the broadcast receiver whose process activity meets the preset condition to the front end of the broadcast receiving queue includes:
- the broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
- setting the broadcast receiver corresponding to the currently running process of the system to the front end of the broadcast receiving queue includes:
- the broadcast receiver corresponding to the process that is consistent with the system foreground process is set in the head of the broadcast receiving queue.
- setting the broadcast receiver whose process activity meets the preset condition to the front end of the broadcast receiving queue includes:
- the order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
- the method further includes:
- FIG. 1 is a flowchart of a method for adjusting a broadcast receiver queue according to an embodiment of the present disclosure. This embodiment may be applicable to adjusting a broadcast receiver queue. The method may be provided by the embodiment of the present application.
- the electronic device is configured to be implemented by a software and/or hardware. As shown in FIG. 1 , the specific solution provided in this embodiment is as follows:
- the broadcast sender's service process sends a broadcast message to the management module (such as ActivityManagerService, activity management service) by calling a broadcast send function (such as the sendBroadcast function), and the management module puts the broadcast message and puts it into the broadcast process.
- the broadcast transmission queue the management module transmits the broadcast message in the broadcast transmission queue to the broadcast receiver that meets the reception condition through a process communication mechanism (such as a Binder process communication mechanism).
- the broadcast sending queue may be a serial broadcast sending queue or a parallel broadcast sending queue.
- the broadcast message refers to information transmitted by the system or application during operation for transmission between the system and/or the application.
- the broadcast message may be a system initiated broadcast message, a short message. Class broadcast messages, telephony-like broadcast messages, or three-party application class broadcast messages.
- the broadcast sending queue is generated and managed by the management module. The broadcast message to be sent can be interpreted as the upcoming broadcast message currently being processed in the broadcast sending queue.
- the broadcast receiver corresponding to the broadcast message to be transmitted refers to the broadcast receiver that meets the receiving condition.
- the broadcast recipient registers (subscribes) a broadcast recipient that received the broadcast message to the management module via a process communication mechanism.
- the service process of the broadcast receiver performs registration of the broadcast receiver in the management module by calling the registerReceiver function, and defines a broadcast message of interest to the broadcast module, and the management module transmits the broadcast message in the broadcast transmission queue according to the broadcast receiver.
- the registration status, the broadcast message is sent to the corresponding message loop queue of the broadcast receiver to which the subscription is made, and the broadcast receiver receives the broadcast message and then calls back the receiving method in the registered broadcast receiver (eg, onReceive method) To perform the corresponding function to process the broadcast message.
- Each broadcast message may have one or more corresponding broadcast recipients.
- the broadcast sender eg, application A
- the management module may send the broadcast message to one (eg, application B).
- a plurality of broadcast recipients such as application C, application D, application E, etc.
- the number of corresponding broadcast recipients depends on the number of broadcast recipients registered to receive the broadcast message.
- the process in which the broadcast sender transmits the broadcast message and the process in which the broadcast receiver receives the broadcast message are asynchronous operation processes, and the broadcast sender and the broadcast receiver achieve low-coupling relationship matching through the management module.
- the broadcast message can be divided into a normal broadcast message and an ordered broadcast message according to different broadcast transmission modes. After the normal broadcast message is sent by the management module, the broadcast receiver receives the broadcast message unordered, and after the broadcast message is sent by the management module, the broadcast receiver sequentially receives the order, that is, the first broadcast receiver. After receiving the broadcast message and processing it, the second broadcast receiver can start receiving and processing the broadcast message, and so on.
- the broadcast receiver corresponding to the broadcast message cannot receive the broadcast message at the same time, and the broadcast receiver needs to sequentially receive and process the broadcast message according to the order of reception.
- the order in which a plurality of broadcast recipients receive and process broadcast messages is embodied in the form of a broadcast receiver queue.
- the order in which the broadcast receiver receives the broadcast message in the broadcast queue may be determined according to the default parameters of the broadcast receiver, or may be determined according to default conditions preset by the system, and cannot be determined according to the specific operation process of the system. The operating parameters are adjusted for the broadcast receiver queue.
- the broadcast receiver needs to receive the broadcast message in sequence according to the broadcast receiver queue, so that different broadcast receivers receive the broadcast message in different time sequences, and some broadcast receivers cannot receive the broadcast message in time, so that important broadcast messages cannot be processed in time.
- a broadcast receiver of a broadcast message to be sent in an application running on the current interface of the system, and the broadcast receiver is located at the end of the broadcast receiver queue, after the broadcast message is sent, the current interface of the system is running.
- the application cannot receive and process the broadcast message in the first time, which reduces the efficiency of the application in the current interface to the broadcast message.
- the broadcast receiver receives the disorder of the broadcast message, it is not possible for a particular broadcast recipient to receive the broadcast at the first time, but depends on the operating efficiency of the system.
- the process corresponding to the broadcast receiver is traversed, wherein the broadcast receiver starts the corresponding process during the running process, and the process refers to the program in the system about a certain data set.
- the running activity on the system is the basic unit for resource allocation and scheduling, and is the basis of the system structure. It is the basic execution entity of the application.
- the process activity indicates the state of the process running by the broadcast receiver, where may be the state of the corresponding process in the current running process of the broadcast receiver, or may be the state of the process corresponding to the broadcast receiver during the historical running process.
- the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue, and the broadcast receiver queue is adaptively adjusted, so that some broadcast receivers whose process activity meets the preset condition are arranged in the broadcast receiver.
- the queue front end receives broadcast messages as soon as possible.
- the process activity refers to whether the process is running in the system
- the preset condition means that the process is running in the system.
- setting the broadcast receiver whose process activity meets the preset condition to the front end of the broadcast receiving queue includes: setting a broadcast receiver corresponding to the currently running process of the system to the front end of the broadcast receiving queue.
- the broadcast recipient is set at the front end of the broadcast receiver queue by judging whether the process corresponding to the broadcast receiver queued in the broadcast receiver queue is in the operating state in the system.
- the currently running process of the system is a real-time execution process that has been started. By setting the corresponding broadcast receiver in the front position of the queue, it can quickly get the broadcast message and perform processing even if it is processed.
- the broadcast receiver in the non-operational state is woken up.
- the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue, and may be, when traversing the process corresponding to the broadcast receiver, when the process is determined to be in the running state, the broadcast is performed.
- the receiver is removed from the broadcast receiver queue and inserted into the queue of the broadcast queue.
- the process corresponding to the broadcast receiver is in the running state, the same operation is performed, and the determined broadcast receiver is set in the adjusted state.
- the head of the new broadcast receiver queue In an embodiment, the process corresponding to the broadcast receiver is traversed, and the broadcast receiver corresponding to the running process is recorded. After the traversal is completed, the determined broadcast receiver is uniformly inserted into the queue front end, and the specific It may be inserted sequentially according to the order of the broadcast receivers determined during the traversal process, or may be randomly inserted into the front end of the queue. In another embodiment, the front end of the broadcast receiver queue may be a preset location of a broadcast receiver queue, which may be the top 20% of the broadcast receiver queues.
- the broadcast receiver queue adjustment method sets the broadcast receiver whose process activity meets the preset condition to the front end of the broadcast receiving queue by traversing the process corresponding to the broadcast receiver of the broadcast message to be transmitted.
- a new broadcast receiver queue (either a new broadcast receiver queue or a modified original broadcast receiver queue), which improves broadcast processing efficiency, reduces system resource consumption, and increases system stability.
- FIG. 2 is a flowchart of another method for adjusting a broadcast receiver queue according to an embodiment of the present application.
- a broadcast receiver corresponding to a process currently running in the system is set to receive in broadcast.
- the front end of the queue includes: setting the broadcast receiver corresponding to the currently running process of the system to the front end of the broadcast receiving queue.
- the running of the process may be a foreground running process, a background implicit execution process, and a stopped running process.
- the current running information of the process corresponding to the broadcast receiver can be obtained, and the broadcast receiver queue is adjusted and reordered according to the current running information of the process corresponding to the broadcast receiver, for example,
- the broadcast receiver corresponding to the foreground running process is set in the queue of the broadcast receiver queue, and the broadcast receiver corresponding to the stopped running process is set at the end of the broadcast receiver queue to ensure that the broadcast receiver corresponding to the system foreground process can Receive broadcast messages to be sent in time.
- the embodiment of the present invention provides a broadcast receiver queue adjustment method, which sets a broadcast receiver corresponding to a process that is consistent with a system foreground process in a queue of a broadcast receiving queue by traversing a process corresponding to a broadcast receiver of a broadcast message to be transmitted.
- a new broadcast receiver queue is formed to ensure that the broadcast receiver corresponding to the foreground process can receive the broadcast message to be sent in time, wherein the foreground process is mostly a process in which the system needs to process the message in real time, such as an operation interface of the electronic device.
- the foreground process receiving the broadcast message at the first time to process the broadcast message can significantly improve the response speed of the system to the broadcast message, and solves the problem that the current foreground process of the system in the existing broadcast receiving mechanism cannot be the first time.
- the problem of receiving broadcast information improves the broadcast receiving efficiency and reduces the system resource consumption.
- the foreground process is more dependent on the broadcast message during the running process, if the waiting time is long, it will appear in a certain period of time. In the case of no response, the scheme of this embodiment is adopted. We have a significant increase in system stability.
- FIG. 3 is a flowchart of another method for adjusting a broadcast receiver queue according to an embodiment of the present application.
- a broadcast receiver whose process activity meets a preset condition is set in a broadcast receiving manner.
- the front end of the queue includes: adjusting the order of the broadcast receivers in the broadcast receiver queue according to the order of the broadcast recipients in the preset broadcast receiving list.
- the preset broadcast receiving list may be determined by the system according to the process information corresponding to the broadcast receiver and/or the historical order of the broadcast receiver receiving the broadcast message. After the preset broadcast receiving list is determined, the preset list may be updated at a preset time (eg, 1 day, 3 days, or 5 days), and the broadcaster is sequentially adjusted according to the broadcast in the broadcast receiving queue. The order of the broadcast recipients in the receiving list is adaptively adjusted.
- a preset time eg, 1 day, 3 days, or 5 days
- the order of the broadcast recipients in the broadcast receiving list is from the front to the back of the broadcast receiver 1, the broadcast receiver 2, the broadcast receiver 5, the broadcast receiver 8, and the broadcast receiver 3, and the broadcast receiver queue is
- the order of the front to the back is the broadcast receiver 10
- the order of the broadcast receivers in the adjusted broadcast receiver queue is the broadcast receiver 2, the broadcast receiver 5, and the broadcast receiver. 10.
- the preset broadcast receiving list is in the process of forming, according to the traversal result of the process corresponding to the broadcast receiver, if there is a process in the process corresponding to the broadcast receiver that is the same as the current foreground process of the system, The broadcast receiver corresponding to the current foreground process of the system in the broadcast receiving list is adjusted to the first bit of the preset broadcast receiving list, and the preset broadcast receiving list is sequentially adjusted.
- the preset broadcast receiving list is in the forming process, according to the traversal result of the process corresponding to the broadcast receiver, if the activity level of the process corresponding to the broadcast receiver and the preset broadcast receiving list broadcast receiver are arranged in the order
- the preset broadcast receiving list broadcast receiver arrangement order is adjusted according to the activity level of the process corresponding to the broadcast receiver in the current traversal result, and a new broadcast receiving list is formed.
- the method further includes: adjusting, in an example, a sequence of broadcast receivers in the broadcast receiving list, and exemplarily, according to at least one of a running frequency, a running time, and a resource occupancy rate of the process corresponding to the broadcast receiver
- the arrangement order of the broadcast recipients in the broadcast receiving list is adjusted to enable the broadcast receivers with high process activity to rank in the preset broadcast receiving list.
- the activity level of the process corresponding to the broadcast receiver is determined according to one or more types of information such as the running frequency, the running time, and the resource occupancy rate, and is broadcasted in the preset broadcast receiving list according to the activity level of the process corresponding to the broadcast receiver.
- the order of the receivers is adjusted.
- the broadcast recipients are sequentially sorted according to the activity of the process, and the broadcast receiver corresponding to the process with the highest activity is set in the head of the broadcast receiving list, and the process with the lowest activity is selected.
- the corresponding broadcast receiver is set at the end of the broadcast receiving list, so that the broadcast receiver corresponding to the most active process preferentially receives the to-be-broadcast message, which solves the problem that the active application in the existing broadcast receiving mechanism cannot receive the broadcast message in the first time.
- the problem is to improve the efficiency of broadcast reception.
- the running frequency, running time, and resource occupancy rate of the process are counted and recorded during the running of the process. The more frequently the process runs, the higher the activeness of the process, the longer the running time of the process, and the more active the process. High, the greater the resource usage of the process, the higher the activity of the process.
- the corresponding relationship between the broadcast sender corresponding to the broadcast message to be sent and the adjusted broadcast receiving list is recorded and stored, and the adjusted broadcast receiving list is updated to a preset broadcast receiving list.
- Sending the broadcast message determining the broadcast sender that sent the broadcast message, directly calling the corresponding preset broadcast receiving list to determine the order in which the broadcast receiver receives the broadcast message, and improving the preset broadcast receiving list to achieve the broadcast recipient ordering
- the accuracy of the broadcast receiver queue corresponding to the broadcast message to be transmitted is reduced, which avoids the need to traverse the corresponding broadcast receiver process to adjust the resource consumption caused by the broadcast receiver queue, thereby further improving the broadcast receiving and processing efficiency.
- the broadcast receiver queue adjustment method provided by the embodiment provides a broadcast receiver queue according to the order of the broadcast receivers in the preset broadcast receiving list by traversing the process corresponding to the broadcast receiver of the broadcast message to be transmitted.
- the order of the broadcast receivers is adjusted in order to solve the problem of inefficiency of the existing broadcast receiving mechanism, improve the broadcast receiving and processing efficiency, and reduce the system resource consumption.
- the embodiment of the present application further provides a broadcast receiver queue adjustment apparatus, including:
- An obtaining module configured to acquire a broadcast message to be sent in a broadcast sending queue
- a receiver determining module configured to determine a broadcast receiver corresponding to the broadcast message to be sent
- a process traversal module configured to traverse a process corresponding to the broadcast receiver
- the queue adjustment module is configured to set a broadcast receiver whose process activity meets a preset condition to a front end of the broadcast receiving queue.
- the receiver determining module is specifically configured to:
- the process activity characterizes a state of a process run by the broadcast recipient, wherein the state includes a state of a corresponding process in a current running process of the broadcast recipient, and/or the broadcast The state of the process corresponding to the receiver during the history run.
- the queue adjustment module is specifically configured to:
- the broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
- the queue adjustment module is specifically configured to:
- a process in which the process of the broadcast receiver is consistent with the foreground process of the foreground process is set in the queue of the broadcast receiver queue.
- the queue adjustment module is specifically configured to:
- the order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
- the method further includes:
- a list update module configured to adjust an order of broadcast receivers in the preset broadcast receiving list according to at least one of a running frequency, a running time, and a resource occupancy rate of a process corresponding to the broadcast receiver, so that the process is active
- the high-level broadcast recipients are ranked first in the preset broadcast reception list.
- FIG. 4 is a structural block diagram of a broadcast receiver queue adjustment apparatus according to an embodiment of the present disclosure, which is used to perform the broadcast receiver queue adjustment method provided by the foregoing embodiment, and has a corresponding function of the execution method. Modules and benefits.
- the device specifically includes: an obtaining module 401, a receiver determining module 402, a process traversal module 403, and a queue adjusting module 404.
- the obtaining module 401 is configured to acquire a broadcast message to be sent in a broadcast sending queue.
- a receiver determining module 402 configured to determine a broadcast receiver corresponding to the broadcast message to be sent
- a process traversal module 403, configured to traverse a process corresponding to the broadcast receiver
- the queue adjustment module 404 is configured to set a broadcast receiver whose process activity meets a preset condition to a front end of the broadcast receiving queue.
- the broadcast receiver to be sent in the broadcast transmission queue is obtained, and the broadcast receiver corresponding to the broadcast message to be sent is determined, and the process corresponding to the broadcast receiver is traversed, and the process activity is satisfied.
- the broadcast receiver of the preset condition is set at the front end of the broadcast receiving queue, which improves the broadcast processing efficiency, reduces the system resource consumption, and increases the system stability.
- the queue adjustment module 404 is specifically configured to:
- the broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
- the queue adjustment module 404 is specifically configured to:
- a process in which the process of the broadcast receiver is consistent with the foreground process of the foreground process is set in the queue of the broadcast receiver queue.
- the queue adjustment module 404 is specifically configured to:
- the order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
- the apparatus further comprises:
- the list update module 405 is configured to adjust the order of the broadcast recipients in the preset broadcast receiving list according to at least one of a running frequency, a running time, and a resource occupancy rate of the process corresponding to the broadcast receiver, so that the process is performed.
- the highly active broadcast recipients are ranked first in the preset broadcast reception list.
- the broadcast receiver queue adjustment apparatus traverses the process corresponding to the broadcast receiver of the broadcast message to be transmitted, and queues the broadcast receiver according to the arrangement order of the broadcast receivers in the preset broadcast receiving list.
- the order of the broadcast receivers is adjusted in order to solve the problem of inefficiency of the existing broadcast receiving mechanism, improve the broadcast receiving and processing efficiency, and reduce the system resource consumption.
- the embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by the processor in the steps in any of the foregoing embodiments.
- FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
- the electronic device may include: a memory 501 and a central processing unit (Central). Processing Unit, CPU) 502, peripheral interface 503, RF (Radio) Frequency, RF circuit 505, audio circuit 506, speaker 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, these components are passed through one or A plurality of communication buses or signal lines 507 are in communication.
- the illustrated electronic device 500 is merely one example of an electronic device, and that the electronic device 500 may have more or fewer components than those shown in the figures, and two or more components may be combined. Or it can 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 memory 501 can be accessed by the CPU 502, the peripheral interface 503, etc., and the memory 501 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
- a non-volatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
- Peripheral interface 503 which can connect the input and output peripherals of the device to CPU 502 and memory 501.
- the I/O subsystem 509 which can connect input and output peripherals on the device, such as touch screen 512 and other input/control devices 510, to peripheral interface 503.
- the I/O subsystem 509 can include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510.
- one or more input controllers 5092 receive electrical signals from other input/control devices 510 or transmit electrical signals to other input/control devices 510, and other input/control devices 510 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
- the input controller 5092 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 512 is an input interface and an output interface between the user electronic 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 5091 in I/O subsystem 509 receives electrical signals from touch screen 512 or transmits electrical signals to touch screen 512.
- the touch screen 512 detects the contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 512, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 512 can be operated.
- the icon of the game, the icon of the network to the corresponding network, and the like.
- 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 505 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 505 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 505 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 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) chipset, user identification module (Subscriber Identity Module, SIM) and more.
- CODEC COder-DECoder, codec
- the audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 511.
- the speaker 511 is configured to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 505 to sound and play the sound to the user.
- the power management chip 508 is used for power supply and power management of the hardware connected to the CPU 502, the I/O subsystem, and the peripheral interface.
- the CPU 502 provided by the embodiment of the present application may perform the following operations:
- the process corresponding to the broadcast receiver is traversed, and the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue.
- the CPU 502 when the broadcast receiver whose process activity meets the preset condition is set in the front end of the broadcast receiving queue, the CPU 502 is configured to perform the following steps:
- the broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
- the CPU 502 when the broadcast receiver corresponding to the currently running process of the system is set in the front end of the broadcast receiving queue, the CPU 502 is configured to perform the following steps:
- the broadcast receiver corresponding to the process that is consistent with the system foreground process is set in the head of the broadcast receiving queue.
- the CPU 502 when the broadcast receiver whose process activity meets the preset condition is set in the front end of the broadcast receiving queue, the CPU 502 is configured to perform the following steps:
- the order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
- the CPU 502 is further configured to perform the following steps:
- the storage medium may include: a read only memory (ROM, Read) Only Memory), Random Access Memory (RAM), disk or CD.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A broadcast receiver queue adjusting method, comprising: obtaining broadcast messages to be sent in a broadcast sending queue; determining broadcast receivers corresponding to the broadcast messages to be sent; and traversing processes corresponding to the broadcast receivers, and setting broadcast receivers whose process activeness satisfies a preset condition at the front of the broadcast receiving queue. Embodiments of the present application also provide a broadcast receiver queue adjusting apparatus, a storage medium, and an electronic device.
Description
本申请要求于2017年03月10日提交中国专利局、申请号为CN201710141944.4、发明名称为“广播接收者队列调整方法、装置和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on March 10, 2017, the Chinese Patent Office, the application number is CN201710141944.4, and the invention name is “Broadcast Receiver Queue Adjustment Method, Device and Terminal Equipment”. The citations are incorporated herein by reference.
本申请实施例涉及计算机技术,尤其涉及一种广播接收者队列调整方法、装置、存储介质和电子设备。The embodiments of the present invention relate to computer technologies, and in particular, to a broadcast receiver queue adjustment method, apparatus, storage medium, and electronic device.
广播是一种被广泛运用的在应用程序之间进行信息传输的机制,以安卓操作系统为例,其通过广播(Broadcast)来实现应用程序间数据的传输和共享。典型的,如安卓自带的短信、电话等广播。Broadcast is a widely used mechanism for transmitting information between applications. Taking the Android operating system as an example, it uses broadcast to realize data transmission and sharing between applications. Typically, such as Android's own text messages, telephones and other broadcasts.
本申请提供了一种广播接收者队列调整方法、装置、存储介质和电子设备,提高了广播处理效率,降低了系统资源消耗,使得系统稳定性增加。The present application provides a broadcast receiver queue adjustment method, apparatus, storage medium, and electronic device, which improves broadcast processing efficiency, reduces system resource consumption, and increases system stability.
第一方面,本申请实施例提供了一种广播接收者队列调整方法,包括:In a first aspect, the embodiment of the present application provides a broadcast receiver queue adjustment method, including:
获取广播发送队列中待发送的广播消息;Obtaining a broadcast message to be sent in the broadcast sending queue;
确定和所述待发送的广播消息对应的广播接收者;Determining a broadcast recipient corresponding to the broadcast message to be sent;
遍历所述广播接收者对应的进程,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。The process corresponding to the broadcast receiver is traversed, and the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue.
第二方面,本申请实施例还提供了一种广播接收者队列调整装置,包括:In a second aspect, the embodiment of the present application further provides a broadcast receiver queue adjustment apparatus, including:
获取模块,用于获取广播发送队列中待发送的广播消息;An obtaining module, configured to acquire a broadcast message to be sent in a broadcast sending queue;
接收者确定模块,用于确定和所述待发送的广播消息对应的广播接收者;a receiver determining module, configured to determine a broadcast receiver corresponding to the broadcast message to be sent;
进程遍历模块,用于遍历所述广播接收者对应的进程;a process traversal module, configured to traverse a process corresponding to the broadcast receiver;
队列调整模块,用于将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。The queue adjustment module is configured to set a broadcast receiver whose process activity meets a preset condition to a front end of the broadcast receiving queue.
第三方面,本申请实施例提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述广播接收者队列调整方法中的步骤。In a third aspect, an embodiment of the present application provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to perform the steps in the broadcast receiver queue adjustment method.
第四方面,本申请实施例还提供了一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:In a fourth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
获取广播发送队列中待发送的广播消息;Obtaining a broadcast message to be sent in the broadcast sending queue;
确定和所述待发送的广播消息对应的广播接收者;Determining a broadcast recipient corresponding to the broadcast message to be sent;
遍历所述广播接收者对应的进程,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。The process corresponding to the broadcast receiver is traversed, and the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue.
本申请提供了一种广播接收者队列调整方法、装置、存储介质和电子设备,提高了广播处理效率,降低了系统资源消耗,使得系统稳定性增加。The present application provides a broadcast receiver queue adjustment method, apparatus, storage medium, and electronic device, which improves broadcast processing efficiency, reduces system resource consumption, and increases system stability.
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。Other features, objects, and advantages of the present invention will become more apparent from the detailed description of the accompanying drawings. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1是本申请实施例提供的一种广播接收者队列调整方法的流程图。FIG. 1 is a flowchart of a broadcast receiver queue adjustment method according to an embodiment of the present application.
图2是本申请实施例提供的另一种广播接收者队列调整方法的流程图。FIG. 2 is a flowchart of another method for adjusting a broadcast receiver queue according to an embodiment of the present application.
图3是本申请实施例提供的又一种广播接收者队列调整方法的流程图。FIG. 3 is a flowchart of still another method for adjusting a broadcast receiver queue according to an embodiment of the present application.
图4是本申请实施例提供的一种广播接收者队列调整装置的结构框图。FIG. 4 is a structural block diagram of a broadcast receiver queue adjustment apparatus according to an embodiment of the present application.
图5是本申请实施例提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are intended to be illustrative, In addition, it should be noted that, for the convenience of description, only some but not all of the structures related to the present application are shown in the drawings.
在安卓系统中,广播发送者通过调用sendBroadcast函数进行广播消息的发送,广播接收者通过调用registerReceiver函数在管理模块中进行广播接收器(BroadcastReceiver)的注册,并定义自身感兴趣的广播消息,由此来实现对相应的广播消息的接收。In the Android system, the broadcast sender sends a broadcast message by calling the sendBroadcast function, and the broadcast receiver registers the broadcast receiver (BroadcastReceiver) in the management module by calling the registerReceiver function, and defines a broadcast message of interest to the broadcaster. To achieve the reception of the corresponding broadcast message.
现有技术中,广播接收者在接收广播发送者发送的广播时存在缺陷,使得广播处理效率低下,系统资源消耗过多且稳定性差。In the prior art, a broadcast receiver has a defect in receiving a broadcast transmitted by a broadcast sender, so that the broadcast processing efficiency is low, system resource consumption is excessive, and stability is poor.
本申请实施例提供了一种广播接收者队列调整方法,包括:The embodiment of the present application provides a broadcast receiver queue adjustment method, including:
获取广播发送队列中待发送的广播消息;Obtaining a broadcast message to be sent in the broadcast sending queue;
确定和所述待发送的广播消息对应的广播接收者;Determining a broadcast recipient corresponding to the broadcast message to be sent;
遍历所述广播接收者对应的进程,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。The process corresponding to the broadcast receiver is traversed, and the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue.
一实施例中,所述确定和所述待发送的广播消息对应的广播接收者包括:In an embodiment, the determining, by the broadcast receiver corresponding to the broadcast message to be sent, includes:
获取通过进程通信机制向管理模块注册接收所述待发送的广播消息的广播接收者。Obtaining, by the process communication mechanism, registering with the management module to receive the broadcast receiver of the broadcast message to be transmitted.
一实施例中,所述进程活跃度表征了所述广播接收者运行的进程的状态,其中,所述状态包括所述广播接收者当前运行过程中对应的进程的状态,和/或所述广播接收者对应的进程在历史运行过程中的状态。In one embodiment, the process activity characterizes a state of a process run by the broadcast recipient, wherein the state includes a state of a corresponding process in a current running process of the broadcast recipient, and/or the broadcast The state of the process corresponding to the receiver during the history run.
一实施例中,所述将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端包括:In an embodiment, setting the broadcast receiver whose process activity meets the preset condition to the front end of the broadcast receiving queue includes:
将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端。The broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
一实施例中,所述将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端包括:In an embodiment, setting the broadcast receiver corresponding to the currently running process of the system to the front end of the broadcast receiving queue includes:
将和系统前台进程一致的进程对应的广播接收者设置在广播接收队列的队头。The broadcast receiver corresponding to the process that is consistent with the system foreground process is set in the head of the broadcast receiving queue.
一实施例中,所述将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端包括:In an embodiment, setting the broadcast receiver whose process activity meets the preset condition to the front end of the broadcast receiving queue includes:
按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整。The order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
一实施例中,还包括:In an embodiment, the method further includes:
依据广播接收者对应的进程的运行频率、运行时长和资源占用率中至少一种对所述预设的广播接收列表中广播接收者的排列顺序进行调整,以使进程活跃度高的广播接收者在所述预设的广播接收列表中排序靠前。Adjusting the order of the broadcast recipients in the preset broadcast receiving list according to at least one of the running frequency, the running time, and the resource occupancy rate of the process corresponding to the broadcast receiver, so that the broadcast receiver with high process activity is adjusted Sorting the top in the preset broadcast receiving list.
在一实施例当中,提供了一种广播接收者队列调整方法。请参照图1,图1是本申请实施例提供的一种广播接收者队列调整方法的流程图,本实施例可适用于对广播接收者队列进行调整的情况,该方法可以由本申请实施例提供的电子设备来执行,该电子设备的广播接收者队列调整装置可采用软件和/或硬件的方式实现,如图1所示,本实施例提供的具体方案如下:In an embodiment, a broadcast receiver queue adjustment method is provided. Please refer to FIG. 1 . FIG. 1 is a flowchart of a method for adjusting a broadcast receiver queue according to an embodiment of the present disclosure. This embodiment may be applicable to adjusting a broadcast receiver queue. The method may be provided by the embodiment of the present application. The electronic device is configured to be implemented by a software and/or hardware. As shown in FIG. 1 , the specific solution provided in this embodiment is as follows:
S101、获取广播发送队列中待发送的广播消息。S101. Obtain a broadcast message to be sent in a broadcast sending queue.
在广播处理过程中,广播发送者的服务进程通过调用广播发送函数(如sendBroadcast函数)将广播消息发送至管理模块(如ActivityManagerService,活动管理服务),管理模块接收到该广播消息后将其放入广播发送队列,管理模块通过进程通信机制(如Binder进程通信机制)将广播发送队列中的广播消息发送至符合接收条件的广播接收者。其中,该广播发送队列可以是串行广播发送队列也可以是并行广播发送队列。During the broadcast process, the broadcast sender's service process sends a broadcast message to the management module (such as ActivityManagerService, activity management service) by calling a broadcast send function (such as the sendBroadcast function), and the management module puts the broadcast message and puts it into the broadcast process. The broadcast transmission queue, the management module transmits the broadcast message in the broadcast transmission queue to the broadcast receiver that meets the reception condition through a process communication mechanism (such as a Binder process communication mechanism). The broadcast sending queue may be a serial broadcast sending queue or a parallel broadcast sending queue.
在一个实施例中,广播消息指的是系统或者应用程序在运行过程中发送的,用于系统和/或应用程序之间传输的信息,示例性的,广播消息可以是系统启动广播消息、短信类广播消息、电话类广播消息或者三方应用类广播消息等。广播发送队列由管理模块生成、管理,待发送的广播消息在本步骤可解释为广播发送队列中当前正在处理的即将发送的广播消息。In one embodiment, the broadcast message refers to information transmitted by the system or application during operation for transmission between the system and/or the application. Illustratively, the broadcast message may be a system initiated broadcast message, a short message. Class broadcast messages, telephony-like broadcast messages, or three-party application class broadcast messages. The broadcast sending queue is generated and managed by the management module. The broadcast message to be sent can be interpreted as the upcoming broadcast message currently being processed in the broadcast sending queue.
S102、确定和待发送的广播消息对应的广播接收者。S102. Determine a broadcast receiver corresponding to the broadcast message to be sent.
其中,确定待发送的广播消息对应的广播接收者指符合接收条件的广播接收者。在一个实施例中,该广播接收者为通过进程通信机制向管理模块注册(订阅)了接收该广播消息的广播接收者。具体的,广播接收者的服务进程通过调用registerReceiver函数在管理模块中进行广播接收器的注册,同时定义自身感兴趣的广播消息,管理模块在发送广播发送队列中的广播消息时,依据广播接收者的注册情况,将该广播消息发送至对其进行订阅了的广播接收者相应的消息循环队列中,广播接收者接收到该广播消息后回调注册的广播接收器中的接收方法(如onReceive方法)来执行相应的功能以对该广播消息进行处理。The broadcast receiver corresponding to the broadcast message to be transmitted refers to the broadcast receiver that meets the receiving condition. In one embodiment, the broadcast recipient registers (subscribes) a broadcast recipient that received the broadcast message to the management module via a process communication mechanism. Specifically, the service process of the broadcast receiver performs registration of the broadcast receiver in the management module by calling the registerReceiver function, and defines a broadcast message of interest to the broadcast module, and the management module transmits the broadcast message in the broadcast transmission queue according to the broadcast receiver. The registration status, the broadcast message is sent to the corresponding message loop queue of the broadcast receiver to which the subscription is made, and the broadcast receiver receives the broadcast message and then calls back the receiving method in the registered broadcast receiver (eg, onReceive method) To perform the corresponding function to process the broadcast message.
每一个广播消息可以存在一个或多个对应的广播接收者,示例性的,广播发送者(如应用A)发送一个广播消息至管理模块,管理模块可将该广播消息发给一个(如应用B)或多个(如应用C、应用D、应用E等)对应的广播接收者,对应的广播接收者的数量取决于注册接收该广播消息的广播接收者的数量。Each broadcast message may have one or more corresponding broadcast recipients. Illustratively, the broadcast sender (eg, application A) sends a broadcast message to the management module, and the management module may send the broadcast message to one (eg, application B). Or a plurality of broadcast recipients (such as application C, application D, application E, etc.), the number of corresponding broadcast recipients depends on the number of broadcast recipients registered to receive the broadcast message.
S103、遍历广播接收者对应的进程,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。S103. Traverse the process corresponding to the broadcast receiver, and set the broadcast receiver whose process activity meets the preset condition to the front end of the broadcast receiving queue.
广播机制中,广播发送者发送广播消息的过程和广播接收者接收广播消息的过程是异步操作过程,广播发送者和广播接收者通过管理模块实现低耦合的关系匹配。其中,根据广播发送方式的不同可将广播消息分为普通广播消息和有序广播消息。普通广播消息被管理模块发出后,广播接收者对该广播消息的接收是无序的,而有序广播消息被管理模块发出后,广播接收者按照顺序先后依次接收,即第一个广播接收者接收到广播消息并处理完毕后,第二个广播接收者才能开始接收并处理该广播消息,依次类推。In the broadcast mechanism, the process in which the broadcast sender transmits the broadcast message and the process in which the broadcast receiver receives the broadcast message are asynchronous operation processes, and the broadcast sender and the broadcast receiver achieve low-coupling relationship matching through the management module. The broadcast message can be divided into a normal broadcast message and an ordered broadcast message according to different broadcast transmission modes. After the normal broadcast message is sent by the management module, the broadcast receiver receives the broadcast message unordered, and after the broadcast message is sent by the management module, the broadcast receiver sequentially receives the order, that is, the first broadcast receiver. After receiving the broadcast message and processing it, the second broadcast receiver can start receiving and processing the broadcast message, and so on.
针对有序广播而言,广播消息对应的广播接收者无法同时接收到该广播消息,广播接收者需要根据接收次序依次接收、处理广播消息。在一个实施例中,多个广播接收者接收、处理广播消息的次序采用广播接收者队列的形式予以体现。在系统默认情况下,该广播队列中广播接收者接收广播消息的次序可以依据广播接收者的默认的参数确定,还可以是根据系统预设的默认条件确定,无法根据系统在具体运行过程中的运行参量进行广播接收者队列的调整。由此,广播接收者需根据广播接收者队列依次接收广播消息使得不同广播接收者接收广播消息的时间先后不同,导致一些广播接收者无法及时接收广播消息,使得重要的广播消息得不到及时处理。示例性的,若系统当前界面运行的应用程序中存在待发送的广播消息的广播接收者,且该广播接收者位于广播接收者队列的尾端,则发送该广播消息后,系统当前界面运行的应用程序无法第一时间对该广播消息进行接收、处理,降低了当前界面中的应用程序对该广播消息的响应效率。针对普通广播而言,由于广播接收者接收广播消息的无序性,对某一特定广播接收者来说,其也无法第一时间接收到该广播,而是依赖于系统的运行效率。For an ordered broadcast, the broadcast receiver corresponding to the broadcast message cannot receive the broadcast message at the same time, and the broadcast receiver needs to sequentially receive and process the broadcast message according to the order of reception. In one embodiment, the order in which a plurality of broadcast recipients receive and process broadcast messages is embodied in the form of a broadcast receiver queue. In the system default, the order in which the broadcast receiver receives the broadcast message in the broadcast queue may be determined according to the default parameters of the broadcast receiver, or may be determined according to default conditions preset by the system, and cannot be determined according to the specific operation process of the system. The operating parameters are adjusted for the broadcast receiver queue. Therefore, the broadcast receiver needs to receive the broadcast message in sequence according to the broadcast receiver queue, so that different broadcast receivers receive the broadcast message in different time sequences, and some broadcast receivers cannot receive the broadcast message in time, so that important broadcast messages cannot be processed in time. . Exemplarily, if there is a broadcast receiver of a broadcast message to be sent in an application running on the current interface of the system, and the broadcast receiver is located at the end of the broadcast receiver queue, after the broadcast message is sent, the current interface of the system is running. The application cannot receive and process the broadcast message in the first time, which reduces the efficiency of the application in the current interface to the broadcast message. For ordinary broadcasts, because the broadcast receiver receives the disorder of the broadcast message, it is not possible for a particular broadcast recipient to receive the broadcast at the first time, but depends on the operating efficiency of the system.
本步骤中,在S102确定出和广播消息对应的广播接收者后,遍历广播接收者对应的进程,其中广播接收者在运行过程中会启动相应的进程,进程指系统中的程序关于某数据集合上的运行活动,是系统进行资源分配和调度的基本单位,是系统结构的组成基础,为应用程序的基本执行实体。其中,进程活跃度表征了广播接收者运行的进程的状态,其中,可以是广播接收者当前运行过程中对应的进程的状态,还可以是广播接收者对应的进程在历史运行过程中的状态。将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端,对广播接收者队列进行了适应性调整,使得一些进程活跃度满足预设条件的广播接收者被排列在广播接收者队列前端得以尽快接收到广播消息。在一个实施例中,该进程活跃度指进程是否在系统中处于运行状态,该预设条件指进程在系统中正在运行。具体的,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端包括:将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端。即,通过判断广播接收者队列中排队的广播接收者对应的进程是否在系统中处于运行状态来确定是否将广播接收者设置在广播接收者队列前端。系统当前正在运行的进程为已经启动的实时执行的进程,通过将对应的广播接收者设置在队列靠前的位置可以使其第一时间快速得到广播消息并进行即使处理,也不会使某些处于非运行状态的广播接收者被唤醒。在一个实施例中,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端,可以是在遍历广播接收者对应的进程时,当确定该进程为运行状态后,将该广播接收者从广播接收者队列中移除,插入到广播队列的队头,当再次确定出广播接收者对应的进程处于运行状态后,执行相同操作,将确定出的广播接收者设置在调整后的新的广播接收者队列的队头。在一个实施例中,还可以是遍历广播接收者对应的进程,对正在运行的进程对应的广播接收者进行记录,当遍历完毕后,统一将确定出的广播接收者插入到队列前端,具体的,可以是依据遍历过程中确定出的广播接收者的顺序依次插入,还可是随机插入到队列前端。在另一实施例中,该广播接收者队列的前端可以是广播接收者队列的预设位置,该预设位置可以是广播接收者队列中排序在前20%的位置。In this step, after the broadcast receiver corresponding to the broadcast message is determined in S102, the process corresponding to the broadcast receiver is traversed, wherein the broadcast receiver starts the corresponding process during the running process, and the process refers to the program in the system about a certain data set. The running activity on the system is the basic unit for resource allocation and scheduling, and is the basis of the system structure. It is the basic execution entity of the application. The process activity indicates the state of the process running by the broadcast receiver, where may be the state of the corresponding process in the current running process of the broadcast receiver, or may be the state of the process corresponding to the broadcast receiver during the historical running process. The broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue, and the broadcast receiver queue is adaptively adjusted, so that some broadcast receivers whose process activity meets the preset condition are arranged in the broadcast receiver. The queue front end receives broadcast messages as soon as possible. In one embodiment, the process activity refers to whether the process is running in the system, and the preset condition means that the process is running in the system. Specifically, setting the broadcast receiver whose process activity meets the preset condition to the front end of the broadcast receiving queue includes: setting a broadcast receiver corresponding to the currently running process of the system to the front end of the broadcast receiving queue. That is, it is determined whether or not the broadcast recipient is set at the front end of the broadcast receiver queue by judging whether the process corresponding to the broadcast receiver queued in the broadcast receiver queue is in the operating state in the system. The currently running process of the system is a real-time execution process that has been started. By setting the corresponding broadcast receiver in the front position of the queue, it can quickly get the broadcast message and perform processing even if it is processed. The broadcast receiver in the non-operational state is woken up. In an embodiment, the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue, and may be, when traversing the process corresponding to the broadcast receiver, when the process is determined to be in the running state, the broadcast is performed. The receiver is removed from the broadcast receiver queue and inserted into the queue of the broadcast queue. When it is determined that the process corresponding to the broadcast receiver is in the running state, the same operation is performed, and the determined broadcast receiver is set in the adjusted state. The head of the new broadcast receiver queue. In an embodiment, the process corresponding to the broadcast receiver is traversed, and the broadcast receiver corresponding to the running process is recorded. After the traversal is completed, the determined broadcast receiver is uniformly inserted into the queue front end, and the specific It may be inserted sequentially according to the order of the broadcast receivers determined during the traversal process, or may be randomly inserted into the front end of the queue. In another embodiment, the front end of the broadcast receiver queue may be a preset location of a broadcast receiver queue, which may be the top 20% of the broadcast receiver queues.
由上可知,本实施例提供了的广播接收者队列调整方法通过遍历待发送的广播消息的广播接收者对应的进程,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端,形成新的广播接收者队列(可以是创建新的广播接收者队列也可以是修改原有的有序广播接收者队列),提高了广播处理效率,降低了系统资源消耗,使得系统稳定性增加。As can be seen from the above, the broadcast receiver queue adjustment method provided in this embodiment sets the broadcast receiver whose process activity meets the preset condition to the front end of the broadcast receiving queue by traversing the process corresponding to the broadcast receiver of the broadcast message to be transmitted. Form a new broadcast receiver queue (either a new broadcast receiver queue or a modified original broadcast receiver queue), which improves broadcast processing efficiency, reduces system resource consumption, and increases system stability. .
图2是本申请实施例提供的另一种广播接收者队列调整方法的流程图,在上述实施例的基础上,可选的,将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端包括:将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端。2 is a flowchart of another method for adjusting a broadcast receiver queue according to an embodiment of the present application. On the basis of the foregoing embodiment, optionally, a broadcast receiver corresponding to a process currently running in the system is set to receive in broadcast. The front end of the queue includes: setting the broadcast receiver corresponding to the currently running process of the system to the front end of the broadcast receiving queue.
基于上述优化,如图2所示,本实施例提供的技术方案具体如下:Based on the above optimization, as shown in FIG. 2, the technical solution provided by this embodiment is specifically as follows:
S201、获取广播发送队列中待发送的广播消息。S201. Obtain a broadcast message to be sent in a broadcast sending queue.
S202、确定和待发送的广播消息对应的广播接收者。S202. Determine a broadcast receiver corresponding to the broadcast message to be sent.
S203、遍历广播接收者对应的进程,将和系统前台进程一致的进程对应的广播接收者设置在广播接收队列的队头。S203. Traverse the process corresponding to the broadcast receiver, and set the broadcast receiver corresponding to the process that is consistent with the system foreground process in the queue of the broadcast receiving queue.
在一个实施例中,进程的运行情况可以是前台运行进程、后台隐含执行进程和停止运行的进程。通过遍历广播接收者对应的进程,可获取广播接收者对应的进程的当前运行信息,根据广播接收者对应的进程的当前运行信息对广播接收者队列进行调整设置以重新排序,示例性的,可以是前台运行进程对应的广播接收者设置在广播接收者队列的队头,将已停止运行的进程对应的广播接收者设置在广播接收者队列的队尾,确保系统前台进程对应的广播接收者可及时接收待发送的广播消息。In one embodiment, the running of the process may be a foreground running process, a background implicit execution process, and a stopped running process. By traversing the process corresponding to the broadcast receiver, the current running information of the process corresponding to the broadcast receiver can be obtained, and the broadcast receiver queue is adjusted and reordered according to the current running information of the process corresponding to the broadcast receiver, for example, The broadcast receiver corresponding to the foreground running process is set in the queue of the broadcast receiver queue, and the broadcast receiver corresponding to the stopped running process is set at the end of the broadcast receiver queue to ensure that the broadcast receiver corresponding to the system foreground process can Receive broadcast messages to be sent in time.
本实施例提供了一种广播接收者队列调整方法,通过遍历待发送的广播消息的广播接收者对应的进程,将和系统前台进程一致的进程对应的广播接收者设置在广播接收队列的队头,形成新的广播接收者队列,确保了前台进程对应的广播接收者可及时接收待发送的广播消息,其中前台进程大多为系统正在运行的需要实时处理消息的进程,如电子设备运行界面对应的进程,该前台进程在第一时间接收到广播消息以对广播消息进行处理可以显著的提高系统的对广播消息的响应速度,解决了现有的广播接收机制中系统当前的前台进程无法第一时间接收广播信息的问题,提高了广播接收效率,降低了系统资源消耗,同时,由于前台进程运行过程中对广播消息依赖的实时性更强,如果等待时间较长则会导致其在一定时间内出现无响应的情况,通过本实施例方案使得系统稳定性显著增加。The embodiment of the present invention provides a broadcast receiver queue adjustment method, which sets a broadcast receiver corresponding to a process that is consistent with a system foreground process in a queue of a broadcast receiving queue by traversing a process corresponding to a broadcast receiver of a broadcast message to be transmitted. A new broadcast receiver queue is formed to ensure that the broadcast receiver corresponding to the foreground process can receive the broadcast message to be sent in time, wherein the foreground process is mostly a process in which the system needs to process the message in real time, such as an operation interface of the electronic device. The process, the foreground process receiving the broadcast message at the first time to process the broadcast message can significantly improve the response speed of the system to the broadcast message, and solves the problem that the current foreground process of the system in the existing broadcast receiving mechanism cannot be the first time. The problem of receiving broadcast information improves the broadcast receiving efficiency and reduces the system resource consumption. At the same time, since the foreground process is more dependent on the broadcast message during the running process, if the waiting time is long, it will appear in a certain period of time. In the case of no response, the scheme of this embodiment is adopted. We have a significant increase in system stability.
图3是本申请实施例提供的另一种广播接收者队列调整方法的流程图,在上述实施例的基础上,可选的,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端包括:按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整。FIG. 3 is a flowchart of another method for adjusting a broadcast receiver queue according to an embodiment of the present application. On the basis of the foregoing embodiment, optionally, a broadcast receiver whose process activity meets a preset condition is set in a broadcast receiving manner. The front end of the queue includes: adjusting the order of the broadcast receivers in the broadcast receiver queue according to the order of the broadcast recipients in the preset broadcast receiving list.
基于上述优化,如图3所示,本实施例提供的技术方案具体如下:Based on the above optimization, as shown in FIG. 3, the technical solution provided by this embodiment is specifically as follows:
S301、获取广播发送队列中待发送的广播消息。S301. Obtain a broadcast message to be sent in a broadcast sending queue.
S302、确定和待发送的广播消息对应的广播接收者。S302. Determine a broadcast receiver corresponding to the broadcast message to be sent.
S303、遍历广播接收者对应的进程,按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整。S303. Traverse the process corresponding to the broadcast receiver, and adjust the order of the broadcast receivers in the broadcast receiver queue according to the order of the broadcast receivers in the preset broadcast receiving list.
其中,预设的广播接收列表可以是系统根据广播接收者对应的进程信息确定和/或广播接收者接收广播消息的历史排列顺序确定。当预设的广播接收列表被确定后,可以在预设时间(如1天、3天或5天)对该预设列表进行更新,在对广播接收队列中广播接收者顺序进行调整时依据广播接收列表中广播接收者的顺序进行适应性调整。举例而言,广播接收列表中广播接收者的排序由前至后依次为广播接收者1、广播接收者2、广播接收者5、广播接收者8、广播接收者3,广播接收者队列中由前至后的排序为广播接收者10、广播接收者5、广播接收者2等,则调整后的广播接收者队列中广播接收者的排序为广播接收者2、广播接收者5、广播接收者10。The preset broadcast receiving list may be determined by the system according to the process information corresponding to the broadcast receiver and/or the historical order of the broadcast receiver receiving the broadcast message. After the preset broadcast receiving list is determined, the preset list may be updated at a preset time (eg, 1 day, 3 days, or 5 days), and the broadcaster is sequentially adjusted according to the broadcast in the broadcast receiving queue. The order of the broadcast recipients in the receiving list is adaptively adjusted. For example, the order of the broadcast recipients in the broadcast receiving list is from the front to the back of the broadcast receiver 1, the broadcast receiver 2, the broadcast receiver 5, the broadcast receiver 8, and the broadcast receiver 3, and the broadcast receiver queue is The order of the front to the back is the broadcast receiver 10, the broadcast receiver 5, the broadcast receiver 2, etc., and the order of the broadcast receivers in the adjusted broadcast receiver queue is the broadcast receiver 2, the broadcast receiver 5, and the broadcast receiver. 10.
在一个实施例中,预设的广播接收列表在形成过程中,根据广播接收者对应的进程的遍历结果,若广播接收者对应的进程中存在与系统当前的前台进程相同的进程时,将预设的广播接收列表中的系统当前的前台进程对应的广播接收者调节至预设的广播接收列表的第一位,并依次调整该预设的广播接收列表。In an embodiment, the preset broadcast receiving list is in the process of forming, according to the traversal result of the process corresponding to the broadcast receiver, if there is a process in the process corresponding to the broadcast receiver that is the same as the current foreground process of the system, The broadcast receiver corresponding to the current foreground process of the system in the broadcast receiving list is adjusted to the first bit of the preset broadcast receiving list, and the preset broadcast receiving list is sequentially adjusted.
在一个实施例中,预设的广播接收列表在形成过程中,根据广播接收者对应的进程的遍历结果,若广播接收者对应的进程的活跃度与预设的广播接收列表广播接收者排列顺序存在差异时,根据当前遍历结果中广播接收者对应的进程的活跃度调整预设的广播接收列表广播接收者排列顺序,形成新的广播接收列表。In an embodiment, the preset broadcast receiving list is in the forming process, according to the traversal result of the process corresponding to the broadcast receiver, if the activity level of the process corresponding to the broadcast receiver and the preset broadcast receiving list broadcast receiver are arranged in the order When there is a difference, the preset broadcast receiving list broadcast receiver arrangement order is adjusted according to the activity level of the process corresponding to the broadcast receiver in the current traversal result, and a new broadcast receiving list is formed.
在一个实施例中,还包括对广播接收列表中广播接收者的顺序进行调整,示例性的,依据广播接收者对应的进程的运行频率、运行时长和资源占用率中至少一种对所述预设的广播接收列表中广播接收者的排列顺序进行调整,以使进程活跃度高的广播接收者在所述预设的广播接收列表中排序靠前。In an embodiment, the method further includes: adjusting, in an example, a sequence of broadcast receivers in the broadcast receiving list, and exemplarily, according to at least one of a running frequency, a running time, and a resource occupancy rate of the process corresponding to the broadcast receiver The arrangement order of the broadcast recipients in the broadcast receiving list is adjusted to enable the broadcast receivers with high process activity to rank in the preset broadcast receiving list.
其中,根据运行频率、运行时长、资源占用率中一种或多种信息确定广播接收者对应的进程的活跃度,并根据广播接收者对应的进程的活跃度对预设的广播接收列表中广播接收者的排列顺序进行调整,示例性的,根据进程的活跃度对广播接受者依次排序,将活跃度最高的进程对应的广播接收者设置在广播接收列表的队头,将活跃度最低的进程对应的广播接收者设置在广播接收列表的队尾,使得活跃度最高的进程对应的广播接收者优先接收待广播消息,解决了现有的广播接收机制中活跃应用无法第一时间接收广播消息的问题,提高了广播接收效率。其中,在进程运行过程中对进程的运行频率、运行时长、资源占用率进行统计、记录,进程运行的频率越大,进程的活跃度越高,进程的运行时长越长,进程的活跃度越高,进程的资源占用率越大,进程的活跃度越高。The activity level of the process corresponding to the broadcast receiver is determined according to one or more types of information such as the running frequency, the running time, and the resource occupancy rate, and is broadcasted in the preset broadcast receiving list according to the activity level of the process corresponding to the broadcast receiver. The order of the receivers is adjusted. Illustratively, the broadcast recipients are sequentially sorted according to the activity of the process, and the broadcast receiver corresponding to the process with the highest activity is set in the head of the broadcast receiving list, and the process with the lowest activity is selected. The corresponding broadcast receiver is set at the end of the broadcast receiving list, so that the broadcast receiver corresponding to the most active process preferentially receives the to-be-broadcast message, which solves the problem that the active application in the existing broadcast receiving mechanism cannot receive the broadcast message in the first time. The problem is to improve the efficiency of broadcast reception. The running frequency, running time, and resource occupancy rate of the process are counted and recorded during the running of the process. The more frequently the process runs, the higher the activeness of the process, the longer the running time of the process, and the more active the process. High, the greater the resource usage of the process, the higher the activity of the process.
在一个实施例中,记录并存储待发送的广播消息对应的广播发送者与调整后的广播接收列表的对应关系,将调整后的广播接收列表更新为预设的广播接收列表,若检测到待发送的广播消息,则确定发送该广播消息的广播发送者,直接调用对应的预设的广播接收列表来确定广播接收者接收广播消息的顺序,提高预设的广播接收列表的实现广播接收者排序的准确度,减少待发送的广播消息对应的广播接收者队列的调整次数,避免了需要逐次遍历对应的广播接收者进程调整广播接收者队列带来的资源消耗,进一步提高广播接收、处理效率。In an embodiment, the corresponding relationship between the broadcast sender corresponding to the broadcast message to be sent and the adjusted broadcast receiving list is recorded and stored, and the adjusted broadcast receiving list is updated to a preset broadcast receiving list. Sending the broadcast message, determining the broadcast sender that sent the broadcast message, directly calling the corresponding preset broadcast receiving list to determine the order in which the broadcast receiver receives the broadcast message, and improving the preset broadcast receiving list to achieve the broadcast recipient ordering The accuracy of the broadcast receiver queue corresponding to the broadcast message to be transmitted is reduced, which avoids the need to traverse the corresponding broadcast receiver process to adjust the resource consumption caused by the broadcast receiver queue, thereby further improving the broadcast receiving and processing efficiency.
由上可知,本实施例提供了的广播接收者队列调整方法通过遍历待发送的广播消息的广播接收者对应的进程,按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整,解决了现有的广播接收机制效率低下的问题,提高了广播接收、处理效率,降低了系统的资源消耗。As can be seen from the above, the broadcast receiver queue adjustment method provided by the embodiment provides a broadcast receiver queue according to the order of the broadcast receivers in the preset broadcast receiving list by traversing the process corresponding to the broadcast receiver of the broadcast message to be transmitted. The order of the broadcast receivers is adjusted in order to solve the problem of inefficiency of the existing broadcast receiving mechanism, improve the broadcast receiving and processing efficiency, and reduce the system resource consumption.
本申请实施例还提供一种广播接收者队列调整装置,包括:The embodiment of the present application further provides a broadcast receiver queue adjustment apparatus, including:
获取模块,用于获取广播发送队列中待发送的广播消息;An obtaining module, configured to acquire a broadcast message to be sent in a broadcast sending queue;
接收者确定模块,用于确定和所述待发送的广播消息对应的广播接收者;a receiver determining module, configured to determine a broadcast receiver corresponding to the broadcast message to be sent;
进程遍历模块,用于遍历所述广播接收者对应的进程;a process traversal module, configured to traverse a process corresponding to the broadcast receiver;
队列调整模块,用于将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。The queue adjustment module is configured to set a broadcast receiver whose process activity meets a preset condition to a front end of the broadcast receiving queue.
一实施例中,所述接收者确定模块,具体用于:In an embodiment, the receiver determining module is specifically configured to:
获取通过进程通信机制向管理模块注册接收所述待发送的广播消息的广播接收者。Obtaining, by the process communication mechanism, registering with the management module to receive the broadcast receiver of the broadcast message to be transmitted.
一实施例中,所述进程活跃度表征了所述广播接收者运行的进程的状态,其中,所述状态包括所述广播接收者当前运行过程中对应的进程的状态,和/或所述广播接收者对应的进程在历史运行过程中的状态。In one embodiment, the process activity characterizes a state of a process run by the broadcast recipient, wherein the state includes a state of a corresponding process in a current running process of the broadcast recipient, and/or the broadcast The state of the process corresponding to the receiver during the history run.
一实施例中,所述队列调整模块具体用于:In an embodiment, the queue adjustment module is specifically configured to:
将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端。The broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
一实施例中,所述队列调整模块具体用于:In an embodiment, the queue adjustment module is specifically configured to:
将所述广播接收者对应的进程中和前台进程一致的进程前台进程一致的进程设置在广播接收者队列的队头。A process in which the process of the broadcast receiver is consistent with the foreground process of the foreground process is set in the queue of the broadcast receiver queue.
一实施例中,所述队列调整模块具体用于:In an embodiment, the queue adjustment module is specifically configured to:
按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整。The order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
一实施例中,还包括:In an embodiment, the method further includes:
列表更新模块,用于依据广播接收者对应的进程的运行频率、运行时长和资源占用率中至少一种对所述预设的广播接收列表中广播接收者的排列顺序进行调整,以使进程活跃度高的广播接收者在所述预设的广播接收列表中排序靠前。a list update module, configured to adjust an order of broadcast receivers in the preset broadcast receiving list according to at least one of a running frequency, a running time, and a resource occupancy rate of a process corresponding to the broadcast receiver, so that the process is active The high-level broadcast recipients are ranked first in the preset broadcast reception list.
为了更好地实施以上方法,本申请实施例还提供一种广播接收者队列调整装置,该装置可以集成在电子设备中,该电子设备具体可以是智能手机、平板电脑等设备。如图4所示,图4是本申请实施例提供的一种广播接收者队列调整装置的结构框图,该装置用于执行上述实施例提供的广播接收者队列调整方法,具备执行方法相应的功能模块和有益效果。如图4所示,该装置具体包括:获取模块401、接收者确定模块402、进程遍历模块403和队列调整模块404。In order to better implement the above method, the embodiment of the present application further provides a broadcast receiver queue adjustment device, which may be integrated in an electronic device, and the electronic device may specifically be a device such as a smart phone or a tablet computer. As shown in FIG. 4, FIG. 4 is a structural block diagram of a broadcast receiver queue adjustment apparatus according to an embodiment of the present disclosure, which is used to perform the broadcast receiver queue adjustment method provided by the foregoing embodiment, and has a corresponding function of the execution method. Modules and benefits. As shown in FIG. 4, the device specifically includes: an obtaining module 401, a receiver determining module 402, a process traversal module 403, and a queue adjusting module 404.
其中,获取模块401,用于获取广播发送队列中待发送的广播消息;The obtaining module 401 is configured to acquire a broadcast message to be sent in a broadcast sending queue.
接收者确定模块402,用于确定和待发送的广播消息对应的广播接收者;a receiver determining module 402, configured to determine a broadcast receiver corresponding to the broadcast message to be sent;
进程遍历模块403,用于遍历广播接收者对应的进程;a process traversal module 403, configured to traverse a process corresponding to the broadcast receiver;
队列调整模块404,用于将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。The queue adjustment module 404 is configured to set a broadcast receiver whose process activity meets a preset condition to a front end of the broadcast receiving queue.
本实施例提供的技术方案,通过获取广播发送队列中待发送的广播消息,确定和所述待发送的广播消息对应的广播接收者,遍历所述广播接收者对应的进程,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端,提高了广播处理效率,降低了系统资源消耗,使得系统稳定性增加。In the technical solution provided by the embodiment, the broadcast receiver to be sent in the broadcast transmission queue is obtained, and the broadcast receiver corresponding to the broadcast message to be sent is determined, and the process corresponding to the broadcast receiver is traversed, and the process activity is satisfied. The broadcast receiver of the preset condition is set at the front end of the broadcast receiving queue, which improves the broadcast processing efficiency, reduces the system resource consumption, and increases the system stability.
在一实施例中,队列调整模块404具体用于:In an embodiment, the queue adjustment module 404 is specifically configured to:
将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端。The broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
在一实施例中,队列调整模块404具体用于:In an embodiment, the queue adjustment module 404 is specifically configured to:
将所述广播接收者对应的进程中和前台进程一致的进程前台进程一致的进程设置在广播接收者队列的队头。A process in which the process of the broadcast receiver is consistent with the foreground process of the foreground process is set in the queue of the broadcast receiver queue.
在一实施例中,队列调整模块404具体用于:In an embodiment, the queue adjustment module 404 is specifically configured to:
按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整。The order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
在一实施例中,该装置还包括:In an embodiment, the apparatus further comprises:
列表更新模块405,用于依据广播接收者对应的进程的运行频率、运行时长和资源占用率中至少一种对所述预设的广播接收列表中广播接收者的排列顺序进行调整,以使进程活跃度高的广播接收者在所述预设的广播接收列表中排序靠前。The list update module 405 is configured to adjust the order of the broadcast recipients in the preset broadcast receiving list according to at least one of a running frequency, a running time, and a resource occupancy rate of the process corresponding to the broadcast receiver, so that the process is performed. The highly active broadcast recipients are ranked first in the preset broadcast reception list.
由上可知,本申请实施例提供的广播接收者队列调整装置通过遍历待发送的广播消息的广播接收者对应的进程,按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整,解决了现有的广播接收机制效率低下的问题,提高了广播接收、处理效率,降低了系统的资源消耗。It can be seen from the above that the broadcast receiver queue adjustment apparatus provided by the embodiment of the present application traverses the process corresponding to the broadcast receiver of the broadcast message to be transmitted, and queues the broadcast receiver according to the arrangement order of the broadcast receivers in the preset broadcast receiving list. The order of the broadcast receivers is adjusted in order to solve the problem of inefficiency of the existing broadcast receiving mechanism, improve the broadcast receiving and processing efficiency, and reduce the system resource consumption.
本申请实施例还提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载上述任一实施例中的步骤。The embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by the processor in the steps in any of the foregoing embodiments.
本实施例在上述各实施例的基础上提供了一种电子设备,该电子设备可以包括本申请提供的广播接收者队列调整装置。图5是本申请实施例提供的电子设备的结构示意图,如图5所示,该电子设备可以包括:存储器501、中央处理器(Central
Processing Unit,CPU)502、外设接口503、RF(Radio
Frequency,射频)电路505、音频电路506、扬声器511、电源管理芯片508、输入/输出(I/O)子系统509、触摸屏512、其他输入/控制设备510以及外部端口504,这些部件通过一个或多个通信总线或信号线507来通信。This embodiment provides an electronic device based on the foregoing embodiments, and the electronic device may include the broadcast receiver queue adjustment device provided by the present application. FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 5, the electronic device may include: a memory 501 and a central processing unit (Central).
Processing Unit, CPU) 502, peripheral interface 503, RF (Radio)
Frequency, RF circuit 505, audio circuit 506, speaker 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, these components are passed through one or A plurality of communication buses or signal lines 507 are in communication.
应该理解的是,图示电子设备500仅仅是电子设备的一个范例,并且电子设备500可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated electronic device 500 is merely one example of an electronic device, and that the electronic device 500 may have more or fewer components than those shown in the figures, and two or more components may be combined. Or it can 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 following is a detailed description of an electronic device for rights management of a multi-open application provided by the embodiment, which is exemplified by a smart phone.
存储器501,所述存储器501可以被CPU502、外设接口503等访问,所述存储器501可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 501 can be accessed by the CPU 502, the peripheral interface 503, etc., and the memory 501 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
外设接口503,所述外设接口503可以将设备的输入和输出外设连接到CPU502和存储器501。Peripheral interface 503, which can connect the input and output peripherals of the device to CPU 502 and memory 501.
I/O子系统509,所述I/O子系统509可以将设备上的输入输出外设,例如触摸屏512和其他输入/控制设备510,连接到外设接口503。I/O子系统509可以包括显示控制器5091和用于控制其他输入/控制设备510的一个或多个输入控制器5092。其中,一个或多个输入控制器5092从其他输入/控制设备510接收电信号或者向其他输入/控制设备510发送电信号,其他输入/控制设备510可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器5092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 509, which can connect input and output peripherals on the device, such as touch screen 512 and other input/control devices 510, to peripheral interface 503. The I/O subsystem 509 can include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Wherein, one or more input controllers 5092 receive electrical signals from other input/control devices 510 or transmit electrical signals to other input/control devices 510, and other input/control devices 510 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel. It is worth noting that the input controller 5092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏512,所述触摸屏512是用户电子与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 512 is an input interface and an output interface between the user electronic 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子系统509中的显示控制器5091从触摸屏512接收电信号或者向触摸屏512发送电信号。触摸屏512检测触摸屏上的接触,显示控制器5091将检测到的接触转换为与显示在触摸屏512上的用户界面对象的交互,即实现人机交互,显示在触摸屏512上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。Display controller 5091 in I/O subsystem 509 receives electrical signals from touch screen 512 or transmits electrical signals to touch screen 512. The touch screen 512 detects the contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 512, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 512 can be operated. 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电路505,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路505接收并发送RF信号,RF信号也称为电磁信号,RF电路505将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路505可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber
Identity Module,SIM)等等。The RF circuit 505 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 505 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 505 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 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, codec) chipset, user identification module (Subscriber
Identity Module, SIM) and more.
音频电路506,主要用于从外设接口503接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器511。The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 511.
扬声器511,用于将手机通过RF电路505从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 511 is configured to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 505 to sound and play the sound to the user.
电源管理芯片508,用于为CPU502、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 508 is used for power supply and power management of the hardware connected to the CPU 502, the I/O subsystem, and the peripheral interface.
本申请实施例提供的CPU502可执行如下操作:The CPU 502 provided by the embodiment of the present application may perform the following operations:
获取广播发送队列中待发送的广播消息;Obtaining a broadcast message to be sent in the broadcast sending queue;
确定和所述待发送的广播消息对应的广播接收者;Determining a broadcast recipient corresponding to the broadcast message to be sent;
遍历所述广播接收者对应的进程,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。The process corresponding to the broadcast receiver is traversed, and the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue.
一实施例中,所述将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端时,CPU502用于执行以下步骤:In an embodiment, when the broadcast receiver whose process activity meets the preset condition is set in the front end of the broadcast receiving queue, the CPU 502 is configured to perform the following steps:
将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端。The broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
一实施例中,所述将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端时,CPU502用于执行以下步骤:In an embodiment, when the broadcast receiver corresponding to the currently running process of the system is set in the front end of the broadcast receiving queue, the CPU 502 is configured to perform the following steps:
将和系统前台进程一致的进程对应的广播接收者设置在广播接收队列的队头。The broadcast receiver corresponding to the process that is consistent with the system foreground process is set in the head of the broadcast receiving queue.
一实施例中,所述将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端时,CPU502用于执行以下步骤:In an embodiment, when the broadcast receiver whose process activity meets the preset condition is set in the front end of the broadcast receiving queue, the CPU 502 is configured to perform the following steps:
按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整。The order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
一实施例中,CPU502还用于执行以下步骤:In an embodiment, the CPU 502 is further configured to perform the following steps:
依据广播接收者对应的进程的运行频率、运行时长和资源占用率中至少一种对所述预设的广播接收列表中广播接收者的排列顺序进行调整,以使进程活跃度高的广播接收者在所述预设的广播接收列表中排序靠前。Adjusting the order of the broadcast recipients in the preset broadcast receiving list according to at least one of the running frequency, the running time, and the resource occupancy rate of the process corresponding to the broadcast receiver, so that the broadcast receiver with high process activity is adjusted Sorting the top in the preset broadcast receiving list.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读的存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read
Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. As stored in the memory of the terminal and executed by at least one processor within the terminal, a flow such as an embodiment of the information dissemination method may be included in the execution. The storage medium may include: a read only memory (ROM, Read)
Only Memory), Random Access Memory (RAM), disk or CD.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only the preferred embodiments of the present application and the technical principles applied thereto. A person skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various changes, modifications and substitutions can be made by those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in detail by the above embodiments, the present application is not limited to the above embodiments, and other equivalent embodiments may be included without departing from the concept of the present application. The scope is determined by the scope of the appended claims.
Claims (20)
- 一种广播接收者队列调整方法,其中,包括:A broadcast receiver queue adjustment method, including:获取广播发送队列中待发送的广播消息;Obtaining a broadcast message to be sent in the broadcast sending queue;确定和所述待发送的广播消息对应的广播接收者;Determining a broadcast recipient corresponding to the broadcast message to be sent;遍历所述广播接收者对应的进程,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。The process corresponding to the broadcast receiver is traversed, and the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue.
- 根据权利要求1所述的方法,其中,所述确定和所述待发送的广播消息对应的广播接收者包括:The method of claim 1, wherein the determining, by the broadcast recipient corresponding to the broadcast message to be transmitted, comprises:获取通过进程通信机制向管理模块注册接收所述待发送的广播消息的广播接收者。Obtaining, by the process communication mechanism, registering with the management module to receive the broadcast receiver of the broadcast message to be transmitted.
- 根据权利要求1所述的方法,其中,所述进程活跃度表征了所述广播接收者运行的进程的状态,其中,所述状态包括所述广播接收者当前运行过程中对应的进程的状态,和/或所述广播接收者对应的进程在历史运行过程中的状态。The method of claim 1, wherein the process activity characterizes a state of a process run by the broadcast recipient, wherein the state includes a state of a corresponding process in a current running process of the broadcast recipient, And/or the state of the process corresponding to the broadcast recipient during the historical operation.
- 根据权利要求1所述的方法,其中,所述将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端包括:The method according to claim 1, wherein the setting of the broadcast receiver whose process activity meets the preset condition in the front end of the broadcast receiving queue comprises:将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端。The broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
- 根据权利要求4所述的方法,其中,所述将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端包括:The method according to claim 4, wherein the setting a broadcast receiver corresponding to a process currently running by the system to the front end of the broadcast receiving queue comprises:将和系统前台进程一致的进程对应的广播接收者设置在广播接收队列的队头。The broadcast receiver corresponding to the process that is consistent with the system foreground process is set in the head of the broadcast receiving queue.
- 根据权利要求1所述的方法,其中,所述将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端包括:The method according to claim 1, wherein the setting of the broadcast receiver whose process activity meets the preset condition in the front end of the broadcast receiving queue comprises:按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整。The order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
- 根据权利要求6所述的方法,其中,还包括:The method of claim 6 further comprising:依据广播接收者对应的进程的运行频率、运行时长和资源占用率中至少一种对所述预设的广播接收列表中广播接收者的排列顺序进行调整,以使进程活跃度高的广播接收者在所述预设的广播接收列表中排序靠前。Adjusting the order of the broadcast recipients in the preset broadcast receiving list according to at least one of the running frequency, the running time, and the resource occupancy rate of the process corresponding to the broadcast receiver, so that the broadcast receiver with high process activity is adjusted Sorting the top in the preset broadcast receiving list.
- 一种广播接收者队列调整装置,其中,包括:A broadcast receiver queue adjusting device, comprising:获取模块,用于获取广播发送队列中待发送的广播消息;An obtaining module, configured to acquire a broadcast message to be sent in a broadcast sending queue;接收者确定模块,用于确定和所述待发送的广播消息对应的广播接收者;a receiver determining module, configured to determine a broadcast receiver corresponding to the broadcast message to be sent;进程遍历模块,用于遍历所述广播接收者对应的进程;a process traversal module, configured to traverse a process corresponding to the broadcast receiver;队列调整模块,用于将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。The queue adjustment module is configured to set a broadcast receiver whose process activity meets a preset condition to a front end of the broadcast receiving queue.
- 根据权利要求8所述的装置,其中,所述接收者确定模块,具体用于:The apparatus according to claim 8, wherein the receiver determining module is specifically configured to:获取通过进程通信机制向管理模块注册接收所述待发送的广播消息的广播接收者。Obtaining, by the process communication mechanism, registering with the management module to receive the broadcast receiver of the broadcast message to be transmitted.
- 根据权利要求8所述的装置,其中,所述进程活跃度表征了所述广播接收者运行的进程的状态,其中,所述状态包括所述广播接收者当前运行过程中对应的进程的状态,和/或所述广播接收者对应的进程在历史运行过程中的状态。The apparatus of claim 8, wherein the process activity characterizes a state of a process run by the broadcast recipient, wherein the state includes a state of a corresponding process in a current running process of the broadcast recipient, And/or the state of the process corresponding to the broadcast recipient during the historical operation.
- 根据权利要求8所述的装置,其中,所述队列调整模块具体用于:The apparatus according to claim 8, wherein the queue adjustment module is specifically configured to:将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端。The broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
- 根据权利要求11所述的装置,其中,所述队列调整模块具体用于:The apparatus according to claim 11, wherein the queue adjustment module is specifically configured to:将所述广播接收者对应的进程中和前台进程一致的进程前台进程一致的进程设置在广播接收者队列的队头。A process in which the process of the broadcast receiver is consistent with the foreground process of the foreground process is set in the queue of the broadcast receiver queue.
- 根据权利要求8所述的装置,其中,所述队列调整模块具体用于:The apparatus according to claim 8, wherein the queue adjustment module is specifically configured to:按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整。The order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
- 根据权利要求13所述的装置,其中,还包括:The device according to claim 13, further comprising:列表更新模块,用于依据广播接收者对应的进程的运行频率、运行时长和资源占用率中至少一种对所述预设的广播接收列表中广播接收者的排列顺序进行调整,以使进程活跃度高的广播接收者在所述预设的广播接收列表中排序靠前。a list update module, configured to adjust an order of broadcast receivers in the preset broadcast receiving list according to at least one of a running frequency, a running time, and a resource occupancy rate of a process corresponding to the broadcast receiver, so that the process is active The high-level broadcast recipients are ranked first in the preset broadcast reception list.
- 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1-7任一项所述的步骤。A storage medium, wherein the storage medium stores a plurality of instructions adapted to be loaded by a processor to perform the steps of any of claims 1-7.
- 一种电子设备,其中,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:An electronic device, comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading instructions in the memory for performing the following steps:获取广播发送队列中待发送的广播消息;Obtaining a broadcast message to be sent in the broadcast sending queue;确定和所述待发送的广播消息对应的广播接收者;Determining a broadcast recipient corresponding to the broadcast message to be sent;遍历所述广播接收者对应的进程,将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端。The process corresponding to the broadcast receiver is traversed, and the broadcast receiver whose process activity meets the preset condition is set at the front end of the broadcast receiving queue.
- 根据权利要求16所述的电子设备,其中,所述将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端时,所述处理器用于执行以下步骤:The electronic device according to claim 16, wherein said processor is configured to perform the following steps when said broadcast receiver whose process activity meets a preset condition is set at a front end of a broadcast receiving queue:将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端。The broadcast receiver corresponding to the currently running process of the system is set at the front end of the broadcast receiving queue.
- 根据权利要求17所述的电子设备,其中,所述将系统当前正在运行的进程对应的广播接收者设置在广播接收队列的前端时,所述处理器用于执行以下步骤:The electronic device according to claim 17, wherein said processor is configured to perform the following steps when said broadcast receiver corresponding to a process currently running by the system is set at a front end of a broadcast receiving queue:将和系统前台进程一致的进程对应的广播接收者设置在广播接收队列的队头。The broadcast receiver corresponding to the process that is consistent with the system foreground process is set in the head of the broadcast receiving queue.
- 根据权利要求16所述的电子设备,其中,所述将进程活跃度满足预设条件的广播接收者设置在广播接收队列的前端时,所述处理器用于执行以下步骤:The electronic device according to claim 16, wherein said processor is configured to perform the following steps when said broadcast receiver whose process activity meets a preset condition is set at a front end of a broadcast receiving queue:按照预设的广播接收列表中广播接收者的排列顺序对广播接收者队列中广播接收者的位置顺序进行调整。The order of the broadcast recipients in the broadcast receiver queue is adjusted in the order in which the broadcast recipients are arranged in the preset broadcast receiving list.
- 根据权利要求19所述的电子设备,其中,所述处理器还用于执行以下步骤:The electronic device of claim 19, wherein the processor is further configured to perform the following steps:依据广播接收者对应的进程的运行频率、运行时长和资源占用率中至少一种对所述预设的广播接收列表中广播接收者的排列顺序进行调整,以使进程活跃度高的广播接收者在所述预设的广播接收列表中排序靠前。Adjusting the order of the broadcast recipients in the preset broadcast receiving list according to at least one of the running frequency, the running time, and the resource occupancy rate of the process corresponding to the broadcast receiver, so that the broadcast receiver with high process activity is adjusted Sorting the top in the preset broadcast receiving list.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710141944.4A CN106919461B (en) | 2017-03-10 | 2017-03-10 | Method and device for adjusting broadcast receiver queue and terminal equipment |
CN201710141944.4 | 2017-03-10 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018161573A1 true WO2018161573A1 (en) | 2018-09-13 |
Family
ID=59462138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/106605 WO2018161573A1 (en) | 2017-03-10 | 2017-10-17 | Broadcast receiver queue adjusting method and apparatus, storage medium, and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106919461B (en) |
WO (1) | WO2018161573A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106919461B (en) * | 2017-03-10 | 2022-07-15 | Oppo广东移动通信有限公司 | Method and device for adjusting broadcast receiver queue and terminal equipment |
CN118890317B (en) * | 2024-09-20 | 2025-02-14 | 荣耀终端有限公司 | Broadcast distribution method, chip, electronic device and medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095902A (en) * | 2011-11-07 | 2013-05-08 | 联想(北京)有限公司 | Information processing method and equipment |
CN106919461A (en) * | 2017-03-10 | 2017-07-04 | 广东欧珀移动通信有限公司 | Broadcast recipients' queue regulation method, device and terminal device |
Family Cites Families (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6711620B1 (en) * | 1999-04-14 | 2004-03-23 | Matsushita Electric Industrial Co. | Event control device and digital broadcasting system |
US8130917B2 (en) * | 2006-12-21 | 2012-03-06 | Verizon Data Services Llc | Method and apparatus for group messaging |
CN101436146B (en) * | 2008-12-15 | 2012-05-09 | 中兴通讯股份有限公司 | Method and system for dynamically adjusting priority of remote equipment management process |
CN102375763B (en) * | 2010-08-20 | 2013-06-19 | 中国移动通信集团公司 | System and method for realizing interprocess communication |
CN102479108B (en) * | 2010-11-26 | 2013-09-11 | 中国科学院声学研究所 | Terminal resource management system for multi-application process embedded system and method |
CN102890628B (en) * | 2011-07-20 | 2015-09-30 | 中国电信股份有限公司 | The display packing of destination object and device |
US9154840B2 (en) * | 2012-07-31 | 2015-10-06 | Sony Corporation | Reception apparatus, reception method, transmission apparatus, and transmission method |
CN104254074B (en) * | 2013-06-28 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Method and device for intercepting harassing short messages |
CN103491507B (en) * | 2013-09-05 | 2017-08-01 | 广东欧珀移动通信有限公司 | A kind of method and device of ordered broadcast priority reorientation |
CN103634636B (en) * | 2013-11-13 | 2017-10-24 | Tcl集团股份有限公司 | A kind of application fast control method and system of Android intelligent television |
CN103593217B (en) * | 2013-11-26 | 2016-10-26 | 广东欧珀移动通信有限公司 | A kind of hook key adjusting earphone starts method and the terminal of application order |
CN103826008B (en) * | 2014-02-18 | 2016-01-06 | 华为终端有限公司 | A kind of mobile terminal notification message reminding method, device and mobile terminal |
CN105791990A (en) * | 2014-12-15 | 2016-07-20 | 深圳Tcl数字技术有限公司 | Global key processing method and system of smart television |
CN104601801B (en) * | 2014-12-24 | 2017-05-17 | 广东欧珀移动通信有限公司 | WiFi hotspot connecting method and system for mobile terminal with screen locked |
CN104461725B (en) * | 2014-12-30 | 2018-05-08 | 小米科技有限责任公司 | The method and device for controlling application process to start |
CN105142165B (en) * | 2015-06-25 | 2018-12-25 | 小米科技有限责任公司 | Search the method and device of terminal device |
CN105357648A (en) * | 2015-10-10 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | Method and Android system for sending broadcast message to application program |
CN105335243A (en) * | 2015-11-30 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | Broadcast message operation method and system in Android system |
CN105933369B (en) * | 2015-12-24 | 2019-05-10 | 中国银联股份有限公司 | A kind of message forwarding method and equipment |
CN106201611B (en) * | 2016-07-07 | 2019-07-23 | 北京小米移动软件有限公司 | Run the method and device of application |
CN106484473A (en) * | 2016-09-29 | 2017-03-08 | Tcl集团股份有限公司 | A kind of application starts method and apparatus |
-
2017
- 2017-03-10 CN CN201710141944.4A patent/CN106919461B/en not_active Expired - Fee Related
- 2017-10-17 WO PCT/CN2017/106605 patent/WO2018161573A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095902A (en) * | 2011-11-07 | 2013-05-08 | 联想(北京)有限公司 | Information processing method and equipment |
CN106919461A (en) * | 2017-03-10 | 2017-07-04 | 广东欧珀移动通信有限公司 | Broadcast recipients' queue regulation method, device and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN106919461A (en) | 2017-07-04 |
CN106919461B (en) | 2022-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018161593A1 (en) | Broadcast processing method, device, storage medium and terminal device | |
WO2020050533A1 (en) | Electronic device for supporting access to wireless media using target wake time (twt) defined in ieee 802.11 standard | |
WO2015005606A1 (en) | Method for controlling chat window and electronic device implementing the same | |
WO2018161575A1 (en) | Method and device for adjusting broadcast message queue, storage medium, and terminal | |
WO2018076861A1 (en) | Data transmission control method, apparatus, storage medium, server and system | |
WO2018076867A1 (en) | Data backup deleting method, device and system, storage medium and server | |
WO2018076819A1 (en) | Data upload method, apparatus, storage medium, electronic device and system | |
WO2018161580A1 (en) | Broadcast control method and apparatus, storage medium, and electronic device | |
WO2018076889A1 (en) | Data backup method, device, system, storage medium and server | |
EP3304922A1 (en) | Image displaying apparatus and method of operating the same | |
WO2013162322A1 (en) | Communication service management system and operation method for the same | |
WO2017069551A1 (en) | Image displaying apparatus and method of operating the same | |
WO2018010507A1 (en) | Awakening monitoring method of terminal system, storage medium, terminal, and electronic device | |
WO2018076829A1 (en) | Terminal data processing method, apparatus, system, storage medium and server | |
WO2018171534A1 (en) | Mobile terminal-based dual camera power supply control method, system and mobile terminal | |
WO2018161576A1 (en) | Broadcast control method, device, storage medium and mobile terminal | |
WO2018161601A1 (en) | Screen backlight adjusting method, device, storage medium and electronic device | |
WO2016188285A1 (en) | Process management method and device of terminal application | |
WO2018076890A1 (en) | Data backup method, device, storage medium, server and system | |
WO2021230589A1 (en) | Electronic device and method for electronic device processing received data packet | |
EP3472699A1 (en) | Method and electronic device for managing functionality of applications | |
CN107070670B (en) | Method, device and terminal equipment for controlling broadcast sender to send broadcast message | |
WO2018161588A1 (en) | Broadcast receiver queue adjustment method, apparatus, storage medium, and electronic device | |
WO2018161594A1 (en) | Method and apparatus for generating broadcast queue, storage medium, and electronic device | |
WO2018076880A1 (en) | Data backup method, apparatus, storage medium, and terminal |
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: 17899264 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: 17899264 Country of ref document: EP Kind code of ref document: A1 |