CN101576832A - Method and system of resource management as well as relevant operating system thereof - Google Patents

Method and system of resource management as well as relevant operating system thereof Download PDF

Info

Publication number
CN101576832A
CN101576832A CNA2008100953755A CN200810095375A CN101576832A CN 101576832 A CN101576832 A CN 101576832A CN A2008100953755 A CNA2008100953755 A CN A2008100953755A CN 200810095375 A CN200810095375 A CN 200810095375A CN 101576832 A CN101576832 A CN 101576832A
Authority
CN
China
Prior art keywords
program
resource
mutually
priority
managing
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
Application number
CNA2008100953755A
Other languages
Chinese (zh)
Inventor
王志华
施怡芬
刘建勤
戴国玺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HTC Corp
Original Assignee
High Tech Computer Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by High Tech Computer Corp filed Critical High Tech Computer Corp
Priority to CNA2008100953755A priority Critical patent/CN101576832A/en
Publication of CN101576832A publication Critical patent/CN101576832A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method and a system of resource management. The method comprises the following steps: firstly, judging whether a resource is in use or not; and transmitting a release notification into a first program if the resource is used in the first program so as to release the resource.

Description

Method for managing resource and system and relevant operation system thereof
Technical field
The present invention relates to a kind of method for managing resource and system, and be particularly related to a kind of method and system that manage for program resources shared in the electronic installation and relevant operating system thereof.
Background technology
In recent years, electronic installation is as portable apparatus become the more and more high-order and the greater functionalityization that becomes.For instance, portable apparatus can possess phone, Email, advance rank address book management, media play and other application miscellaneous.Because these devices and the facility of using also make these devices become one of daily necessities of people gradually.
In general, when carrying out, program can use the hardware and the software resource of electronic installation.For instance, when phone application was carried out, the hardware resource of acoustic coding and decoding will be required to use.Similarly, when multimedia application was carried out, the hardware resource of image and acoustic coding and decoding will be required to use.Because electronic installation has Limited resources, therefore, when requiring to use the program execution of same asset, electronic installation must design suitable scheduling controlling mechanism and manage the opportunity that distinct program uses resource.
Known ground, for the more harsh electronic installation of resource management, in portable apparatus, when a specific program required to use a resource, it must be inquired respectively and use the program of same asset whether using this resource.When not having program using this resource, then this specific program just can use this resource.For mechanisms known, because each program design review (check) (DR) mechanism separately, to learn that all programs are for the operating position of hardware resource in the electronic installation.Therefore, for procedure development, belong to extra burden.In addition, when expanding new program in the electronic system, the checking mechanism of all programs all must be revised in the electronic system, learning new program, thereby causes the difficulty of program maintenance.
Summary of the invention
In view of this, the invention provides method for managing resource and system, and relevant operating system.
A kind of method for managing resource of the embodiment of the invention.At first, judge whether a resource is used.During if resource is used by one first program, then transmit one and discharge notice, to discharge resource to first program.
A kind of resource management system of the embodiment of the invention comprise a resource, one first program, with one carry out administration module.During the execution administration module judges whether resource is used.During if resource is used by first program, then carry out administration module and transmit a release notice to first program, to discharge resource.
A kind of operating system of the embodiment of the invention is to be applicable to an electronic installation.Operating system comprises a supervisory routine at least.During supervisory routine judges whether a resource is used.During if resource is used by one first program, then supervisory routine transmits a release notice to first program, to discharge resource.
Said method of the present invention can be included in tangible media by program code means.When program code was loaded and carries out by machine, machine became in order to carry out device of the present invention.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent, embodiment cited below particularly, and cooperate appended diagram, be described in detail as follows.
Description of drawings
Fig. 1 is a synoptic diagram, shows the resource management system according to the embodiment of the invention.
Fig. 2 is a process flow diagram, shows the method for managing resource according to the embodiment of the invention.
[primary clustering symbol description]
100~resource management system;
110~resource;
120~program;
121~control module;
130~execution administration module;
131~configuration table;
1000~program A;
2000~execution administration module;
3000~program B;
S202, S204 ..., S228~step.
Embodiment
Fig. 1 shows the resource management system according to the embodiment of the invention.Resource management system according to the embodiment of the invention goes for an electronic installation, as portable apparatus, as the handheld apparatus of multimedia player, personal digital assistant, GPS device, touch controlled handset, intelligent mobile phone or mobile phone etc.
Resource management system 100 comprises at least one resource 110, a plurality of program 120 and the execution administration module 130 that electronic installation has.Resource 110 can be the hardware resource in the electronic installation, as processor, acoustic coding/code translator, picture coding/code translator, with display etc.In addition, resource 110 can also be the software resource in the electronic installation, as function library that calling can be provided with in order to emulator of simulation hardware assembly or the like.Program 120 can be carried out on electronic installation.Program 120 can comprise phone application and multimedia application, as phone, visual telephone, video camera, data streaming use, with the music/video broadcast etc.When carrying out, program 120 can require to use the resource 110 of electronic installation.What note is, each program 120 can comprise a control module 121, in order to communicating with carrying out administration module 130, and the relevant operation of determination procedure 120.Carry out the configuration table 131 that administration module 130 has corresponding each program 120.Whether can write down in the configuration table 131 when corresponding program 120 is carried out uses a right of priority of resource 110 and corresponding program 120, time setting to use judgement setting with one.Carry out the method for managing resource of administration module 130 according to configuration table 131 execution the application of corresponding each program 120, its details will be in the back explanation.
Fig. 2 shows the method for managing resource according to the embodiment of the invention.The method for managing resource of the embodiment of the invention goes for having an electronic installation of at least one resource, as portable apparatus, as the handheld apparatus of multimedia player, personal digital assistant, GPS device, touch controlled handset, intelligent mobile phone or mobile phone etc.
When the program A (1000) in the electronic installation desired to carry out and uses hardware resource, as step S202, the control module of program A (1000) transmitted one and uses request to carrying out administration module 2000.As step S204, carry out administration module 2000 and receive the request of using by program A (1000).As step S206, carry out administration module 2000 determining program A (1000) and require the resource of use whether to be used at present.It should be noted that as previously mentioned, carry out a configuration table that has corresponding each program in the electronic installation in the administration module.Can write down in the configuration table and whether use hardware resource when corresponding program is carried out.Carry out administration module 2000 and can check that the configuration table of corresponding program A (1000) learns that program A (1000) requires the resource of execution, and according to other configuration table learn might use the program of same asset.In addition, setting is judged in the use that can write down corresponding application programs in the configuration table.In certain embodiments, using judgement to be provided with can be a flag.When program was used resource, the corresponding use judged that setting will be set as effectively.Otherwise when program was not used resource, it is invalid that corresponding use judges that setting will be set as, or do not exist.In certain embodiments, using judgement to be provided with can be an execution window.When program was used resource, carrying out window accordingly will be established.Otherwise when program was not used resource, carrying out window accordingly will not exist.Carry out administration module 2000 and can judge whether setting is effective, whether uses resource at present with determining program by the use of judging corresponding each program.During if the resource that program A (1000) requirement is used is not used at present (step S206 denys),, then carries out administration module 2000 transmission one use and begin to notify to program A (1000) as step S208.As step S210, the control module of program A (1000) begins notice by carrying out administration module 2000 reception uses, and begins notice corresponding to use, as step S212, brings into use resource.When program A (1000) used resource, as step S214, the control module of program A (1000) was made as the use judgement of corresponding program A (1000) effectively.
If the resource that program A (1000) requires to use is at present by in a program B (3000) use (step S206 is), as step S216, then carry out the right of priority that writes down in the configuration table of administration module 2000 according to corresponding program A (1000) and program B (3000), whether the right of priority of judging corresponding program A (1000) is more than or equal to the right of priority of corresponding program B (3000).If the right of priority of corresponding program A (1000) is not more than or equal to the right of priority of corresponding program B (3000) (step S216 not), then process ends.It should be noted that in certain embodiments, after program B (3000) initiatively finishes to carry out, then carry out administration module 2000 and can transmit one and use and begin to notify to program A (1000).If the right of priority of corresponding program A (1000) more than or equal to the right of priority (step S216 is) of corresponding program B (3000), as step S218, is then carried out administration module 2000 transmission one release and is notified to program B (3000).As step S220, the control module of program B (3000) receives the release notice by carrying out administration module 2000, and corresponding to discharging notice, as step S222, discharges the resource in the use.After program B (3000) discharged resource, as step S224, the control module of program B (3000) transmitted a resource and discharges affirmation to carrying out administration module 2000.What note is, when carry out administration module 2000 transmit discharge notify to program B (3000) just after can be as step S226, judge whether that control module by program B (3000) receives resource and discharges and confirm.Discharge affirmation (step S226 is) if receive resource,, then carry out administration module 2000 transmission one use and begin to notify to program A (1000) as step S208.As step S210, the control module of program A (1000) begins notice by carrying out administration module 2000 reception uses, and begins notice corresponding to use, as step S212, brings into use resource.Similarly, when program A (1000) used resource, as step S214, the control module of program A (1000) was made as the use judgement of corresponding program A (1000) effectively.Do not discharge affirmation (step S226 denys) if receive resource,, carry out the time set that is write down in the configuration table of administration module 2000 according to corresponding program B (3000), judge whether time set through corresponding program B (3000) as step S228.If do not pass through the time set (step S228 denys) of corresponding program B (3000) as yet, flow process continues the judgement of step S226.If passed through the time set (step S228 is) of corresponding program B (3000),, carry out administration module 2000 transmission one use and begin to notify to program A (1000) as step S208.As step S210, the control module of program A (1000) begins notice by carrying out administration module 2000 reception uses, and begins notice corresponding to use, as step S212, brings into use resource.Similarly, when program A (1000) used resource, as step S214, the control module of program A (1000) was made as the use judgement of corresponding program A (1000) effectively.
Next, describe for an example.Comprise the phone application and the multimedia application of the hardware resource of common use acoustic coding/code translator in the electronic installation.Wherein, the right of priority of phone application is higher than the right of priority of multimedia application.Acoustic coding/code translator is just being used in multimedia application at present on electronic installation.When the phone application desire was used acoustic coding/code translator, phone application can transmit one and use request to give to carry out administration module.Carry out administration module and confirming that acoustic coding/code translator that phone application requires to use is used by multimedia application, and the right of priority of phone application is higher than after the right of priority of multimedia application, carries out administration module and can transmit one and discharge and be notified to multimedia application.Multimedia application just can determine initiatively to discharge acoustic coding/code translator after receiving the release notice, and transmits resource release affirmation receipt line pipe and manage module.After receiving resource release affirmation, the execution administration module can transmit a use and begin to be notified to phone application.Phone application receives to use and begins just can bring into use acoustic coding/code translator after the notice.
Therefore, the application's resource management system and method can be carried out the appropriate managerial operation for program resources shared in the electronic installation.It should be noted that in certain embodiments the application's method for managing resource can be done and be used in the electronic installation so that the mode of operating system is real.Wherein, operating system can comprise supervisory routine, in order to carry out the application's resource management operation.
Method of the present invention, or particular type or its part, can be contained in tangible media with the type of program code, get (as embodied on computer readable) storage medium as floppy disk, discs, hard disk or any other machine readable, wherein, when program code by machine, when loading and carrying out as computing machine, this machine becomes in order to participate in device of the present invention.Method and apparatus of the present invention also can be with the program code type by some transfer mediums, transmit as electric wire or cable, optical fiber or any transport-type, wherein, when program code by machine, when receiving, loading and carrying out as computing machine, this machine becomes in order to participate in device of the present invention.When the general service processor is done in fact, the program code associative processor provides a class of operation to be similar to the unique apparatus of using particular logic circuit.
Though the present invention with preferred embodiment openly as above; right its is not in order to qualification the present invention, those skilled in the art, without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is as the criterion when looking the appended claims person of defining.

