CN102811277A - Mobile terminal and method for managing sharing resources - Google Patents
Mobile terminal and method for managing sharing resources Download PDFInfo
- Publication number
- CN102811277A CN102811277A CN2011101446849A CN201110144684A CN102811277A CN 102811277 A CN102811277 A CN 102811277A CN 2011101446849 A CN2011101446849 A CN 2011101446849A CN 201110144684 A CN201110144684 A CN 201110144684A CN 102811277 A CN102811277 A CN 102811277A
- Authority
- CN
- China
- Prior art keywords
- run case
- current run
- current
- portable terminal
- shared resource
- 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 26
- 238000012163 sequencing technique Methods 0.000 claims description 8
- 239000000725 suspension Substances 0.000 claims description 6
- 238000007726 management method Methods 0.000 description 31
- 230000006870 function Effects 0.000 description 2
- 206010048669 Terminal state Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000012467 final product Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method terminal and a method for managing and sharing resources. The method comprises the following steps of: obtaining a request signal of a current running event; applying for sharing resources required by the current running event according to the request signal; inquiring a pre-set resource management table according to the current state of the mobile terminal and the current running event, and obtaining a query result; and managing the current running event and the sharing resources according to the query result. The mobile terminal and the method for managing the sharing resources can realize the reasonable distribution and management of the sharing resources.
Description
Technical field
The invention belongs to field of mobile terminals, relate in particular to the method for a kind of portable terminal and managing shared resource thereof.
Background technology
Along with the development of technology, the function of portable terminal is more and more, and realizes that the incident of mobile terminal function also just increases thereupon; So just, can be easy to occur the situation that at least two incidents require to use same resource simultaneously; Such as when the time just at displaying video, receive an incoming call, these two incidents all need be used shared resources such as screen and loud speaker; But existing portable terminal is difficult to shared resource is managed, and the problem of shared resource unreasonable distribution occurs through regular meeting.
Summary of the invention
Portable terminal can't provide the method for a kind of portable terminal and managing shared resource thereof to the technical problem of shared resource in the prior art in order to solve in the present invention, can realize reasonable distribution and management to shared resource.
The present invention provides a kind of method of mobile terminal administration shared resource, said method comprising the steps of:
Get access to the request signal of current run case;
According to the described request signal, apply for the shared resource that current run case is required;
According to portable terminal current states and current run case, preset resource management table is inquired about, and obtained Query Result;
According to Query Result, said current run case and said shared resource are managed.
The present invention also provides a kind of portable terminal, and said portable terminal comprises acquisition module, application module, enquiry module and administration module;
Acquisition module is used to obtain the request signal of current run case;
The application module is used for the request signal that gets access to according to acquisition module, and output is to the application signal of the required shared resource of current run case;
Enquiry module is used to receive the application signal of applying for module, according to portable terminal current states and current run case, preset resource management table is inquired about, and obtained Query Result;
Administration module is used for the Query Result according to enquiry module, and said current run case and said shared resource are managed.
The present invention also provides a kind of portable terminal, and said portable terminal comprises acquisition module, application module, judge module, enquiry module and administration module;
Acquisition module is used to obtain the request signal of current run case;
The application module is used for the request signal that gets access to according to acquisition module, and output is to the application signal of the required shared resource of current run case;
Judge module is used for the application signal according to the application module, judges whether the required shared resource of the current run case of application is reasonable, if signal is judged in output first, if not, signal is judged in output second;
Enquiry module is used to receive first of judge module and judges signal, according to portable terminal current states and current run case, preset resource management table is inquired about, and obtained Query Result;
Administration module is used for according to the Query Result of enquiry module or the second judgement signal of judge module said current run case and said shared resource being managed.
Can find out the Managed Solution of shared resource from above-mentioned portable terminal; When current run case generation and request shared resource; Portable terminal is inquired about preset resource management table; And according to Query Result, just can said current run case and said shared resource manage, thereby make things convenient for the management of portable terminal to shared resource.
Description of drawings
Fig. 1 is the flow chart of first kind of embodiment of method of mobile terminal administration shared resource of the present invention;
Fig. 2 is the flow chart of second kind of embodiment of method of mobile terminal administration shared resource of the present invention;
Fig. 3 is the flow chart of second kind of embodiment of method of mobile terminal administration shared resource of the present invention;
Fig. 4 is the structural representation of first kind of embodiment of portable terminal of the present invention;
Fig. 5 is the structural representation of a kind of embodiment of administration module of the present invention;
Fig. 6 is the structural representation of second kind of embodiment of portable terminal of the present invention.
Embodiment
Clearer for technical problem, technical scheme and beneficial effect that the present invention is solved, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The present invention provides the method for the managing shared resource of first kind of embodiment, and is as shown in Figure 1, said method comprising the steps of:
Step S01 gets access to the request signal of current run case;
Step S02 according to the described request signal, applies for the shared resource that current run case is required;
Step S03 according to portable terminal current states and current run case, inquires about preset resource management table, and obtains Query Result;
Step S04 according to Query Result, manages said current run case and said shared resource.
In step S03, the portable terminal current states is specially, such as; When portable terminal was idle, the portable terminal current states was an idle condition, when portable terminal during in idle condition; When the displaying video incident only takes place; After distributing to shared resources such as required screen of displaying video incident and loud speaker, portable terminal just gets into the displaying video state, and promptly the portable terminal current states is the displaying video state.
Can find out from such scheme; When current run case generation and request shared resource; Portable terminal is inquired about preset resource management table; And according to Query Result, just can said current run case and said shared resource manage, thereby make things convenient for the management of portable terminal to shared resource.
In practical implementation, said preset resource management table comprises that the table that is used to represent the portable terminal current state is capable, is used to represent the tabular of current run case and the list item that is used to represent result.Said preset resource management table specifically can be defined as the form of two-dimensional array; Be kept in the program of portable terminal, form that also can file is kept in the said portable terminal, is defined in XML (Extensible Markup Language such as said resource management table; Extend markup language) in the file; When needs used this table, the content that reads table through the XML resolver got final product, and said resource management tableau format is following:
Can find out from above form; Portable terminal present located state is represented in the first trip of this table; Portable terminal present located state comprises the corresponding state of incident that idle condition and multiple portable terminal will realize, such as displaying video, audio plays, make a phone call, states such as WAP online, short message editing.And first of this table represented the incident of current operation, and such as receiving a note, quarter-bell expires, and has come an incident such as phone.Each list item of form is exactly when the capable M of N is listed as this situation and takes place, the result that portable terminal will adopt.Such as, portable terminal is in the state (M is capable) of displaying video and has just received a note (N row), just representes the result of portable terminal under this state so at the table node that is in the capable N row of M.Result can be to suspend video playback and show short message prompt, and playing alert tones, also can be to continue video playback, only uses vibrations prompting user.Particular content in the result can change according to client's demand.
In practical implementation, the present invention also provides the method for the managing shared resource of second kind of embodiment, and is as shown in Figure 2, and be with the difference of first kind of embodiment: said step S04 is specially:
Step S041 according to Query Result, distributes to said incident with said shared resource.
Perhaps be specially: step S042, according to Query Result, finish said current run case.
Perhaps be specially: step S043, according to Query Result, the said current run case of operation suspension.
In practical implementation,, may further comprise the steps after the said step S041 the management of shared resource for further,
S0410 uses the shared resource of distributing to said current run case;
S0411 finishes said current run case and preserves d/d shared resource.
This shows; After the shared resource of said current run case is distributed in use; Said current run case just no longer needs said shared resource; So just, can finish said current run case, d/d shared resource is preserved, be convenient to the unified management of portable terminal shared resource.
In practical implementation, as shown in Figure 2 in order further to guarantee the accuracy of portable terminal to the shared resource management, after step S02, further comprising the steps of:
Step S021 judges whether the required shared resource of the current run case of application is reasonable, if, execution in step S03, if not, execution in step S042.
In practical implementation, when current run case was at least two, the present invention provided the method for the managing shared resource of the third embodiment, and is further comprising the steps of after step S02,
Step S022, the sequencing that takes place of all current run case relatively, with event at first as current run case, other run case waits, execution in step S03.
For step S022, can be after step S021, perhaps after step S02 and before step S021.
In the present embodiment, as shown in Figure 3, further comprising the steps of after step S02,
Step S021 judges whether the required shared resource of the current run case of application is reasonable, if, execution in step S022, if not, execution in step S042.
Step S022 judges the sequencing that all current run case take place, and as current run case, other run case are waited for, execution in step S03 with event at first.
In the present embodiment, as shown in Figure 3, after step S041, further comprising the steps of:
Step S051, the portable terminal current states is updated to the pairing state of current run case, execution in step S06;
Step S06 judges whether the run case of wait, if, execution in step S022, if not, execution in step S0410;
Step S0410 uses the shared resource of distributing to said current run case, execution in step S0411;
Step S0411 finishes said current run case and preserves d/d shared resource, execution in step S0412;
Step S0412, the current run case of d/d shared resource being distributed to successively time-out is up to finishing all current run case.
Perhaps after step S042 or step S043, further comprising the steps of:
Step S052 keeps the portable terminal current states, execution in step S022.
In step S022; When the signal of shared resources is applied at least two current run case outputs; Sequencing according to current run case takes place obtains event at first, and after once tabling look-up with event at first and portable terminal current states; This event is not at first just belonging to current run case; So judge the sequencing that all current run case take place this moment again, only with inferior first event and event afterwards as all current run case, can not repeat to judge the time of origin of event at first.
In practical implementation, for the accuracy that guarantees that mobile terminal state upgrades, and distribute the rationally as shown in Figure 3 of shared resource, after step S041, further comprising the steps of:
Step S05 judges whether the portable terminal current states is idle condition, if, execution in step S051, if not, execution in step S07;
Step S07 judges whether the shared resource of said distribution is the required whole shared resources of event at first, if, execution in step S051, if not, execution in step S052.
Can find out from such scheme; When supposing that the portable terminal current states is idle condition, get access to this moment and receive the expire resource request signal of incident of message event and quarter-bell, so at first judge and receive the expire sequencing of incident generation of message event and quarter-bell; When receiving that message event takes place earlier; So according to idle condition with receive message event, the resource management table that inquiry is preset, Query Result are with receiving that the required shared resource of message event distributes to receiving message event; This moment, portable terminal got into the pairing state of message event of receiving; Then again according to receiving information state and the quarter-bell incident that expires, the resource management table that inquiry is preset carries out resource management according to Query Result again.When certainly if the portable terminal current states is the displaying video state, gets access to this moment and receive the expire resource request signal of incident of message event and quarter-bell, when receiving message event generation earlier; So according to the displaying video state with receive message event; The resource management table that inquiry is preset if Query Result is vibrations prompting user, is about to receive that the required part resource allocation of message event is to the said message event of receiving; And the displaying video incident still takies said loud speaker and source of screen; The portable terminal current states still is the displaying video state so, then again according to displaying video state and the quarter-bell incident that expires, the resource management table that inquiry is preset.If but Query Result is to suspend video playback, demonstration short message prompt and playing alert tones; It is the video playback operation suspension; Discharge shared resource and will receive that the required whole shared resources of message event distribute to the said message event of receiving, then again according to receiving information state and the quarter-bell incident that expires, the resource management table that inquiry is preset; If Query Result still is to suspend to receive that message event, demonstration quarter-bell expire and playing alert tones; After the quarter-bell incident of expiring is used said shared resource end, just discharge said shared resource and distribute to said message event and the displaying video incident received successively, can see thus; This portable terminal can reasonably distribute the required shared resource of current run case through the method for inquiring about preset resource management table, can not cause incident that locked phenomenon takes place.
In practical implementation, in order to realize the management to shared resource, the present invention also provides the portable terminal of first kind of embodiment, and is as shown in Figure 4, and said portable terminal comprises acquisition module 1, application module 2, enquiry module 3 and administration module 4;
Acquisition module 1 is used to obtain the request signal of current run case;
Application module 2 is used for the request signal that gets access to according to acquisition module 1, and output is to the application signal of the required shared resource of current run case;
Enquiry module 3 is used to receive the application signal of applying for module 2, according to portable terminal current states and current run case, preset resource management table is inquired about, and obtained Query Result;
Administration module 4 is used for the Query Result according to enquiry module 3, and said current run case and said shared resource are managed.
Can find out from such scheme; When current run case generation and request shared resource; Portable terminal is inquired about preset resource management table; And according to Query Result, just can said current run case and said shared resource manage, thereby make things convenient for the management of portable terminal to shared resource.
In practical implementation, in order further to guarantee the accuracy of portable terminal to the shared resource management, the present invention also provides the portable terminal of second kind of embodiment, and is as shown in Figure 6, and said portable terminal also comprises judge module 5;
Judge module 5 is used for the application signal according to application module 2, judges whether the required shared resource of the current run case of application is reasonable, if signal is judged in output first, does not judge signal if export second;
Enquiry module 3 is used to receive first of judge module 5 and judges signal, according to portable terminal current states and current run case, preset resource management table is inquired about, and obtained Query Result;
Administration module 4 is used for according to the Query Result of enquiry module 3 or the second judgement signal of judge module 5 said current run case and said shared resource being managed.
In practical implementation, as shown in Figure 5 for the ease of the management to incident and shared resource, said administration module 4 comprises allocation units 41, end unit 42 and suspends unit 43;
Allocation units 41 are used for the Query Result according to enquiry module 3, and said shared resource is distributed to said current run case;
End unit 42 is used for the Query Result according to enquiry module 3, finishes said current run case;
Suspend unit 43, be used for Query Result, the said current run case of operation suspension according to enquiry module 3.
Further, said administration module also comprises use unit 44 and preserves unit 45;
Use unit 44, be used to the shared resource that uses allocation units to distribute, and end signal is used in output;
Preserve unit 45, be used for preserving d/d shared resource according to the use end signal that uses unit 44;
End unit 43 also is used for finishing said current run case according to the use end signal that uses unit 44.
This shows; After the shared resource of said current run case is distributed in use; Said current run case just no longer needs said shared resource; So just, can finish said current run case, d/d shared resource is preserved, be convenient to the unified management of portable terminal shared resource.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (12)
1. the method for a mobile terminal administration shared resource is characterized in that, said method comprising the steps of:
Get access to the request signal of current run case;
According to the described request signal, apply for the shared resource that current run case is required;
According to portable terminal current states and current run case, preset resource management table is inquired about, and obtained Query Result;
According to Query Result, said current run case and said shared resource are managed.
2. the method for claim 1 is characterized in that, and is said according to Query Result, and the step that said incident and said shared resource are managed is specially:
According to Query Result, said shared resource is distributed to said current run case;
Perhaps, finish said current run case;
Perhaps, the said current run case of operation suspension.
3. method as claimed in claim 2 is characterized in that, and is after the shared resource of said current run case is distributed in use, further comprising the steps of
Finish said current run case and preserve d/d shared resource.
4. method as claimed in claim 2 is characterized in that, according to the described request signal, applies for after the step of the shared resource that said current run case is required, and is further comprising the steps of:
Judge whether the required shared resource of the current run case of application is reasonable; If; Carry out saidly, preset resource management table is inquired about, and obtained the step of Query Result according to portable terminal current states and current run case; If, do not carry out the step that finishes said current run case.
5. method as claimed in claim 3 is characterized in that: when current run case is at least two,, applies for after the step of the shared resource that current run case is required according to the described request signal, and further comprising the steps of,
The sequencing that takes place of all current run case relatively; As current run case, other run case are waited for, carry out according to portable terminal current states and current run case with event at first; Resource management table to preset is inquired about, and obtains the step of Query Result;
When said shared resource was distributed to current run case, the portable terminal current states was updated to the pairing state of current run case, and judged whether the run case of wait; If; Carry out to judge the sequencing that all current run case take place, with event at first as current run case, the step of other run case waits; If not; After using said shared resource, finish said current run case, the current run case of d/d shared resource being distributed to successively time-out is up to finishing all current run case;
When the said current run case of said current run case out of service or operation suspension; Keep the portable terminal current states; Carry out to judge the sequencing that all current run case take place, with event at first as current run case, the step of other run case waits.
6. method as claimed in claim 5 is characterized in that: after said shared resource is distributed to current run case, further comprising the steps of:
Judge whether the portable terminal current states is idle condition, if carry out the step that the portable terminal current states is updated to the pairing state of current run case;
When the portable terminal current states is not an idle condition; Whether the shared resource of judging said distribution is the required whole shared resources of event at first; If; Carry out the portable terminal current states and be updated to the step of the pairing state of event at first,, keep the portable terminal current states if not.
7. the method for claim 1 is characterized in that: said preset resource management table comprises that the table that is used to represent the portable terminal current state is capable, is used to represent the tabular of current run case and the list item that is used to represent result.
8. portable terminal is characterized in that: said portable terminal comprises acquisition module, application module, enquiry module and administration module;
Acquisition module is used to obtain the request signal of current run case;
The application module is used for the request signal that gets access to according to acquisition module, and output is to the application signal of the required shared resource of current run case;
Enquiry module is used to receive the application signal of applying for module, according to portable terminal current states and current run case, preset resource management table is inquired about, and obtained Query Result;
Administration module is used for the Query Result according to enquiry module, and said current run case and said shared resource are managed.
9. portable terminal as claimed in claim 8 is characterized in that: said administration module comprises allocation units, end unit and suspends the unit;
Allocation units are used for the Query Result according to enquiry module, and said shared resource is distributed to said current run case;
End unit is used for the Query Result according to enquiry module, finishes said current run case;
Suspend the unit, be used for Query Result, the said current run case of operation suspension according to enquiry module.
10. portable terminal as claimed in claim 9 is characterized in that: said administration module also comprises the use unit and preserves the unit;
Use the unit, be used to the shared resource that uses allocation units to distribute, and end signal is used in output;
Preserve the unit, be used for preserving d/d shared resource according to the use end signal that uses the unit,
End unit also is used for finishing said current run case according to the use end signal that uses the unit.
11. portable terminal as claimed in claim 8 is characterized in that: said preset resource management table comprises that the table that is used to represent the portable terminal current state is capable, be used to the table node representing the tabular of current run case and be used to represent result.
12. a portable terminal is characterized in that: said portable terminal comprises acquisition module, application module, judge module, enquiry module and administration module;
Acquisition module is used to obtain the request signal of current run case;
The application module is used for the request signal that gets access to according to acquisition module, and output is to the application signal of the required shared resource of current run case;
Judge module is used for the application signal according to the application module, judges whether the required shared resource of the current run case of application is reasonable, if signal is judged in output first, if not, signal is judged in output second;
Enquiry module is used to receive first of judge module and judges signal, according to portable terminal current states and current run case, preset resource management table is inquired about, and obtained Query Result;
Administration module is used for according to the Query Result of enquiry module or the second judgement signal of judge module said current run case and said shared resource being managed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101446849A CN102811277A (en) | 2011-05-31 | 2011-05-31 | Mobile terminal and method for managing sharing resources |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101446849A CN102811277A (en) | 2011-05-31 | 2011-05-31 | Mobile terminal and method for managing sharing resources |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102811277A true CN102811277A (en) | 2012-12-05 |
Family
ID=47234849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011101446849A Pending CN102811277A (en) | 2011-05-31 | 2011-05-31 | Mobile terminal and method for managing sharing resources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102811277A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1777315A (en) * | 2004-11-15 | 2006-05-24 | Lg电子株式会社 | Method for managing resources in a mobile phone |
US20070072593A1 (en) * | 2005-09-16 | 2007-03-29 | Virupakshaiah Huliyapur Math | Call prioritizing systems and methods |
CN101106801A (en) * | 2006-07-12 | 2008-01-16 | 华为技术有限公司 | A terminal relocation method and system in idle mode in a communication system |
CN1806229B (en) * | 2003-06-10 | 2010-05-26 | 索尼爱立信移动通信日本株式会社 | Conflict management method and apparatus |
WO2010148837A1 (en) * | 2009-12-25 | 2010-12-29 | 中兴通讯股份有限公司 | Method and device for unified management of multiple applications on mobile terminal |
-
2011
- 2011-05-31 CN CN2011101446849A patent/CN102811277A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1806229B (en) * | 2003-06-10 | 2010-05-26 | 索尼爱立信移动通信日本株式会社 | Conflict management method and apparatus |
CN1777315A (en) * | 2004-11-15 | 2006-05-24 | Lg电子株式会社 | Method for managing resources in a mobile phone |
US20070072593A1 (en) * | 2005-09-16 | 2007-03-29 | Virupakshaiah Huliyapur Math | Call prioritizing systems and methods |
CN101106801A (en) * | 2006-07-12 | 2008-01-16 | 华为技术有限公司 | A terminal relocation method and system in idle mode in a communication system |
WO2010148837A1 (en) * | 2009-12-25 | 2010-12-29 | 中兴通讯股份有限公司 | Method and device for unified management of multiple applications on mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102333029B (en) | Routing method in server cluster system | |
CN107395729A (en) | A kind of consumption system of message queue, method and device | |
CN102255934B (en) | Cloud service dissemination method and cloud service intermediary | |
CN105100267B (en) | The deployment device and method of large enterprises' private clound | |
CN108282514B (en) | Distributed service establishing method and device | |
CN110908658A (en) | A "micro-service + micro-application" system, data processing method and device | |
CN110837407B (en) | Server-free cloud service system, resource management method thereof and electronic equipment | |
CN106230922A (en) | A kind of news subscribing method, message production unit and message reception units | |
CN112328413B (en) | Application service calling method, device and system | |
CN101383839A (en) | Data distribution system based on data server and implementation method | |
CN106814975A (en) | A kind of memory management method and its system for polymorphic type storage device | |
US8606908B2 (en) | Wake-up server | |
CN106603711B (en) | Communication method, system and message server | |
RU2011110346A (en) | MEDIA RESOURCE SYSTEM AND METHOD OF PROVIDING MEDIA RESOURCES | |
CN106302647B (en) | Message distribution method and server | |
CN109412821B (en) | Message processing method and device and electronic equipment | |
CN101883153B (en) | Information presentation method, system and terminal equipment based on cloud computing | |
CN112769671A (en) | Message processing method, device and system | |
CN111858050A (en) | Server cluster mixed deployment method, cluster management node and related system | |
CN103067486A (en) | Big-data processing method based on platform-as-a-service (PaaS) platform | |
CN108259605B (en) | Data calling system and method based on multiple data centers | |
CN109981778B (en) | Method, device, equipment and storage medium for realizing service of content distribution network | |
CN109951528B (en) | Service processing method, device and system supporting multiple deployment modes | |
CN111371621A (en) | Data exchange method and device based on hybrid cloud and computer readable medium | |
CN117041284A (en) | External interface management method, system, equipment and medium based on interface cloud |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20121205 |