CN106919461A - Broadcast recipients' queue regulation method, device and terminal device - Google Patents
Broadcast recipients' queue regulation method, device and terminal device Download PDFInfo
- Publication number
- CN106919461A CN106919461A CN201710141944.4A CN201710141944A CN106919461A CN 106919461 A CN106919461 A CN 106919461A CN 201710141944 A CN201710141944 A CN 201710141944A CN 106919461 A CN106919461 A CN 106919461A
- Authority
- CN
- China
- Prior art keywords
- broadcast
- recipients
- queue
- broadcast recipients
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 172
- 230000008569 process Effects 0.000 claims abstract description 145
- 230000005540 biological transmission Effects 0.000 claims abstract description 34
- 230000001143 conditioned effect Effects 0.000 claims abstract description 23
- 230000015654 memory Effects 0.000 claims description 10
- 241000239290 Araneae Species 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 3
- 238000003860 storage Methods 0.000 claims description 2
- 230000007246 mechanism Effects 0.000 abstract description 9
- 230000002093 peripheral effect Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000004308 accommodation Effects 0.000 description 2
- 230000036461 convulsion Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000011230 binding agent Substances 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000011112 process operation Methods 0.000 description 1
- 230000009885 systemic effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
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
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
The embodiment of the invention discloses a kind of broadcast recipients' queue regulation method, device and terminal device, wherein method includes:Broadcast message to be sent in acquisition broadcast transmission queue, it is determined that broadcast recipients corresponding with the broadcast message to be sent, the corresponding process of the broadcast recipients is traveled through, process liveness is met into the front end that pre-conditioned broadcast recipients are arranged on broadcast reception queue.This programme solves the problems, such as that existing broadcast reception mechanism treatment effeciency is low, improves broadcast treatment effeciency, reduces system resources consumption so that the stability of a system increases.
Description
Technical field
The present embodiments relate to computer technology, more particularly to a kind of broadcast recipients' queue regulation method, device and
Terminal device.
Background technology
Broadcast is a kind of mechanism for carrying out information transfer among applications being widely used, with Android operation system
As a example by, its pass through to broadcast (Broadcast) to realize application program between the transmission of data and shared.Typically, as Android is carried
The broadcast such as short message, phone.
In Android system, broadcast transmission person by the transmission of calling sendBroadcast functions to be broadcast the message, extensively
Broadcast recipient carries out radio receiver by calling registerReceiver functions in management module
(BroadcastReceiver) registration, and define itself broadcast message interested, thus realizes disappearing corresponding broadcast
The reception of breath.
In the prior art, broadcast recipients' existing defects when the broadcast that broadcast transmission person sends is received so that at broadcast
Reason inefficiency, system resources consumption is excessive and stability is poor.
The content of the invention
The invention provides a kind of broadcast recipients' queue regulation method, device and terminal device, broadcast treatment is improve
Efficiency, reduces system resources consumption so that the stability of a system increases.
In a first aspect, a kind of broadcast recipients' queue regulation method is the embodiment of the invention provides, including:
Broadcast message to be sent in acquisition broadcast transmission queue;
It is determined that broadcast recipients corresponding with the broadcast message to be sent;
The corresponding process of the broadcast recipients is traveled through, process liveness is met into pre-conditioned broadcast recipients is set
In the front end of broadcast reception queue.
Second aspect, the embodiment of the present invention additionally provides a kind of broadcast recipients' regulator device, including:
Acquisition module, for obtaining broadcast message to be sent in broadcast transmission queue;
Recipient's determining module, for determining broadcast recipients corresponding with the broadcast message to be sent;
Process spider module, for traveling through the corresponding process of the broadcast recipients;
Regulator module, broadcast reception team is arranged on for process liveness to be met into pre-conditioned broadcast recipients
The front end of row.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal device, including:Processor, memory and storage
On a memory and the computer program that can run on a processor, it is characterised in that computer described in the computing device
Following steps are realized during program:
Broadcast message to be sent in acquisition broadcast transmission queue;
It is determined that broadcast recipients corresponding with the broadcast message to be sent;
The corresponding process of the broadcast recipients is traveled through, process liveness is met into pre-conditioned broadcast recipients is set
In the front end of broadcast reception queue.
Technical scheme provided in an embodiment of the present invention, by obtaining broadcast message to be sent in broadcast transmission queue, really
Fixed broadcast recipients corresponding with the broadcast message to be sent, travel through the corresponding process of the broadcast recipients, by process
Liveness meets the front end that pre-conditioned broadcast recipients are arranged on broadcast reception queue, solves existing broadcasting receiver
The low problem for the treatment of effeciency processed, improves broadcast treatment effeciency, reduces system resources consumption so that the stability of a system increases
Plus.
Brief description of the drawings
By the detailed description made to non-limiting example made with reference to the following drawings of reading, it is of the invention other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of broadcast recipients' queue regulation method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another broadcast recipients' queue regulation method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another broadcast recipients' queue regulation method provided in an embodiment of the present invention;
Fig. 4 is a kind of structured flowchart of broadcast recipients' regulator device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of terminal device provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used to explain the present invention, rather than limitation of the invention.It also should be noted that, for the ease of retouching
State, part rather than entire infrastructure related to the present invention is illustrate only in accompanying drawing.
Fig. 1 is a kind of flow chart of broadcast recipients' queue regulation method provided in an embodiment of the present invention, and the present embodiment can
Suitable for situation about being adjusted to broadcast recipients' queue, the method can be come by terminal device provided in an embodiment of the present invention
Perform, broadcast recipients' regulator device of the terminal device can be realized by the way of software and/or hardware, such as Fig. 1 institutes
Show, the concrete scheme that the present embodiment is provided is as follows:
Broadcast message to be sent in S101, acquisition broadcast transmission queue.
In processing procedure is broadcasted, the service processes of broadcast transmission person are by calling broadcast transmission function (such as
SendBroadcast functions) broadcast message is sent to management module (such as ActivityManagerService, activity management
Service), management module puts it into broadcast transmission queue after receiving the broadcast message, and management module passes through Interprocess Communication Mechanism
(such as Binder Interprocess Communication Mechanisms) sends to the broadcast reception for meeting condition of acceptance the broadcast message in broadcast transmission queue
Person.Wherein, the broadcast transmission queue can be that serial broadcast transmission queue can also be broadcast in parallel transmit queue.
In one embodiment, what the system that refers to that broadcasts the message or application program sent in the process of running, it is used for
The information transmitted between system and/or application program, exemplary, broadcast message can be that system starts broadcast message, short message
Class broadcast message, telephone type broadcast message or tripartite are using class broadcast message etc..Broadcast transmission queue by management module generate,
Management, what what broadcast message to be sent was presently processing in this step may be interpreted as broadcast transmission queue will send is wide
Broadcast message.
S102, determination and the corresponding broadcast recipients of broadcast message to be sent.
Wherein it is determined that the corresponding broadcast recipients of broadcast message go out and to be sent refer to that the broadcast for meeting condition of acceptance connects
Receipts person.In one embodiment, the broadcast recipients are to register (subscription) to management module by Interprocess Communication Mechanism to receive
The broadcast recipients of the broadcast message.Specifically, the service processes of broadcast recipients are by calling registerReceiver letters
Number carries out the registration of radio receiver in management module, while defining itself broadcast message interested, management module is in hair
When sending the broadcast message in broadcast transmission queue, according to the registration scenarios of broadcast recipients, the broadcast message is sent to it
In the corresponding Message Rotation Queue of broadcast recipients that have subscribed, broadcast recipients adjust back note after receiving the broadcast message
Method of reseptance (such as onReceive methods) in the radio receiver of volume is carried out with to the broadcast message performing corresponding function
Treatment.
Each broadcast message there may be one or more corresponding broadcast recipients, exemplary, broadcast transmission person
(such as applying A) sends a broadcast message to management module, management module can by the broadcast message issue one (such as applying B) or
Multiple (such as using C, using D, using E) corresponding broadcast recipients, the quantity of corresponding broadcast recipients depends on registration
Receive the quantity of the broadcast recipients of the broadcast message.
S103, the corresponding process of traversal broadcast recipients, meet process liveness pre-conditioned broadcast recipients and set
Put in the front end of broadcast reception queue.
In broadcast mechanism, broadcast transmission person sends the process of broadcast message and broadcast recipients receive the process of broadcast message
It is asynchronous operation process, broadcast transmission person and broadcast recipients realize the relationship match of lower coupling by management module.Wherein, root
Broadcast message can be divided into common broadcast message and ordered broadcast message by the difference according to broadcast transmission mode.Common broadcast message quilt
After management module sends, reception of the broadcast recipients to the broadcast message is unordered, and ordered broadcast message is managed module
After sending, broadcast recipients successively receive successively in sequence, i.e., first broadcast recipients receive and broadcast the message and process
After finishing, second broadcast recipients could start to receive and process the broadcast message, the like.
For ordered broadcast, the corresponding broadcast recipients that broadcast the message cannot simultaneously receive the broadcast message, extensively
Broadcasting recipient needs to be received successively according to reception order, processes broadcast message.In one embodiment, multiple broadcast recipients connect
Receive, the order for the treatment of broadcast message is embodied in the form of broadcast recipients' queue.In the case of system default, the broadcast
Broadcast recipients receive the order for broadcasting the message and can be can also be according to the parameter determination of the acquiescence of broadcast recipients in queue
Implied terms according to systemic presupposition determines, it is impossible to which the operation parameters according to system during carrying out practically carry out broadcast reception
The adjustment of person's queue.Thus, broadcast recipients need to successively receive broadcast message and cause different broadcast according to broadcast recipients' queue
The time order and function that recipient receives broadcast message is different, causes some broadcast recipients in time to receive broadcast message so that
Important broadcast message cannot be processed in time.Exemplary, if existing in the application program of system current interface operation pending
The broadcast recipients of the broadcast message sent, and the broadcast recipients are located at the tail end of broadcast recipients' queue, then send the broadcast
After message, the application program of system current interface operation cannot be received, processed the very first time to the broadcast message, be reduced
The response efficiency of application program in current interface to the broadcast message.For common broadcast, because broadcast recipients connect
The randomness of broadcast message is received, for a certain specific broadcast recipients, it cannot also receive the broadcast very first time, but
Depend on the operational efficiency of system.
In this step, after S102 determines and broadcasts the message corresponding broadcast recipients, traversal broadcast recipients' correspondence
Process, wherein broadcast recipients can start corresponding process in the process of running, and process refers to that the program in system is counted on certain
It is base unit that system carries out Resource Distribution and Schedule according to the operation activity closed of collection, is the composition basis of system architecture, is
The basic execution entity of application program.Wherein, process liveness characterizes the state of a process of broadcast recipients' operation, wherein,
Can be corresponding state of a process in the current running of broadcast recipients, can also be that the corresponding process of broadcast recipients exists
State during history run.Process liveness is met into pre-conditioned broadcast recipients and is arranged on broadcast reception queue
Front end, accommodation has been carried out to broadcast recipients' queue so that some process liveness meet pre-conditioned broadcast and connect
Receipts person is arranged on broadcast recipients queue front and is able to receive broadcast message as early as possible.In one embodiment, the process is lived
Whether jerk fingering journey is in running status in systems, and the pre-conditioned fingering journey is currently running in systems.Specifically, will
Process liveness meets pre-conditioned broadcast recipients and is arranged on the front end of broadcast reception queue to be included:System is current
The corresponding broadcast recipients of process of operation are arranged on the front end of broadcast reception queue.That is, by judging broadcast recipients' queue
Whether the corresponding process of broadcast recipients of middle queuing determines whether in running status in systems sets broadcast recipients
Put in broadcast recipients queue front.The process that system is currently running is the process of the real-time execution having been started up, and is passed through
Corresponding broadcast recipients are arranged on into the forward position of queue can make its very first time quickly be broadcast the message and carried out
Even if treatment, some broadcast recipients for being in non-operating state will not also be waken up.In one embodiment, process is lived
Jerk meets the front end that pre-conditioned broadcast recipients are arranged on broadcast reception queue, can be in traversal broadcast recipients couple
During the process answered, after it is determined that the process is running status, the broadcast recipients are removed from broadcast recipients' queue, inserted
To team's head of broadcast queue, after determining that the corresponding process of broadcast recipients is in running status again, same operation is performed,
The broadcast recipients that will be determined set team's head of new broadcast recipients' queue after the adjustment.In one embodiment, also
Can be the traversal corresponding process of broadcast recipients, the corresponding broadcast recipients of process to being currently running record, when time
Go through after finishing, the broadcast recipients that unification will be determined are inserted into queue front, specifically, can be according to true in ergodic process
The order of the broadcast recipients for making is sequentially inserted into, and can also be radom insertion to queue front.In another embodiment, the broadcast
The front end of recipient's queue can be the predeterminated position of broadcast recipients' queue, and the predeterminated position can be broadcast recipients' queue
Position of the middle sequence preceding 20%.
A kind of broadcast recipients' queue regulation method is present embodiments provided, by traveling through the wide of broadcast message to be sent
The corresponding process of recipient is broadcast, process liveness is met before pre-conditioned broadcast recipients are arranged on broadcast reception queue
End, it (can be that the new broadcast recipients' queue of establishment can also be modification original in order to form new broadcast recipients' queue
Broadcast recipients' queue), broadcast treatment effeciency is improve, reduce system resources consumption so that the stability of a system increases.
Fig. 2 is the flow chart of another broadcast recipients' queue regulation method provided in an embodiment of the present invention, in above-mentioned reality
Apply on the basis of example, optionally, the corresponding broadcast recipients of process that system is currently running are arranged on broadcast reception team
The front end of row includes:Before the corresponding broadcast recipients of process that system is currently running are arranged on broadcast reception queue
End.
Based on above-mentioned optimization, as shown in Fig. 2 the technical scheme that the present embodiment is provided is specific as follows:
Broadcast message to be sent in S201, acquisition broadcast transmission queue.
S202, determination and the corresponding broadcast recipients of broadcast message to be sent.
S203, the corresponding process of traversal broadcast recipients, the process corresponding broadcast consistent with system foreground process is connect
Receipts person is arranged on team's head of broadcast reception queue.
In one embodiment, the ruuning situation of process can be front stage operation process, the implicit executive process in backstage and stop
The process only run.By traveling through the corresponding process of broadcast recipients, the current fortune of the corresponding process of broadcast recipients can be obtained
Row information, the current operational information according to the corresponding process of broadcast recipients is adjusted setting to broadcast recipients' queue with weight
New sort, it is exemplary, can be team's head that the corresponding broadcast recipients of front stage operation process are arranged on broadcast recipients' queue,
The corresponding broadcast recipients of process out of service are arranged on the tail of the queue of broadcast recipients' queue, it is ensured that system foreground process
Corresponding broadcast recipients can in time receive broadcast message to be sent.
A kind of broadcast recipients' queue regulation method is present embodiments provided, by traveling through the wide of broadcast message to be sent
The corresponding process of recipient is broadcast, the process corresponding broadcast recipients consistent with system foreground process are arranged on broadcast reception team
Team's head of row, forms new broadcast recipients' queue, it is ensured that the corresponding broadcast recipients of foreground process can in time receive pending
The broadcast message sent, wherein foreground process are mostly the process of real-time processing message the need for system is currently running, and such as terminal sets
The corresponding process of standby runnable interface, the foreground process receives broadcast message in the very first time can to carry out treatment to broadcast message
With significantly improve system to the response speed that broadcasts the message, solve system in existing broadcast reception mechanism it is current before
Platform process cannot receive the problem of broadcast message the very first time, improve broadcast reception efficiency, reduce system resources consumption, together
When, because the real-time relied on broadcast message in foreground process running is stronger, can cause if the stand-by period is more long
There is the situation without response within a certain period of time in it, by this embodiment scheme so that the stability of a system is dramatically increased.
Fig. 3 is the flow chart of another broadcast recipients' queue regulation method provided in an embodiment of the present invention, in above-mentioned reality
Apply on the basis of example, optionally, process liveness is met into pre-conditioned broadcast recipients and is arranged on broadcast reception queue
Front end includes:Broadcast in broadcast recipients' queue is connect according to being put in order for broadcast recipients in default broadcast reception list
The sequence of positions of receipts person is adjusted.
Based on above-mentioned optimization, as shown in figure 3, the technical scheme that the present embodiment is provided is specific as follows:
Broadcast message to be sent in S301, acquisition broadcast transmission queue.
S302, determination and the corresponding broadcast recipients of broadcast message to be sent.
S303, the corresponding process of traversal broadcast recipients, according to the row of broadcast recipients in default broadcast reception list
Row order is adjusted to the sequence of positions of broadcast recipients in broadcast recipients' queue.
Wherein, default broadcast reception list can be system determine according to the corresponding progress information of broadcast recipients and/
Or broadcast recipients receive the history of broadcast message and put in order determination.After default broadcast reception list is determined, can be with
The presets list is updated in Preset Time (such as 1 day, 3 days or 5 days), broadcast recipients are suitable in broadcast reception queue
When sequence is adjusted accommodation is carried out according to the order of broadcast recipients in broadcast reception list.For example, broadcast connects
The sequence for receiving broadcast recipients in list is followed successively by broadcast recipients 1, broadcast recipients 2, broadcast recipients 5, wide from front to back
Broadcast recipient 8, broadcast recipients 3, in broadcast recipients' queue from front to back be ordered as broadcast recipients 10, broadcast recipients
5th, broadcast recipients 2 etc., then broadcast recipients' is ordered as broadcast recipients 2, broadcast in the broadcast recipients' queue after adjusting
Recipient 5, broadcast recipients 10.
In one embodiment, default broadcast reception list is in forming process, according to broadcast recipients it is corresponding enter
The traversing result of journey, if there is the foreground process identical process current with system in the corresponding process of broadcast recipients, will
System in default broadcast reception list the current corresponding broadcast recipients of foreground process are adjusted to default broadcast reception
First of list, and it is sequentially adjusted in the default broadcast reception list.
In one embodiment, default broadcast reception list is in forming process, according to broadcast recipients it is corresponding enter
The traversing result of journey, if the liveness of the corresponding process of broadcast recipients is arranged with default broadcast reception list broadcast recipients
When order has differences, the default broadcast of liveness adjustment according to the corresponding process of broadcast recipients in current traversing result connects
Receive list broadcast recipients to put in order, form new broadcast reception list.
Also include being adjusted the order of broadcast recipients in broadcast reception list in one embodiment, it is exemplary
, according at least one of the running frequency of the corresponding process of broadcast recipients, operation duration and resources occupation rate to described pre-
If broadcast reception list in putting in order for broadcast recipients be adjusted so that process liveness broadcast recipients high exist
Sorted in the default broadcast reception list forward.
Wherein, broadcast recipients couple are determined according to one or more information in running frequency, operation duration, resources occupation rate
The liveness of the process answered, and according to the liveness of the corresponding process of broadcast recipients to being broadcasted in default broadcast reception list
Putting in order for recipient is adjusted, exemplary, and the liveness according to process sorts successively to broadcast recipient, will be active
The corresponding broadcast recipients of degree highest process are arranged on team's head of broadcast reception list, and the minimum process of liveness is corresponding
Broadcast recipients are arranged on the tail of the queue of broadcast reception list so that liveness highest process corresponding broadcast recipients preferentially connect
Message to be broadcast is received, active application cannot receive asking for broadcast message the very first time in solving existing broadcast reception mechanism
Topic, improves broadcast reception efficiency.Wherein, in process running to process running frequency, operation duration, resource occupation
Rate is counted, recorded, and the frequency of process operation is bigger, and the liveness of process is higher, and the operation duration of process is more long, process
Liveness is higher, and the resources occupation rate of process is bigger, and the liveness of process is higher.
In one embodiment, record and wide after storing the corresponding broadcast transmission person of broadcast message to be sent and adjusting
The corresponding relation for receiving list is broadcast, is default broadcast reception list by the broadcast reception list update after adjustment, if detecting
Broadcast message to be sent, it is determined that send the broadcast transmission person of the broadcast message, directly invokes corresponding default broadcast and connects
Receive list to determine the order of broadcast recipients' reception broadcast message, that improves default broadcast reception list realizes broadcast reception
The degree of accuracy of person's sequence, reduce the adjustment number of times of the corresponding broadcast recipients' queue of broadcast message to be sent, it is to avoid needs
The resource consumption that corresponding broadcast recipients' process adjustment broadcast recipients' queue brings gradually is traveled through, broadcast is further improved and is connect
Receipts, treatment effeciency.
A kind of broadcast recipients' queue regulation method is present embodiments provided, by traveling through the wide of broadcast message to be sent
The corresponding process of recipient is broadcast, is put in order to broadcast recipients team according to broadcast recipients in default broadcast reception list
The sequence of positions of broadcast recipients is adjusted in row, solves the problems, such as existing broadcast reception mechanism inefficiency, improves
Broadcast reception, treatment effeciency, reduce the resource consumption of system.
Fig. 4 is a kind of structured flowchart of broadcast recipients' regulator device provided in an embodiment of the present invention, and the device is used
In broadcast recipients' queue regulation method that above-described embodiment is provided is performed, possesses the corresponding functional module of execution method and beneficial
Effect.As shown in figure 4, the device is specifically included:Acquisition module 401, recipient's determining module 402, the and of process spider module 403
Regulator module 404.
Wherein, acquisition module 401, for obtaining broadcast message to be sent in broadcast transmission queue;
Recipient's determining module 402, for determining broadcast recipients corresponding with broadcast message to be sent;
Process spider module 403, for traveling through the corresponding process of broadcast recipients;
Regulator module 404, is arranged on broadcast for process liveness to be met into pre-conditioned broadcast recipients and connects
Receive the front end of queue.
The technical scheme that the present embodiment is provided, by obtaining broadcast message to be sent in broadcast transmission queue, it is determined that and
The corresponding broadcast recipients of the broadcast message to be sent, travel through the corresponding process of the broadcast recipients, and process is enlivened
Degree meets the front end that pre-conditioned broadcast recipients are arranged on broadcast reception queue, improves broadcast treatment effeciency, reduces
System resources consumption so that the stability of a system increases.
Optionally, regulator module 404 specifically for:
The corresponding broadcast recipients of process that system is currently running are arranged on the front end of broadcast reception queue.
Optionally, regulator module 404 specifically for:
The consistent process of process foreground process consistent with foreground process in the corresponding process of the broadcast recipients is set
Put the team's head in broadcast recipients' queue.
Optionally, regulator module 404 specifically for:
Broadcast in broadcast recipients' queue is connect according to being put in order for broadcast recipients in default broadcast reception list
The sequence of positions of receipts person is adjusted.
Optionally, the device also includes:
List update module 405, for the running frequency according to the corresponding process of broadcast recipients, operation duration and resource
At least one of occupancy is adjusted to putting in order for broadcast recipients in the default broadcast reception list, so as to enter
Journey liveness broadcast recipients high sort forward in the default broadcast reception list.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and the terminal device can include this
The broadcast recipients' regulator device for providing is provided.Fig. 5 is the structural representation of terminal device provided in an embodiment of the present invention,
As shown in figure 5, the terminal device can include:Memory 501, central processing unit (Central Processing Unit,
CPU) 502, Peripheral Interface 503, RF (Radio Frequency, radio frequency) circuit 505, voicefrequency circuit 506, loudspeaker 511, electricity
Source control chip 508, input/output (I/O) subsystem 509, touch-screen 512, other input/control devicess 510 and outside
Port 504, these parts are communicated by one or more communication bus or holding wire 507.
It should be understood that graphic terminal 500 is only an example of terminal device, and terminal device 500
Can have than the more or less part shown in figure, can combine two or more parts, or can be with
Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special
Integrated circuit is realized in the combination of interior hardware, software or hardware and software.
The terminal device of the rights management for opening application more for being provided with regard to the present embodiment below is described in detail, should
Terminal device is by taking smart mobile phone as an example.
Memory 501, the memory 501 can be accessed by CPU502, Peripheral Interface 503 etc., and the memory 501 can
With including high-speed random access memory, nonvolatile memory can also be included, such as one or more disk memories,
Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU502 and deposited by Peripheral Interface 503, the Peripheral Interface 503
Reservoir 501.
I/O subsystems 509, the I/O subsystems 509 can be by the input/output peripheral in equipment, such as touch-screen 512
With other input/control devicess 510, Peripheral Interface 503 is connected to.I/O subsystems 509 can include the He of display controller 5091
One or more input controllers 5092 for controlling other input/control devicess 510.Wherein, one or more input controls
Device processed 5092 receives electric signal or sends electric signal to other input/control devicess 510 from other input/control devicess 510,
Other input/control devicess 510 can be including physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole, click roller.What deserves to be explained is, input controller 5092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 512, the touch-screen 512 is the input interface and output interface between user terminal and user, can
Depending on output display to user, visual output can be including figure, text, icon, video etc..
Display controller 5091 in I/O subsystems 509 receives electric signal or is sent out to touch-screen 512 from touch-screen 512
Electric signals.Contact on the detection touch-screen of touch-screen 512, the contact that display controller 5091 will be detected is converted to and display
The interaction of the user interface object on touch-screen 512, that is, realize man-machine interaction, is displayed in the user interface on touch-screen 512
Object can be the icon of running game, the icon etc. that is networked to corresponding network.What deserves to be explained is, equipment can also include light
Mouse, light mouse is the extension for not showing the visual touch sensitive surface for exporting, or the touch sensitive surface formed by touch-screen.
RF circuits 505, are mainly used in setting up the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 505 are received and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 505 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications
Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 505 can be included for performing
The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, ID mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 506, is mainly used in receiving voice data from Peripheral Interface 503, and the voice data is converted into telecommunications
Number, and the electric signal is sent to loudspeaker 511.
Loudspeaker 511, for the voice signal for receiving mobile phone from wireless network by RF circuits 505, is reduced to sound
And play the sound to user.
Power management chip 508, for being powered by the hardware that CPU502, I/O subsystem and Peripheral Interface are connected
And power management.
The executable following operations of CPU502 provided in an embodiment of the present invention:
Broadcast message to be sent in acquisition broadcast transmission queue;
It is determined that broadcast recipients corresponding with the broadcast message to be sent;
The corresponding process of the broadcast recipients is traveled through, process liveness is met into pre-conditioned broadcast recipients is set
In the front end of broadcast reception queue.
Optionally, it is described to meet before pre-conditioned broadcast recipients are arranged on broadcast reception queue process liveness
End includes:The corresponding broadcast recipients of process that system is currently running are arranged on the front end of broadcast reception queue.
Optionally, the corresponding broadcast recipients of the process that system is currently running are arranged on broadcast reception queue
Front end include:The process corresponding broadcast recipients consistent with system foreground process are arranged on the team of broadcast reception queue
Head.
Optionally, it is described to meet before pre-conditioned broadcast recipients are arranged on broadcast reception queue process liveness
End includes:Put in order to broadcast reception in broadcast recipients' queue according to broadcast recipients in default broadcast reception list
The sequence of positions of person is adjusted.
Optionally, also include:According to the running frequency of the corresponding process of broadcast recipients, operation duration and resources occupation rate
At least one of putting in order for broadcast recipients in the default broadcast reception list is adjusted so that process is active
Degree broadcast recipients high sort forward in the default broadcast reception list.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
More other Equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (11)
1. a kind of broadcast recipients' queue regulation method, it is characterised in that including:
Broadcast message to be sent in acquisition broadcast transmission queue;
It is determined that broadcast recipients corresponding with the broadcast message to be sent;
The corresponding process of the broadcast recipients is traveled through, process liveness is met into pre-conditioned broadcast recipients is arranged on extensively
Broadcast the front end of receiving queue.
2. method according to claim 1, it is characterised in that described process liveness is met into pre-conditioned broadcast to connect
The front end that receipts person is arranged on broadcast reception queue includes:
The corresponding broadcast recipients of process that system is currently running are arranged on the front end of broadcast reception queue.
3. method according to claim 2, it is characterised in that the process for being currently running system is corresponding wide
Broadcasting recipient and being arranged on the front end of broadcast reception queue includes:
The process corresponding broadcast recipients consistent with system foreground process are arranged on team's head of broadcast reception queue.
4. method according to claim 1, it is characterised in that described process liveness is met into pre-conditioned broadcast to connect
The front end that receipts person is arranged on broadcast reception queue includes:
Put in order to broadcast recipients in broadcast recipients' queue according to broadcast recipients in default broadcast reception list
Sequence of positions be adjusted.
5. method according to claim 4, it is characterised in that also include:
According at least one of the running frequency of the corresponding process of broadcast recipients, operation duration and resources occupation rate to described pre-
If broadcast reception list in putting in order for broadcast recipients be adjusted so that process liveness broadcast recipients high exist
Sorted in the default broadcast reception list forward.
6. a kind of broadcast recipients' regulator device, it is characterised in that including:
Acquisition module, for obtaining broadcast message to be sent in broadcast transmission queue;
Recipient's determining module, for determining broadcast recipients corresponding with the broadcast message to be sent;
Process spider module, for traveling through the corresponding process of the broadcast recipients;
Regulator module, broadcast reception queue is arranged on for process liveness to be met into pre-conditioned broadcast recipients
Front end.
7. device according to claim 6, it is characterised in that the regulator module specifically for:
The corresponding broadcast recipients of process that system is currently running are arranged on the front end of broadcast reception queue.
8. device according to claim 7, it is characterised in that the regulator module specifically for:
The consistent process of process foreground process consistent with foreground process in the corresponding process of the broadcast recipients is arranged on
Team's head of broadcast recipients' queue.
9. device according to claim 6, it is characterised in that the regulator module specifically for:
Put in order to broadcast recipients in broadcast recipients' queue according to broadcast recipients in default broadcast reception list
Sequence of positions be adjusted.
10. device according to claim 9, it is characterised in that also include:
List update module, for the running frequency according to the corresponding process of broadcast recipients, operation duration and resources occupation rate
At least one of putting in order for broadcast recipients in the default broadcast reception list is adjusted so that process is active
Degree broadcast recipients high sort forward in the default broadcast reception list.
A kind of 11. terminal devices, including:Processor, memory and storage can run on a memory and on a processor
Computer program, it is characterised in that realize following steps during computer program described in the computing device:
Broadcast message to be sent in acquisition broadcast transmission queue;
It is determined that broadcast recipients corresponding with the broadcast message to be sent;
The corresponding process of the broadcast recipients is traveled through, process liveness is met into pre-conditioned broadcast recipients is arranged on extensively
Broadcast the front end of receiving queue.
Priority Applications (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 |
PCT/CN2017/106605 WO2018161573A1 (en) | 2017-03-10 | 2017-10-17 | Broadcast receiver queue adjusting method and apparatus, storage medium, and electronic device |
Applications Claiming Priority (1)
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 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106919461A true CN106919461A (en) | 2017-07-04 |
CN106919461B CN106919461B (en) | 2022-07-15 |
Family
ID=59462138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710141944.4A Expired - Fee Related CN106919461B (en) | 2017-03-10 | 2017-03-10 | Method and device for adjusting broadcast receiver queue and terminal equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106919461B (en) |
WO (1) | WO2018161573A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018161573A1 (en) * | 2017-03-10 | 2018-09-13 | 广东欧珀移动通信有限公司 | Broadcast receiver queue adjusting method and apparatus, storage medium, and electronic device |
Citations (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1271128A (en) * | 1999-04-14 | 2000-10-25 | 松下电器产业株式会社 | Event controller and digit broadcasting system |
CN101436146A (en) * | 2008-12-15 | 2009-05-20 | 中兴通讯股份有限公司 | Method and system for dynamically regulating priority of remote device management progress |
CN102375763A (en) * | 2010-08-20 | 2012-03-14 | 中国移动通信集团公司 | System and method for realizing interprocess communication |
CN102479108A (en) * | 2010-11-26 | 2012-05-30 | 中国科学院声学研究所 | Embedded system terminal resource management system and method for multiple application processes |
CN102890628A (en) * | 2011-07-20 | 2013-01-23 | 中国电信股份有限公司 | Method and device for displaying target object |
CN103491507A (en) * | 2013-09-05 | 2014-01-01 | 深圳市欧珀通信软件有限公司 | Method and device for relocation of orderly broadcast priority |
CN103593217A (en) * | 2013-11-26 | 2014-02-19 | 广东欧珀移动通信有限公司 | Method and terminal for adjusting hook key start application order of earphone |
CN103634636A (en) * | 2013-11-13 | 2014-03-12 | Tcl集团股份有限公司 | Application shortcut operation and control method and system of Android intelligent television |
CN103826008A (en) * | 2014-02-18 | 2014-05-28 | 华为终端有限公司 | Mobile terminal notification message prompting method and device and mobile terminal |
CN104254074A (en) * | 2013-06-28 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Method and device for intercepting spam short messages |
CN104461725A (en) * | 2014-12-30 | 2015-03-25 | 小米科技有限责任公司 | Application process starting control method and device |
CN104488282A (en) * | 2012-07-31 | 2015-04-01 | 索尼公司 | Reception device, reception method, transmission device, and transmission method |
CN104601801A (en) * | 2014-12-24 | 2015-05-06 | 广东欧珀移动通信有限公司 | WiFi hotspot connecting method and system for mobile terminal with screen locked |
CN105142165A (en) * | 2015-06-25 | 2015-12-09 | 小米科技有限责任公司 | Terminal device searching method and device |
CN105335243A (en) * | 2015-11-30 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | Broadcast message operation method and system in Android system |
CN105357648A (en) * | 2015-10-10 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | Method and Android system for sending broadcast message to application program |
CN105791990A (en) * | 2014-12-15 | 2016-07-20 | 深圳Tcl数字技术有限公司 | Global key processing method and system of smart television |
US20160241507A1 (en) * | 2006-12-21 | 2016-08-18 | Verizon Patent And Licensing Inc. | Method and apparatus for group messaging |
CN105933369A (en) * | 2015-12-24 | 2016-09-07 | 中国银联股份有限公司 | Message forwarding method and device |
CN106201611A (en) * | 2016-07-07 | 2016-12-07 | 北京小米移动软件有限公司 | Run the method and device of application |
CN106484473A (en) * | 2016-09-29 | 2017-03-08 | Tcl集团股份有限公司 | A kind of application starts method and apparatus |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095902B (en) * | 2011-11-07 | 2014-11-05 | 联想(北京)有限公司 | Information processing method and equipment |
CN106919461B (en) * | 2017-03-10 | 2022-07-15 | Oppo广东移动通信有限公司 | Method and device for adjusting broadcast receiver queue and terminal equipment |
-
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 (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1271128A (en) * | 1999-04-14 | 2000-10-25 | 松下电器产业株式会社 | Event controller and digit broadcasting system |
US20160241507A1 (en) * | 2006-12-21 | 2016-08-18 | Verizon Patent And Licensing Inc. | Method and apparatus for group messaging |
CN101436146A (en) * | 2008-12-15 | 2009-05-20 | 中兴通讯股份有限公司 | Method and system for dynamically regulating priority of remote device management progress |
CN102375763A (en) * | 2010-08-20 | 2012-03-14 | 中国移动通信集团公司 | System and method for realizing interprocess communication |
CN102479108A (en) * | 2010-11-26 | 2012-05-30 | 中国科学院声学研究所 | Embedded system terminal resource management system and method for multiple application processes |
CN102890628A (en) * | 2011-07-20 | 2013-01-23 | 中国电信股份有限公司 | Method and device for displaying target object |
CN104488282A (en) * | 2012-07-31 | 2015-04-01 | 索尼公司 | Reception device, reception method, transmission device, and transmission method |
CN104254074A (en) * | 2013-06-28 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Method and device for intercepting spam short messages |
CN103491507A (en) * | 2013-09-05 | 2014-01-01 | 深圳市欧珀通信软件有限公司 | Method and device for relocation of orderly broadcast priority |
CN103634636A (en) * | 2013-11-13 | 2014-03-12 | Tcl集团股份有限公司 | Application shortcut operation and control method and system of Android intelligent television |
CN103593217A (en) * | 2013-11-26 | 2014-02-19 | 广东欧珀移动通信有限公司 | Method and terminal for adjusting hook key start application order of earphone |
CN103826008A (en) * | 2014-02-18 | 2014-05-28 | 华为终端有限公司 | Mobile terminal notification message prompting method and device and mobile terminal |
CN105791990A (en) * | 2014-12-15 | 2016-07-20 | 深圳Tcl数字技术有限公司 | Global key processing method and system of smart television |
CN104601801A (en) * | 2014-12-24 | 2015-05-06 | 广东欧珀移动通信有限公司 | WiFi hotspot connecting method and system for mobile terminal with screen locked |
CN104461725A (en) * | 2014-12-30 | 2015-03-25 | 小米科技有限责任公司 | Application process starting control method and device |
CN105142165A (en) * | 2015-06-25 | 2015-12-09 | 小米科技有限责任公司 | Terminal device searching method and 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 |
CN105933369A (en) * | 2015-12-24 | 2016-09-07 | 中国银联股份有限公司 | Message forwarding method and device |
CN106201611A (en) * | 2016-07-07 | 2016-12-07 | 北京小米移动软件有限公司 | Run the method and device of application |
CN106484473A (en) * | 2016-09-29 | 2017-03-08 | Tcl集团股份有限公司 | A kind of application starts method and apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018161573A1 (en) * | 2017-03-10 | 2018-09-13 | 广东欧珀移动通信有限公司 | Broadcast receiver queue adjusting method and apparatus, storage medium, and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN106919461B (en) | 2022-07-15 |
WO2018161573A1 (en) | 2018-09-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109783028B (en) | Optimization method and device for I/O scheduling, storage medium and intelligent terminal | |
CN106686557B (en) | Broadcast processing method, device and terminal device | |
US10097292B2 (en) | Method, device, terminal and storage medium for adjusting broadcast message queue | |
CN106851014A (en) | Adjust method, device and the terminal of broadcast message queue | |
CN106921947A (en) | Adjust method, device and the terminal of broadcast message queue | |
US10908976B2 (en) | Broadcast queue adjustment method, terminal, and storage medium | |
CN106851015A (en) | Adjust method, device and the terminal of broadcast message queue | |
CN106851016A (en) | Broadcast the message method, device and the terminal queued up | |
CN107070670A (en) | Broadcast transmission person is controlled to send method, device and the terminal device of broadcast message | |
CN106936827B (en) | A kind of broadcast recipients' queue regulation method, device and terminal | |
CN106919459A (en) | A kind of management method of broadcast recipients, device and terminal | |
WO2022037176A1 (en) | Inter-core communication method and apparatus, electronic assembly, and electronic device | |
US10990460B2 (en) | Method of generating broadcast queue, storage medium, and terminal | |
CN106937258A (en) | A kind of control method of broadcast, device and mobile terminal | |
CN106954191B (en) | Broadcast transmission method, apparatus and terminal device | |
CN106953852A (en) | Register method, device and the terminal device of radio receiver | |
CN107483734B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
CN106851592A (en) | A kind of method of adjustment of broadcast recipients, device and terminal | |
CN106851593A (en) | A kind of broadcast transmission method, device and terminal | |
CN106851595B (en) | Ordered broadcast processing method, device and terminal device | |
CN106936826A (en) | The register method of radio receiver, device and terminal device | |
CN106919461A (en) | Broadcast recipients' queue regulation method, device and terminal device | |
CN106936994A (en) | A kind of control method of broadcast recipients, device and mobile terminal | |
CN106936828A (en) | A kind of broadcast recipients' queue regulation method, device and terminal | |
CN106899943A (en) | Control broadcast transmission person sends method, device and the terminal device of broadcast message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220715 |
|
CF01 | Termination of patent right due to non-payment of annual fee |