Claims (16)

1. a method for managing resource comprises the following steps:
In judging whether a resource is used; And
During if this resource is used by one first program, then transmit one and discharge notice to this first program, to discharge this resource.
2. method for managing resource as claimed in claim 1, wherein this resource is initiatively discharged by this first program.
3. method for managing resource as claimed in claim 2 comprises that also this first program stops to carry out this first program.
4. method for managing resource as claimed in claim 1 wherein when judging in the step whether this resource is used, comprise that also receiving one by one second program uses request, and this use request is required to use by this second program in order to represent this resource.
5. method for managing resource as claimed in claim 4 comprises that also transmitting a use begins notice to this second program, to allow this second program bring into use this resource.
6. method for managing resource as claimed in claim 4, wherein this first program and this second program have a configuration table respectively, and in order to writing down a corresponding right of priority, and this method also comprises the following steps:
Judge mutually should second program this right of priority whether more than or equal to this right of priority that mutually should first program; And
If this right of priority that mutually should second program then transmits this releases and notifies to this first program more than or equal to this right of priority that mutually should first program.
7. method for managing resource as claimed in claim 5, wherein this first program has a configuration table, set in order to the time that record mutually should first program, and this method transmits this use and begins to notify to this second program after mutually should this time set of first program.
8. method for managing resource as claimed in claim 5, comprise that also receiving a resource by this first program discharges affirmation, wherein this resource discharges and confirm that this first program transmits after discharging this resource, and after receiving this resource release affirmation, this use begins notice and is transferred into this second program.
9. method for managing resource as claimed in claim 1, wherein this first program has a configuration table, whether uses this resource in order to record when this first program is carried out, and this method learns that according to this configuration table this resource is by in this first program use.
10. method for managing resource as claimed in claim 1, wherein this first program has a configuration table, in order to record mutually should first program one use and judge and be provided with, wherein when this first program is used this resource, corresponding this use judges that setting is set as effectively, and this method by judge mutually should first program this use and judge and whether effectively be provided with whether use this resource at present to judge this first program.
11. method for managing resource as claimed in claim 1, wherein this resource comprises a hardware resource or the software resource in the electronic installation.
12. a resource management system comprises:
One resource;
One first program; And
One carries out administration module, judges whether this resource is used, if during this resource used by this first program, transmit one and discharge notice to this first program, to discharge this resource.
13. resource management system as claimed in claim 12, wherein this first program comprises a control module, and this resource by this control module decision of this first program initiatively to discharge.
14. resource management system as claimed in claim 13, wherein this control module of this first program stops to carry out this first program.
15. resource management system as claimed in claim 12 wherein also comprises one second program, use request in order to receive one, and this use request is required to use by this second program in order to represent this resource.
16. resource management system as claimed in claim 15, wherein this system has a configuration table, in order to write down a corresponding right of priority, and this execution administration module also judge mutually should second program this right of priority whether more than or equal to this right of priority that mutually should first program, if this right of priority that mutually should second program is more than or equal to this right of priority that mutually should first program, then this execution administration module transmits this release and notifies to this first program.
CNA2008100953755A 2008-05-05 2008-05-05 Method and system of resource management as well as relevant operating system thereof Pending CN101576832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100953755A CN101576832A (en) 2008-05-05 2008-05-05 Method and system of resource management as well as relevant operating system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100953755A CN101576832A (en) 2008-05-05 2008-05-05 Method and system of resource management as well as relevant operating system thereof

