CN100445954C - System and method for controlling resources used by services - Google Patents
System and method for controlling resources used by services Download PDFInfo
- Publication number
- CN100445954C CN100445954C CNB2004100918804A CN200410091880A CN100445954C CN 100445954 C CN100445954 C CN 100445954C CN B2004100918804 A CNB2004100918804 A CN B2004100918804A CN 200410091880 A CN200410091880 A CN 200410091880A CN 100445954 C CN100445954 C CN 100445954C
- Authority
- CN
- China
- Prior art keywords
- resource
- service
- licence
- license
- back plate
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
【技术领域】【Technical field】
本发明涉及一种控管服务使用资源的系统及方法。The invention relates to a system and method for controlling resources used by services.
【背景技术】【Background technique】
计算机系统中有许多资源,相对的计算机系统也提供了许多服务供使用者使用,而这些服务也势必需要使用相应的资源。在没有控管的情形下,各服务只了解自身使用各个资源的情况,而无法了解其它服务使用各个资源的情况。某些状况下,因为某个服务正在对某个资源从事较特殊的工作,而造成另一个服务要使用同一个资源时产生不可预期的结果。比如,服务B正在对硬盘A做格式化,同时另一个服务C也正要从硬盘A中读取数据,这样服务C将产生不可预料的结果。为避免这种情况,需要一种控管服务使用资源的系统。There are many resources in the computer system, and the corresponding computer system also provides many services for users to use, and these services must also use corresponding resources. In the absence of control, each service only knows its own use of each resource, but cannot know the use of each resource by other services. In some cases, because a service is doing special work on a resource, another service will use the same resource to produce unpredictable results. For example, service B is formatting hard disk A, and another service C is also trying to read data from hard disk A, so service C will produce unpredictable results. To avoid this, a system is needed to govern the resources used by services.
中国台湾智慧财产局于2004年6月21日公告的公告号为594491,名称为“鉴认计算机系统内资源请求的技术”的发明专利,揭露了一种用以鉴认于包含一资源控制器与一总线的一数据处理系统中提出的请求的方法。其缺陷在于,仅可鉴认服务请求的合理性,不能进一步解决合理的服务在使用同一资源时的冲突。China Taiwan Intellectual Property Bureau announced on June 21, 2004 that the announcement number is 594491, and the invention patent titled "Technology for Identifying Resource Requests in Computer Systems" discloses a method for identifying resources that include a resource controller. A method for making requests in a data processing system with a bus. Its shortcoming is that it can only verify the rationality of service requests, and cannot further resolve conflicts when reasonable services use the same resource.
【发明内容】【Content of invention】
本发明的主要目的在于提供一种控管服务使用资源的系统,其可以判断资源使用状况,避免各服务在使用资源时造成冲突。The main purpose of the present invention is to provide a system for controlling and managing resources used by services, which can judge resource usage status and avoid conflicts between services when using resources.
本发明的另一目的在于提供一种控管服务使用资源的方法,其可以判断资源使用状况,避免各服务在使用资源时造成冲突。Another object of the present invention is to provide a method for controlling resources used by services, which can determine resource usage status and avoid resource conflicts between services.
为达到上述目的,本发明提供一种控管服务使用资源的系统,该控管服务使用资源的系统包括有中央处理器、操作系统、总线、控管系统以及系统使用的资源。其中,所述控管系统包括一资源许可证列表以及一仲裁模块。资源许可证列表存储于系统的存储资源中,管理各个资源的许可证,仲裁模块用于检查一个服务所需资源的许可证是否已经被取走以判断该服务可否取得资源许可证,且在该服务可取得资源许可证时为该服务取得所需的资源许可证以运行该服务。系统使用的资源还包括存储资源、I/O(Input/Output,输入/输出)资源、通讯资源,存储资源包括系统所有可用的存储介质,通讯资源指系统与各类型网络连接通讯所需的各种资源。To achieve the above object, the present invention provides a system for controlling resources used by services. The system for controlling resources used by services includes a central processing unit, an operating system, a bus, a control system, and resources used by the system. Wherein, the control system includes a resource license list and an arbitration module. The resource license list is stored in the storage resources of the system and manages the licenses of each resource. The arbitration module is used to check whether the license of a resource required by a service has been taken away to determine whether the service can obtain a resource license. When a service can acquire resource licenses, it acquires the required resource licenses for the service to run the service. The resources used by the system also include storage resources, I/O (Input/Output, input/output) resources, and communication resources. Storage resources include all available storage media in the system. resources.
本发明还提供一种利用上述系统控管服务使用资源的方法,其包括如下步骤:当某服务请求使用资源时启动控管系统,检查该资源占用情况以判断该服务可否取得该资源的许可证;若可取得该资源的许可证,则为该服务取得该资源的许可证以运行该服务;资源使用完毕则缴回使用的资源许可证;结束服务。若此服务不能取得资源许可证则不给予许可,结束服务。The present invention also provides a method for using the above-mentioned system to control and manage resources used by services, which includes the following steps: when a service requests to use resources, start the control and management system, and check the occupancy of the resources to determine whether the service can obtain a license for the resource ; If the resource license can be obtained, obtain the resource license for the service to run the service; return the used resource license when the resource is used up; end the service. If the service cannot obtain the resource license, the license will not be granted and the service will end.
本发明的控管服务使用资源的系统及方法,能够根据资源许可证列表判断服务可否使用各项资源,其设计简单,只需较少的处理时间且占用较小的存储空间。The system and method for controlling and managing resources used by services in the present invention can judge whether a service can use various resources according to the resource license list. The design is simple, requiring less processing time and occupying less storage space.
【附图说明】【Description of drawings】
图1是本发明控管服务使用资源的系统的系统架构图。FIG. 1 is a system architecture diagram of a system for controlling resources used by services in the present invention.
图2是本发明控管服务使用资源的方法作业流程图。FIG. 2 is a flow chart of the method for controlling resources used by services in the present invention.
图3是本发明控管服务使用资源的系统的资源许可证列表示意图。FIG. 3 is a schematic diagram of a resource license list of the system for controlling resources used by services according to the present invention.
图4是本发明控管服务使用资源的方法的许可证取得作业流程图。FIG. 4 is a flow chart of obtaining a license in the method for controlling resources used by services in the present invention.
【具体实施方式】【Detailed ways】
如图1所示,是本发明控管服务使用资源系统的系统架构图。该控管服务使用资源的系统包括有中央处理器10、一操作系统11、总线12、控管系统13以及系统使用的资源17。其中,控管系统13包括一资源许可证列表131以及一仲裁模块132。资源许可证列表131存储于系统的存储资源14,管理各个资源的许可证。仲裁模块132用于判断服务可否取得许可证。资源17包括存储资源14、I/O(Input andOutput,输入/输出)资源15及通讯资源16。存储资源14包括系统所有可用的存储介质,通讯资源16包括系统与各类型网络连接通讯所需的各种资源。As shown in FIG. 1 , it is a system architecture diagram of the system for controlling and managing resources used by services in the present invention. The system for controlling resources used by services includes a
如图2所示,是本发明控管服务使用资源的方法作业流程图。当某服务请求使用某资源时启动控管系统13(步骤S200),由仲裁模块132检查该资源占用情况,判断该服务可否取得该资源的许可证(步骤S201),若可取得该资源的许可证则给予许可运行服务(步骤S202),资源使用完毕则缴回使用资源的许可证(步骤S203),结束服务(步骤S204)。若此服务不能取得资源许可证则发出警告讯息(步骤S205),结束服务(步骤S204)。As shown in FIG. 2 , it is a flow chart of the method for controlling and managing resources used by services in the present invention. When a service requests to use a certain resource, the
如图3所示,是本发明控管服务使用资源的系统的资源许可证列表示意图。每个比特位代表一个资源的许可证,当一比特位为0时表示其对应的资源未被服务使用,当一比特位为1时表示其对应资源的许可证已被取走。As shown in FIG. 3 , it is a schematic diagram of a resource license list of the system for controlling resources used by services in the present invention. Each bit represents a license of a resource. When a bit is 0, it indicates that the corresponding resource is not used by the service. When a bit is 1, it indicates that the license of the corresponding resource has been taken away.
如图4所示,是本发明控管服务使用资源的方法的许可证取得作业流程图。首先,仲裁模块132取得资源许可证列表131(步骤S300),检查所需资源的许可证是否已经被取走(步骤S301),若该资源的许可证尚未被取走,则将该资源在资源许可证列表131中对应的比特位设为1(步骤S302),释放资源许可证列表131(步骤S303),回传真值表示服务已取得许可证(步骤S304)。若该资源的许可证已经被索取则回传假值,表示服务未取得许可证(步骤S305)。As shown in FIG. 4 , it is a flowchart of the license acquisition operation of the method for controlling and managing resources used by services in the present invention. First, the
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100918804A CN100445954C (en) | 2004-12-25 | 2004-12-25 | System and method for controlling resources used by services |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100918804A CN100445954C (en) | 2004-12-25 | 2004-12-25 | System and method for controlling resources used by services |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1794178A CN1794178A (en) | 2006-06-28 |
| CN100445954C true CN100445954C (en) | 2008-12-24 |
Family
ID=36805654
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2004100918804A Expired - Fee Related CN100445954C (en) | 2004-12-25 | 2004-12-25 | System and method for controlling resources used by services |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100445954C (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5615389A (en) * | 1995-08-04 | 1997-03-25 | International Business Machines Corporation | Method and system for device resource resolution in a data processing system |
| CN1354854A (en) * | 1998-11-16 | 2002-06-19 | 因芬尼昂技术股份公司 | Universal resource access controller |
| CN1510614A (en) * | 2002-12-20 | 2004-07-07 | 挹光科技股份有限公司 | Resource management method and system |
| WO2004111847A1 (en) * | 2003-06-10 | 2004-12-23 | Sony Ericsson Mobile Communications Japan, Inc. | Resource management method and device, resource management program, and storage medium |
-
2004
- 2004-12-25 CN CNB2004100918804A patent/CN100445954C/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5615389A (en) * | 1995-08-04 | 1997-03-25 | International Business Machines Corporation | Method and system for device resource resolution in a data processing system |
| CN1354854A (en) * | 1998-11-16 | 2002-06-19 | 因芬尼昂技术股份公司 | Universal resource access controller |
| CN1510614A (en) * | 2002-12-20 | 2004-07-07 | 挹光科技股份有限公司 | Resource management method and system |
| WO2004111847A1 (en) * | 2003-06-10 | 2004-12-23 | Sony Ericsson Mobile Communications Japan, Inc. | Resource management method and device, resource management program, and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1794178A (en) | 2006-06-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8260715B2 (en) | Software license usage amongst workgroups using software usage data | |
| CN104346317B (en) | Shared resource access method and device | |
| CN108025685B (en) | Vehicle control device | |
| CN101604302A (en) | Advanced peripheral bus bridge and control method thereof | |
| WO2019024508A1 (en) | Resource allocation method, master device, slave device, and distributed computing system | |
| CN104536834A (en) | Method for authorizing lock permission and distributed lock manager | |
| JP2015530679A (en) | Method and apparatus using high efficiency atomic operations | |
| CN100445954C (en) | System and method for controlling resources used by services | |
| JP3844933B2 (en) | Database server processing method | |
| CN113407883A (en) | Platform jump method and device, electronic equipment and readable storage medium | |
| CN115114042A (en) | Storage data access method and device, electronic equipment and storage medium | |
| JP2004126642A (en) | Software license management device, software license management program, software license management method, and software license management system | |
| US9766828B2 (en) | Mailbox communication mechanism with ownership locking | |
| CN117271148A (en) | Hardware mutual exclusion lock sharing method and device and computer equipment | |
| US20100152866A1 (en) | Information processing apparatus, information processing method and computer-readable medium having an information processing program | |
| KR101436398B1 (en) | Method and system for controlling simultaneous access licensing | |
| US20050256992A1 (en) | System on a chip with arbitration unit and storage key incorporating it | |
| WO2022201281A1 (en) | License management device, license management method, and computer program | |
| CN113722729A (en) | Authority management method, device, terminal, server and storage medium | |
| CN114328650A (en) | Database resource management method and device, computer equipment and storage medium | |
| CN1983195A (en) | Mounting device, electronic device, method of controlling mounting device, controlling program, and recording medium | |
| CN120523583A (en) | A parallel software account allocation method, system, device and storage medium | |
| CN119902999B (en) | Method, device, equipment and medium for managing identity identification code of computer system interface | |
| CN120296716B (en) | A method for interacting with a cloud platform for trustworthy ecological services | |
| TWM586390U (en) | A system for performing identity verification according to the service instruction to execute the corresponding service |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081224 Termination date: 20121225 |