CN106681806A - Method for distributing hardware resources and intelligent terminal - Google Patents
Method for distributing hardware resources and intelligent terminal Download PDFInfo
- Publication number
- CN106681806A CN106681806A CN201611058828.8A CN201611058828A CN106681806A CN 106681806 A CN106681806 A CN 106681806A CN 201611058828 A CN201611058828 A CN 201611058828A CN 106681806 A CN106681806 A CN 106681806A
- Authority
- CN
- China
- Prior art keywords
- application
- resource
- hardware resource
- smart machine
- hardware
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000013468 resource allocation Methods 0.000 claims description 82
- 238000004140 cleaning Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 17
- 238000010586 diagram Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000007599 discharging Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000015654 memory Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000004080 punching 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/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- 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/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method for distributing hardware resources. When a resource distributing request initiated by a specific application is received, whether the hardware resources requested by the specific application are occupied or not is judged according to a resource distributing record of an application currently started of intelligent equipment, wherein the resource distributing record is used for indicating the hardware resources distributed by the intelligent equipment to the currently started application; if the judgment result is negative, the hardware resources occupied by the application currently started of the intelligent equipment are kept unchanged, and the hardware resources requested by the specific application are distributed to the specific application. It is clear that whether the hardware resources requested by the specific application are occupied or not can be accurately judged through the resource distributing record of the application currently started of the intelligent equipment; when the judgment result is negative, the hardware resources are directly distributed to the specific application, therefore, unnecessary resource release in the application switching process is avoided, and switching speed between different applications is increased.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of distribution method of hardware resource, while the application also spy
It is not related to a kind of smart machine.
Background technology
With the development of science and technology, the function of smart machine (such as intelligent television, smart mobile phone etc.) becomes stronger and stronger, energy
Enough application softwaries installed on smart machine are also more and more.The unlatching of software application needs hardware resource as support, and
And the hardware resource needed between different application softwaries may be identical.Therefore, between different application softwaries, may exist
The problem of hardware resource conflict.
In the prior art, in order to avoid the hardware resource conflict between different application software, universal method be by
Before the use scene of one application software is switched to the use scene of another application software, notify that the former discharges application software
The hardware resource of all applications simultaneously waits release to finish and then just start the latter's application software.
For example, in TV is enabled, when obtaining scene by live telecast tuning and being switched to the local multimedia scene of broadcasting,
After needing first to discharge the hardware resource of modem and separator of live telecast application occupancy, then distribute to player application
The hardware resource of decoder and picture output device.
Inventor during the application is realized, find prior art in, it is to avoid the hardware between different application software
, at least there is problem below in the method for resource contention.
According to the method for prior art, in the case of there is no hardware resource conflict between two application softwaries, still
The resource release that previous application software can be taken.Under this application scenarios, the previous application of release is completely unnecessary
The resource that software takes.
Afterwards, if user switches back into original application software again, need to distribute for original application software again
Resource.So unnecessary release resource and again apply resource need to consume the substantial amounts of time, so as to cause application software
Between time for switching it is longer, have a strong impact on the experience of user.
It can be seen that, how accurately to detect with the presence or absence of real resource contention between different application, and then applying handoff procedure
In avoid unnecessary resource from discharging, accelerate different application between switch speed, become those skilled in the art urgently to be resolved hurrily
Technical problem.
The content of the invention
The invention provides a kind of distribution method of hardware resource, accurately with the presence or absence of real money between detection different application
Source conflicts, and then in using handoff procedure, avoid unnecessary resource from discharging, and accelerates the switch speed between different application, described
Method at least includes:
When the resource allocation request initiated by specified application is received, according to the application that the smart machine is currently opened
Resource allocation record, judge whether the hardware resource of the specified application request occupied, the resource allocation is recorded and is used for
Point out the smart machine to the hardware resource of the application distribution of the current unlatching;
If judged result is no, keeps the hardware resource that the application of the current unlatching takes constant, and specify to described
Using the hardware resource for distributing the specified application request.
Preferably, it is described distribute the hardware resource of the specified application request to the specified application after, methods described
Also include:
According to the hardware resource to the specified application distribution, the resource allocation record of the specified application is generated.
Preferably, the resource allocation record of the application that the basis is currently opened, judges the hard of the specified application request
Whether part resource is occupied, specially:
Currently allocated hard of the smart machine is determined according to the resource allocation record of the application of the current unlatching
Part resource;
Judge whether currently allocated with the smart machine hardware money of the hardware resource of the specified application request
Source is identical;
If the determination result is YES, then confirm that the hardware resource of the specified application request is occupied;
If judged result is no, confirm that the hardware resource of the specified application request is unoccupied.
Preferably, also include:
If the determination result is YES, then distribute institute to the specified application after the hardware resource that release conflict application takes
The hardware resource of specified application request is stated, the conflict application occupies the hardware resource of the specified application request.
Preferably, after the hardware resource that the release conflict application takes, methods described also includes:
Delete the resource allocation record of the conflict application.
Accordingly, the application proposes a kind of smart machine, and the smart machine includes multiple applications, the smart machine bag
Include:
Judge module, it is when the resource allocation request initiated by specified application is received, current according to the smart machine
The resource allocation record of the application of unlatching, judges whether the hardware resource of the specified application request is occupied, the resource point
It is used to point out the smart machine to the hardware resource of the application distribution of the current unlatching with record;
First distribute module, when judged result is no, keeps the hardware resource that the application of the current unlatching takes not
Become, and distribute the hardware resource of the specified application request to the specified application.
Preferably, also include:
Logging modle, according to the hardware resource to the specified application distribution, generates the resource allocation of the specified application
Record.
Preferably, the judge module specifically for:
Currently allocated hard of the smart machine is determined according to the resource allocation record of the application of the current unlatching
Part resource;
Judge whether currently allocated with the smart machine hardware money of the hardware resource of the specified application request
Source is identical;
If the determination result is YES, then confirm that the hardware resource of the specified application request is occupied;
If judged result is no, confirm that the hardware resource of the specified application request is unoccupied.
Preferably, also include:
Second distribute module, when judged result is to be, after the hardware resource that release conflict application takes, to the finger
Fixed application distributes the hardware resource of the specified application request, and the conflict application occupies the hardware of the specified application request
Resource.
Preferably, also include:
Cleaning modul, deletes the resource allocation record of the conflict application.
By the technical scheme using the application, when the resource allocation request initiated by specified application is received, according to
Whether the resource allocation record of the application that smart machine is currently opened, judge to specify the hardware resource of application request occupied.Its
In, resource allocation is recorded for pointing out smart machine to the hardware resource of the current application distribution opened.If it is judged that being
It is no, then keep the hardware resource using occupancy that smart machine is currently opened constant, and specify application to ask to specified application distribution
The hardware resource asked.It can be seen that, the resource allocation record of the application currently opened by smart machine can judge to specify exactly
Whether the hardware resource of application request is occupied.When judged result is no, directly distribute hardware resource to specified application, so as to
Avoid and discharge using resource unnecessary in handoff procedure, accelerate the switch speed between different application.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the application, embodiment will be described below needed for accompanying drawing to be used
It is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, general for this area
For logical technical staff, on the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of schematic flow sheet of the distribution method of hardware resource that the embodiment of the present application is proposed;
Fig. 2 is a kind of schematic diagram of the mechanism of hardware device path sectional management that the application specific embodiment is proposed;
Fig. 3 is that a kind of resource allocation session based on context that the application specific embodiment is proposed is indicated
(SessionId) schematic diagram;
Fig. 4 is to the schematic diagram of live telecast tuning Resources allocation for the proposition of the application specific embodiment;
Fig. 5 is that the locally applied resource contention for playing video that is switched to that the application specific embodiment is proposed manages process
Schematic diagram;
Fig. 6 is the signal for being switched to the locally applied resource release process for playing video that the application specific embodiment is proposed
Figure;
Fig. 7 is the signal for being switched to the locally applied resource allocation process for playing video that the application specific embodiment is proposed
Figure;
Fig. 8 is a kind of structural representation of smart machine that the embodiment of the present application is proposed.
Specific embodiment
As stated in the Background Art, in the prior art, in order to avoid the hardware between the upper different application software of intelligent terminal
Resource contention, universal method are the use scenes that another application software is switched in the use scene by an application software
Before, notify that the former application software discharges the hardware resource of all applications and waits release to finish and then just start the latter using soft
Part.If however, there is no real hardware resource conflict between two application softwaries, being then completely unnecessary and first originally being opened
The resource release that the application software for opening takes.Because, it is not necessary to the resource release process needs to consume the substantial amounts of time, from
And cause the time switched between application software longer, affect the experience of user.
Therefore in order to be detected with the presence or absence of real resource contention between different application exactly, and then application is avoided to switch
Resource release unnecessary in journey, accelerates the switch speed between different application, present applicant proposes a kind of distribution of hardware resource
Method, when the resource allocation request initiated by specified application is received, the resource of the application currently opened according to smart machine
Whether assignment record, judge to specify the hardware resource of application request occupied.Wherein, resource allocation is recorded for pointing out that intelligence sets
The standby hardware resource to the current application distribution opened.If it is judged that being no, then answering for smart machine currently unlatching is kept
It is constant with the hardware resource for taking, and the hardware resource of application request is specified to specified application distribution.It can be seen that, by smart machine
Whether the resource allocation record of the current application opened can judge to specify the hardware resource of application request occupied exactly.
When judged result is no, directly distribute hardware resource to specified application, so as to avoid using money unnecessary in handoff procedure
Source discharges, and accelerates the switch speed between different application.
As shown in figure 1, a kind of schematic flow sheet of the distribution method of the hardware resource proposed for the application, needs explanation
It is that the application is applied in the smart machine comprising multiple applications, smart machine can be specially intelligent television, smart mobile phone etc.
Equipment.Specifically, the application comprises the following steps:
S101, when the resource allocation request initiated by specified application is received, according to answering that smart machine is currently opened
Whether resource allocation is recorded, judge to specify the hardware resource of application request occupied.
Wherein, resource allocation is recorded for pointing out smart machine to the hardware resource of itself current application distribution opened.
In existing resource allocation methods, smart machine in the resource allocation request initiated by specified application, in order to
The resource conflict problem using between is avoided, after first all discharge the hardware resource that its current application opened takes, just meeting
To the specified application distribution hardware resource for initiating request.It can be seen that, in the prior art, there is no the testing mechanism of resource contention
(detect), therefore cause to answer with specifying in the current application opened
During with there are no real hardware conflicts, the hardware resource release that also the current application opened can be taken.
Therefore, in the embodiment of the present application, when the resource allocation request initiated by specified application is received, will sentence first
It is shared that severed finger determines the application whether hardware resource of application request currently opened.Due to the testing machine that there is resource contention
System, so that intelligence can be learnt exactly initiates the specified application of resource request and the application of front unlatching with the presence or absence of true
Hardware resource conflict, this is for following how to specify application distribution hardware resource to provide important reference.
In the embodiment of the present application, the resource allocation record of the application currently opened according to smart machine, judges to specify
Whether the hardware resource of application request is occupied.Wherein, resource allocation is recorded for pointing out smart machine to itself current unlatching
Application distribution hardware resource.According to the resource allocation record of the current application opened, the application of current unlatching can be obtained
The hardware resource of occupancy.
It is in the preferred embodiment of the application, specific to judge to specify the hardware resource of application request whether occupied, can
Complete with by following flow process.
(1) determine that smart machine is currently allocated according to the resource allocation record of the current application opened in smart machine
Hardware resource.
The resource allocation record of the current application opened in smart machine is first looked at, determines that smart machine is currently distributed
The hardware resource for going.
(2) judge whether currently allocated with the smart machine hardware of the hardware resource of the specified application request
Resource is identical.
According to the hardware resource request that specified application sends, obtain to specify and apply asked hardware asset information.Afterwards
The again hardware asset information asked by the hardware resource hardware resource currently allocated with smart machine compares, and judges to refer to
Whether the asked hardware resource of application is dispensed by smart machine calmly.According to the result for judging, it is determined that specifying application request
Hardware resource it is whether occupied.
(3) if the determination result is YES, then confirm that the hardware resource for specifying application request to be asked is occupied.
If it is determined that result be it is yes, then illustrate specify application request hardware resource dispensed by smart machine
, now confirm that the hardware resource asked by resource allocation request is occupied.
(4) if judged result is no, confirm to specify the hardware resource of application request unoccupied.
If it is determined that result be it is no, then illustrate specify application request hardware resource also do not dispensed by smart machine
, now confirm that the hardware resource asked by resource allocation request is unoccupied.
Preferred embodiment by more than, can pass through the resource allocation record of the application that smart machine is currently opened,
Judge exactly to specify the hardware resource of application request whether occupied, how this is following to specify application distribution hardware to provide
Source, there is provided important reference.
It should be noted that the whether occupied method of hardware resource of application request is specified in how interpretation presented above,
A kind of preferred embodiment that simply the application is proposed, based on the core concept of the application, those skilled in the art can be with
Other interpretations are taken to specify the whether occupied method of hardware resource of application request, this does not interfere with the protection of the application
Scope.
In the preferred embodiment of the application, if it is judged that to specify the hardware resource of application request occupied
With then after the hardware resource that conflict application takes is discharged, to the hardware resource of the specified application request of specified application distribution.Its
In, conflict application occupies the hardware resource of specified application request.
In the preferred embodiment of the application, conflict application occupies specified application in referring to the application that smart machine is opened
The application of the hardware resource of request.As conflict application occupies the hardware resource of specified application request, therefore answering to specifying
Before with distribution hardware resource, it is necessary to the hardware resource that first release conflict application takes, it is ensured that can be hard to specified application distribution
Part resource.
By more than be preferable to carry out method, judged result be specify application request hardware resource it is occupied
When, first the hardware resource that conflict application takes is discharged, so as to avoid the resource specified application and conflict between application
Conflict, it is ensured that to the resource allocation process of specified application.
In the preferred embodiment of the application, after the hardware resource that release conflict application takes, in addition it is also necessary to should by conflict
Resource allocation record deletion.
In this application, it is intended to record to judge to specify the hardware resource of application request whether occupied by resource allocation
With.After the hardware resource that release conflict application takes, conflict application is closed by smart machine, therefore, now also need to
By the resource allocation record deletion of conflict application, the judgement for also affecting next time is recorded with the resource allocation for avoiding conflict application
Process.
S102, if it is judged that to specify the hardware resource of application request unoccupied, then keeping smart machine current
The hardware resource that the application of unlatching takes is constant, and the hardware resource of application request is specified to specified application distribution.
If it is judged that to specify the hardware resource of application request unoccupied, then illustrating to specify to be applied to smart machine
In there is no real resource contention between the current application opened, now there is no need by smart machine it is current open should
With the hardware resource release for taking.
Therefore, in embodiments herein, if it is judged that to specify the hardware resource of application request unoccupied,
Then keep the hardware resource that the application that smart machine is currently opened takes constant, and application request is specified to specified application distribution
Hardware resource, discharges using resource unnecessary in handoff procedure so as to avoid, and accelerates the switch speed between different application.
It should be noted that as smart machine keeps the hardware resource that original application opened takes constant, thus
Smart machine is reappeared when switching back into the application of original unlatching, then need not be original application distribution hardware resource opened again,
So as to improve the speed of switching.
In the preferred embodiment of the application, after the hardware resource of its request is assigned with to specified application, in addition it is also necessary to
According to the hardware resource to the specified application distribution, the resource allocation record for specifying application is generated.
After completing to specifying the resource allocation process applied, the resource allocation record for specifying application is generated, with note
The hardware resource to specified application distribution is recorded, reference frame is provided as hardware resource assigning process next time.
By the description of above example flow process, present applicant proposes a kind of resource allocation methods, receive by
During the resource allocation request for specifying application to initiate, the resource allocation record of the application currently opened according to smart machine judges to refer to
Whether the hardware resource for determining application request is occupied.Wherein, resource allocation is recorded for pointing out smart machine to current unlatching
Using the hardware resource of distribution.If it is judged that being no, then the hardware money that the application that smart machine is currently opened takes is kept
Source is constant, and the hardware resource of application request is specified to specified application distribution.It can be seen that, the application currently opened by smart machine
Resource allocation record can judge exactly specify application request hardware resource it is whether occupied.It is no in judged result
When, directly distribute hardware resource to specified application, discharge using resource unnecessary in handoff procedure so as to avoid, accelerate not
With the switch speed between application.
In order to the technological thought of the present invention is expanded on further, in conjunction with specific implementing procedure, the technical side to the present invention
Case is illustrated.
Mechanism of the present invention based on a hardware device path sectional management, as shown in Fig. 2 the interaction for the mechanism is illustrated
Figure.In this mechanism, hardware resource equipment (such as demodulator device, decoder apparatus, separator device etc.) is by respective independence
Device gateway control;Each gateway is responsible for opening, closes corresponding equipment, specifies data-source device and under resource apparatus
Up to other action commands.
A kind of method of resource allocation session sign (SessionId) based on context of present invention design, form such as Fig. 3
It is shown.In this sign, first character section (AppName) represents the application name or sign (ID) of current Resources allocation, finally
One field session represents the end of whole sign, and it is the corresponding resource apparatus sign of distribution that middle other fields are represented
(ID).Such as resource SessionId of live telecast tuning is "/LiveTv/Tuner0/Demux0/session ", locally should
With play video resource SessionId be "/NativeApp/Decoder0/WinMain/session ", browser play net
Resource SessionId of network TS streams is "/Browser/Demux0/Decoder0/WinMain/session ".
When resource allocation is clashed, SessionId is used to represent current conflict resource allocation session.For example:If worked as
Before be that live telecast is applied using program search, then current resource allocation session list is:“/LiveTv/Tuner0/
Demux0/session”;Play when network TS flows when handoff scenario to browser and find there is resource contention, conflicted resource
SessionId is:“/LiveTv/Tuner0/Demux0/session”.Application manager is according to answering in this SessionId
Notify that with (LiveTv) is represented live telecast discharges the resource shared by which, be browser assignment phase again after waiting end to be released
The resource answered simultaneously arranges corresponding SessionId.
When there is multiple resource contentions, conflicted resource is expressed as:SessionId1&Session2.For example currently search
Platform and the locally applied video of broadcasting, Current resource distribute session list and are:"/LiveTv/Tuner0/Demux0/session " and
“/NativeApp/Decoder0/WinMain/session”;When handoff scenario to browser play find when network TS flows with
The first two application there is resource contention, the sessionId of this conflicted resource is then designed as:“/LiveTv/Tuner0/
Demux0/session”&“/NativeApp/Decoder0/WinMain/session”.Application manager receives this
Discharge the resource shared by LiveTV and NativeApp after SessionId simultaneously.
Discussion based on more than, process is specific as follows (is regarded with tuning, locally applied broadcasting for the resource contention management of the present invention
As a example by frequency and browser play TS flow fields scape):
As shown in figure 4, being, to the process of live telecast tuning Resources allocation, as seen from the figure, to comprise the following steps:
(1) live telecast (Launcher applications) starts tuning request and to resource contention manager by application manager
Initiate the request of Resources allocation.
(2) it is then this resource allocation one new band application name of generation that the inspection of resource contention manager does not have resource contention
The SessionId of word:/ Launcher/session (this SessionId is named as sessionId1 for convenience of description).
(3) resource contention manager is initiated as the request of tuning Resources allocation to resource apparatus manager, and this request is attached
The sessionId1 produced in taking step (2).
(4) resource apparatus manager is this resource allocation request distribution modem device (Tuner0) and separator
Equipment (Demux0) resource.
(5) resource apparatus link manager forms link and updates sessionId1 for Tuner0 and Demux0 resources and is:/
Launcher/Tuner0/Demux0/session。
(6) resource contention manager receives the sessionId1 of renewal and remains in Session lists.If follow-up provide
After the release of source, resource contention manager then removes the sessionId1 of preservation.
As shown in figure 5, for be switched to it is locally applied play video resource contention management process, as seen from the figure, including with
Under step:
(1) application manager receives the request of switching application, then to resource contention manager request Resources allocation.
(2) requirement of the resource contention manager based on locally applied business to resource, to decoding device (Decoder) and
Picture output device (WinMain) and current Session lists carry out resource contention inspection.It was found that, it is current all
Find in SessionId that Decoder and WinMain is occupied.Then produce a new SessionId:/NativeApp/
Decoder0/WinMain/session (this SessionId is named as sessionId2 for convenience of description).Now resource punching
Two SessionId are kept in prominent manager in session lists:SessionId1 and sessionId2
(3) resource need not be redistributed for tuning if being subsequently to switch back to live telecast tuning.
As shown in Fig. 6 and 7, to be switched to the locally applied resource contention management process for playing video, as seen from the figure, bag
Include below step:
(1) application manager receives the request for being switched to that browser application plays TS streams, to resource contention manager request
Resources allocation (Demux, Decoder and WinMain).
(2) resource contention manager finds there is resource contention based on Session lists, then returns to application manager and rushes
Prominent the Resources list is:“/Launcher/Tuner0/Demux0/session&/NativeApp/Decoder0/WinMain/
session”。
(3) according to resource contention list, application manager finds that browser is applied with Launcher and NativeApp applications
There is resource contention, then wherein ask using release is sent using with NativeApp to Launcher.
(4) and then application manager is again to resource contention manager request resource allocation, same to Step2~6 generate new
SessionId:/ Browser/Demux0/Decoder0/WinMain/session is simultaneously stored in resource contention manager.
By the description of embodiments above flow process, present applicant proposes a kind of resource allocation methods, are receiving
During to the resource allocation request initiated by specified application, the resource allocation record of the application currently opened according to smart machine is sentenced
Whether the hardware resource that severed finger determines application request is occupied.Wherein, resource allocation is recorded for pointing out smart machine to currently opening
The hardware resource of the application distribution opened.If it is judged that being no, then the hard using what is taken of smart machine currently unlatching is kept
Part resource is constant, and the hardware resource of application request is specified to specified application distribution.It can be seen that, currently opened by smart machine
Using resource allocation record can judge exactly specify application request hardware resource it is whether occupied.In judged result it is
When no, directly distribute hardware resource to specified application, discharge using resource unnecessary in handoff procedure so as to avoid, accelerate
Switch speed between different application.
In order to reach the technical purpose of the above, present applicant proposes a kind of smart machine, the smart machine is comprising multiple
Using, as shown in figure 8, including:
Judge module 801, when the resource allocation request initiated by specified application is received, works as according to the smart machine
The resource allocation record of the application of front unlatching, judges whether the hardware resource of the specified application request is occupied, the resource
Assignment record is used to point out the smart machine to the hardware resource of the application distribution of the current unlatching;
First distribute module 802, when judged result is no, the hardware resource for keeping the application of the current unlatching to take
It is constant, and distribute the hardware resource of the specified application request to the specified application.
Preferably, also include:
Logging modle, according to the hardware resource to the specified application distribution, generates the resource allocation of the specified application
Record.
Preferably, the judge module specifically for:
Currently allocated hard of the smart machine is determined according to the resource allocation record of the application of the current unlatching
Part resource;
Judge whether currently allocated with the smart machine hardware money of the hardware resource of the specified application request
Source is identical;
If the determination result is YES, then confirm that the hardware resource of the specified application request is occupied;
If judged result is no, confirm that the hardware resource of the specified application request is unoccupied.
Preferably, also include:
Second distribute module, when judged result is to be, after the hardware resource that release conflict application takes, to the finger
Fixed application distributes the hardware resource of the specified application request, and the conflict application occupies the hardware of the specified application request
Resource.
Preferably, also include:
Cleaning modul, deletes the resource allocation record of the conflict application.
The description of concrete equipment by more than, present applicant proposes a kind of resource allocation methods, is receiving by referring to
During the resource allocation request that fixed application is initiated, the resource allocation record of the application currently opened according to smart machine judges to specify
Whether the hardware resource of application request is occupied.Wherein, resource allocation is recorded for pointing out smart machine answering to current unlatching
With the hardware resource of distribution.If it is judged that being hardware resource that is no, then keeping the application that smart machine is currently opened to take
It is constant, and the hardware resource of application request is specified to specified application distribution.It can be seen that, the application currently opened by smart machine
Whether resource allocation record can judge to specify the hardware resource of application request occupied exactly.When judged result is no,
Directly distribute hardware resource to specified application, discharge using resource unnecessary in handoff procedure so as to avoid, accelerate different
Using switch speed.
What is finally illustrated is:Various embodiments above only to illustrate technical scheme, rather than a limitation;Although
The present invention is described in detail with reference to foregoing embodiments, it will be understood by those within the art that;Which is still
Technical scheme described in foregoing embodiments can be modified, or which part or all technical characteristic are carried out
Equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from the claims in the present invention and limited
Scope.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be led to
Cross hardware realization, it is also possible to by software plus necessary general hardware platform mode realizing.Based on such understanding, this
Bright technical scheme can be embodied in the form of software product, and the software product can be stored in a non-volatile memories
Medium (can be CD-ROM, USB flash disk, portable hard drive etc.) in, use so that a computer equipment (can be including some instructions
Personal computer, server, or network equipment etc.) perform method described in each implement scene of the invention.
It will be appreciated by those skilled in the art that accompanying drawing is a schematic diagram for being preferable to carry out scene, module in accompanying drawing or
Flow process is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that module in device in implement scene can according to implement scene describe into
Row is distributed in the device of implement scene, it is also possible to carry out one or more dresses that respective change is disposed other than this implement scene
In putting.The module of above-mentioned implement scene can merge into a module, it is also possible to be further split into multiple submodule.
The invention described above sequence number is for illustration only, does not represent the quality of implement scene.
Disclosed above is only that the several of the present invention are embodied as scene, but, the present invention is not limited to this, Ren Heben
What the technical staff in field can think change should all fall into protection scope of the present invention.
Claims (10)
1. a kind of distribution method of hardware resource, it is characterised in that be applied in the smart machine comprising multiple applications, the side
Method at least includes:
When the resource allocation request initiated by specified application is received, the money of the application currently opened according to the smart machine
Source assignment record, judges whether the hardware resource of the specified application request is occupied, and the resource allocation is recorded for pointing out
Hardware resource of the smart machine to the application distribution of the current unlatching;
If judged result is no, keep the hardware resource that the application of the current unlatching takes constant, and to the specified application
Distribute the hardware resource of the specified application request.
2. the method for claim 1, it is characterised in that described to distribute the specified application request to the specified application
Hardware resource after, methods described also includes:
According to the hardware resource to the specified application distribution, the resource allocation record of the specified application is generated.
3. method as claimed in claim 2, it is characterised in that the resource allocation record of the application that the basis is currently opened,
Judge whether the hardware resource of the specified application request is occupied, specially:
The currently allocated hardware money of the smart machine is determined according to the resource allocation record of the application of the current unlatching
Source;
Judge whether currently allocated with the smart machine hardware resource phase of the hardware resource of the specified application request
Together;
If the determination result is YES, then confirm that the hardware resource of the specified application request is occupied;
If judged result is no, confirm that the hardware resource of the specified application request is unoccupied.
4. the method for claim 1, it is characterised in that also include:
If the determination result is YES, then distribute the finger to the specified application after the hardware resource that release conflict application takes
Determine the hardware resource of application request, the conflict application occupies the hardware resource of the specified application request.
5. method as claimed in claim 4, it is characterised in that after the hardware resource that the release conflict application takes, described
Method also includes:
Delete the resource allocation record of the conflict application.
6. a kind of smart machine, it is characterised in that the smart machine includes multiple applications, the smart machine includes:
Judge module, when the resource allocation request initiated by specified application is received, currently opens according to the smart machine
Application resource allocation record, judge whether the hardware resource of the specified application request occupied, the resource allocation is remembered
Employ in the hardware resource for pointing out the smart machine to the application distribution of the current unlatching;
First distribute module, when judged result is no, keeps the hardware resource that the application of the current unlatching takes constant, and
Distribute the hardware resource of the specified application request to the specified application.
7. smart machine as claimed in claim 6, it is characterised in that also include:
Logging modle, according to the hardware resource to the specified application distribution, generates the resource allocation record of the specified application.
8. smart machine as claimed in claim 7, it is characterised in that the judge module specifically for:
The currently allocated hardware money of the smart machine is determined according to the resource allocation record of the application of the current unlatching
Source;
Judge whether currently allocated with the smart machine hardware resource phase of the hardware resource of the specified application request
Together;
If the determination result is YES, then confirm that the hardware resource of the specified application request is occupied;
If judged result is no, confirm that the hardware resource of the specified application request is unoccupied.
9. smart machine as claimed in claim 6, it is characterised in that also include:
Second distribute module, when judged result is to be, after the hardware resource that release conflict application takes, should to described specifying
With the hardware resource for distributing the specified application request, the conflict application occupies the hardware money of the specified application request
Source.
10. smart machine as claimed in claim 9, it is characterised in that also include:
Cleaning modul, deletes the resource allocation record of the conflict application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611058828.8A CN106681806A (en) | 2016-11-25 | 2016-11-25 | Method for distributing hardware resources and intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611058828.8A CN106681806A (en) | 2016-11-25 | 2016-11-25 | Method for distributing hardware resources and intelligent terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106681806A true CN106681806A (en) | 2017-05-17 |
Family
ID=58866691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611058828.8A Pending CN106681806A (en) | 2016-11-25 | 2016-11-25 | Method for distributing hardware resources and intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106681806A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491272A (en) * | 2018-03-29 | 2018-09-04 | 青岛海信传媒网络技术有限公司 | resource control method, device and terminal device |
CN110297705A (en) * | 2019-06-27 | 2019-10-01 | 百度在线网络技术(北京)有限公司 | Function switch processing method, device, equipment and storage medium |
CN111866555A (en) * | 2020-07-24 | 2020-10-30 | 展讯半导体(南京)有限公司 | Digital television resource management method, system, electronic device and medium |
CN112270497A (en) * | 2020-11-16 | 2021-01-26 | 深圳创维-Rgb电子有限公司 | Resource allocation method and device and audio-video playing terminal |
CN112399224A (en) * | 2020-11-16 | 2021-02-23 | 深圳创维-Rgb电子有限公司 | Multi-resource management system, smart television and readable storage medium |
CN113365116A (en) * | 2020-03-04 | 2021-09-07 | 青岛海信传媒网络技术有限公司 | Audio and video resource management method and device |
WO2022099856A1 (en) * | 2020-11-16 | 2022-05-19 | 深圳创维-Rgb电子有限公司 | Resource configuration method and apparatus, and audio and video playing terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2506032A1 (en) * | 2004-04-30 | 2005-10-30 | Double C Technologies, Llc | Resource manager for clients in an information distribution system |
CN105554537A (en) * | 2015-12-08 | 2016-05-04 | 青岛海信电器股份有限公司 | Control method and control device |
CN105979321A (en) * | 2016-04-29 | 2016-09-28 | 乐视控股(北京)有限公司 | Method and system for preventing hardware resource occupation conflicts |
-
2016
- 2016-11-25 CN CN201611058828.8A patent/CN106681806A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2506032A1 (en) * | 2004-04-30 | 2005-10-30 | Double C Technologies, Llc | Resource manager for clients in an information distribution system |
CN105554537A (en) * | 2015-12-08 | 2016-05-04 | 青岛海信电器股份有限公司 | Control method and control device |
CN105979321A (en) * | 2016-04-29 | 2016-09-28 | 乐视控股(北京)有限公司 | Method and system for preventing hardware resource occupation conflicts |
Non-Patent Citations (6)
Title |
---|
KAHINA BESSAI: "Resources allocation and scheduling approaches for business process applications in Cloud contexts", 《4TH IEEE INTERNATIONAL CONFERENCE ON CLOUD COMPUTING TECHNOLOGY AND SCIENCE PROCEEDINGS》 * |
KAHINA BESSAI: "Resources allocation and scheduling approaches for business process applications in Cloud contexts", 《4TH IEEE INTERNATIONAL CONFERENCE ON CLOUD COMPUTING TECHNOLOGY AND SCIENCE PROCEEDINGS》, 4 February 2013 (2013-02-04) * |
姜艳等: "基于资源缓存的应用快速切换技术", 《网络新媒体技术》, no. 04, 15 July 2013 (2013-07-15) * |
邓静: "基于云计算的校园应用服务器虚拟化技术研究", 《宿州学院学报》 * |
邓静: "基于云计算的校园应用服务器虚拟化技术研究", 《宿州学院学报》, vol. 27, no. 11, 30 November 2012 (2012-11-30) * |
陆丽娜: "《计算机操作系统原理与技术》", 西安交通大学出版社, pages: 71 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491272A (en) * | 2018-03-29 | 2018-09-04 | 青岛海信传媒网络技术有限公司 | resource control method, device and terminal device |
CN110297705A (en) * | 2019-06-27 | 2019-10-01 | 百度在线网络技术(北京)有限公司 | Function switch processing method, device, equipment and storage medium |
CN113365116A (en) * | 2020-03-04 | 2021-09-07 | 青岛海信传媒网络技术有限公司 | Audio and video resource management method and device |
CN113365116B (en) * | 2020-03-04 | 2022-12-13 | Vidaa(荷兰)国际控股有限公司 | Audio and video resource management method and device |
CN111866555A (en) * | 2020-07-24 | 2020-10-30 | 展讯半导体(南京)有限公司 | Digital television resource management method, system, electronic device and medium |
CN112270497A (en) * | 2020-11-16 | 2021-01-26 | 深圳创维-Rgb电子有限公司 | Resource allocation method and device and audio-video playing terminal |
CN112399224A (en) * | 2020-11-16 | 2021-02-23 | 深圳创维-Rgb电子有限公司 | Multi-resource management system, smart television and readable storage medium |
WO2022099856A1 (en) * | 2020-11-16 | 2022-05-19 | 深圳创维-Rgb电子有限公司 | Resource configuration method and apparatus, and audio and video playing terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106681806A (en) | Method for distributing hardware resources and intelligent terminal | |
CN108737405B (en) | Method, CCL server and system for guiding direct broadcasting video stream | |
CN109429370B (en) | Information processing method and device | |
US20170222889A1 (en) | Method and Device for Providing Network Service, Evaluating Policy Rule and Selecting Service Assembly | |
CN107484011B (en) | Video resource decoding method and device | |
CN114501073B (en) | Live broadcast source returning method and device | |
CN106534935A (en) | Method and device for controlling hardware resource conflict | |
CN101160805A (en) | resource management equipment, access system and method for ensuring multi-service service quality | |
CN103986695A (en) | Method and device for controlling speech session | |
US8446919B2 (en) | Service switching method, system, and device | |
CN108934050A (en) | A kind of voice call method, UE and network system | |
CN108228477B (en) | Method and system for acquiring operation data based on storage capacity | |
CN115484223A (en) | Resource allocation method, terminal, and computer-readable storage medium | |
CN107205132A (en) | The seamless transitions of video session between network topology and centralized bridge topology | |
CN109246813A (en) | A kind of network slice mutex relation processing method, equipment and system | |
CN116319790A (en) | Rendering method, device, equipment and storage medium of full-true scene | |
CN106656951A (en) | Advertisement putting method, client, server and system | |
CN108108294B (en) | Method and system for acquiring customized operation data according to reference time | |
CN106385606A (en) | Advertisement putting method and device | |
CN105791933B (en) | A kind of method, apparatus and smart television switching audiovisual applications | |
CN112533188A (en) | Output processing method and device of playing source | |
CN109922366A (en) | A kind of device parameter method of adjustment, device, equipment and medium | |
CN105812910B (en) | A kind of many-one is wirelessly the same as the method and apparatus of screen session establishment | |
Choi et al. | Agile management of 5G core network based on SDN/NFV technology | |
CN112802478B (en) | Hybrid cloud fusion scheduling method and device |
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: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant after: Hisense Visual Technology Co., Ltd. Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170517 |
|
RJ01 | Rejection of invention patent application after publication |