Publications (1)

Publication Number Publication Date
CN101576832A true CN101576832A (en) 2009-11-11

Family

ID=41271769

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100953755A Pending CN101576832A (en) 2008-05-05 2008-05-05 Method and system of resource management as well as relevant operating system thereof

Country Status (1)

Country Link
CN (1) CN101576832A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391386A (en) * 2017-09-01 2017-11-24 中国农业银行股份有限公司 The time resource management system and method for testing tool

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391386A (en) * 2017-09-01 2017-11-24 中国农业银行股份有限公司 The time resource management system and method for testing tool

Similar Documents

Publication Publication Date Title
CN102622397B (en) Hash tag management in a microblogging infrastructure
CN102640136B (en) Web applies the communication port between the process beyond browser
CN101437000B (en) System and method for keeping and copying chat records
CN104426885A (en) Method and device for providing abnormal account
CN102971757A (en) Email tags
CN105224421A (en) Data backup method and device and electronic equipment
CN110266505A (en) A kind of method and apparatus managing session group
CN104169902A (en) Synchronizing local and remote data
CN1832412A (en) System and method for providing instant messaging capability in conjunction with an online reference
CN102917012A (en) Storage and communication de-duplication
CN102906727A (en) Remote application connection sharing
CN103945073A (en) Method and electronic device for providing call rejection function
CN107817962B (en) Remote control method, device, control server and storage medium
TWI462045B (en) Pushing message system for multiple system platforms
CN112615909B (en) Method for storing data in cascade storage server cluster and related equipment
CN109992556A (en) A kind of I2C driving method and device
CN101576832A (en) Method and system of resource management as well as relevant operating system thereof
US10176062B2 (en) Cloud servers and methods for handling dysfunctional cloud services
CN103561022A (en) Voice service access method, related device and voice service system
CN102420732A (en) Data service method in a home network, equipment and system
CN113590243A (en) Energy enterprise project creation method and device, computer equipment and medium
CN102740248A (en) Synchronizing method and terminal device
CN113592646A (en) Intelligent contract execution method, device and system
CN100417037C (en) System and method for piggybacking data across an open data channel of a wireless device
CN104854946A (en) Multi-channel conversation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20091111