[go: up one dir, main page]

CN100445954C - System and method for controlling resources used by services - Google Patents

System and method for controlling resources used by services Download PDF

Info

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
Application number
CNB2004100918804A
Other languages
Chinese (zh)
Other versions
CN1794178A (en
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CNB2004100918804A priority Critical patent/CN100445954C/en
Publication of CN1794178A publication Critical patent/CN1794178A/en
Application granted granted Critical
Publication of CN100445954C publication Critical patent/CN100445954C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a system of a controlling and managing service using resource, which comprises a central processor, an operating system, a bus, a controlling and managing system, a storing resource, an I/ O (I n p u t/ O u t p u t) resource and a communication resource, wherein the controlling and managing system comprises a resource license listing and an arbitration module. The resource license listing is used for managing the license of each resource, and the arbitration module is used for judging the service which can obtain the license or can not obtain the license. The present invention also provides a method of controlling and managing service using resource, which can judge the resource using condition and avoid that the service generates collision when the resource is used. The present invention has the advantages of simple design, less processing time and small storage space occupation.

Description

控管服务使用资源的系统及方法 System and method for controlling resources used by services

【技术领域】【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 CPU 10 , an operating system 11 , a bus 12 , a control system 13 and resources 17 used by the system. Wherein, the control system 13 includes a resource license list 131 and an arbitration module 132 . The resource license list 131 is stored in the storage resource 14 of the system, and manages the license of each resource. The arbitration module 132 is used to determine whether the service can obtain a license. The resources 17 include storage resources 14, I/O (Input and Output, input/output) resources 15 and communication resources 16. The storage resource 14 includes all available storage media of the system, and the communication resource 16 includes various resources required for the system to communicate with various types of network connections.

如图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 control system 13 is started (step S200), and the arbitration module 132 checks the occupancy of the resource to determine whether the service can obtain a license for the resource (step S201), if the license for the resource can be obtained License is then given permission to run the service (step S202), and then the license to use the resource is returned after the resource is used (step S203), and the service is terminated (step S204). If the service cannot obtain the resource license, a warning message is issued (step S205), and the service is terminated (step S204).

如图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 arbitration module 132 obtains the resource license list 131 (step S300), checks whether the license of the required resource has been taken away (step S301), if the license of the resource has not been taken away, then the resource is listed in the resource The corresponding bit in the license list 131 is set to 1 (step S302), the resource license list 131 is released (step S303), and the fax value indicates that the service has obtained the license (step S304). If the license of the resource has been requested, a false value is returned, indicating that the service has not obtained the license (step S305).

Claims (7)

1. the system of a keyholed back plate service use resource includes central processing unit, operating system, bus, control-management system and storage resources, I/O resource, communication resources, it is characterized in that described control-management system comprises:
The tabulation of one resource grant card is used to manage the licence of each resource;
One arbitration modules is used to check that whether removed the licence of a service resource requirement judging that this service could obtain the resource grant card, and demonstrate,proves to move this service for this service obtains required resource grant when this service can obtain the resource grant card.
2. the system of resource is used in keyholed back plate service as claimed in claim 1, it is characterized in that, wherein the tabulation of resource grant card comprises a plurality of bits, the behaviour in service of all corresponding resource of each bit, bit is that the corresponding resource of 0 interval scale is not used, and bit is that the corresponding resource of 1 interval scale is used.
3. a method of utilizing the keyholed back plate service of the described system of claim 1 to use resource is characterized in that, comprises the steps:
When using resource, certain services request starts control-management system;
Check that this occupation condition could obtain the licence of this resource to judge this service;
If can obtain the licence of this resource, then obtain the licence of this resource to move this service for this service;
After finishing using, resource returns the resource grant card of use;
Finish service.
4. the method for resource is used in keyholed back plate service as claimed in claim 3, it is characterized in that, checks that wherein this occupation condition also comprises step: if this resource is occupied on inspection, the message that then gives a warning finishes service.
5. the method for resource is used in keyholed back plate service as claimed in claim 3, it is characterized in that wherein step checks that this occupation condition comprises:
Obtain the tabulation of resource grant card;
Whether the licence of checking resource requirement is removed.
6. the method for resource is used in keyholed back plate service as claimed in claim 5, it is characterized in that, wherein step obtains the resource grant card and comprises:
Then this resource corresponding bit in the tabulation of resource grant card is not made as 1 if the licence of this resource is removed as yet;
Discharge the tabulation of resource grant card;
The passback true value represents that service has obtained licence.
7. the method for resource is used in keyholed back plate service as claimed in claim 5, it is characterized in that, checks wherein that the licence of resource requirement is whether removed also to comprise: if resource is removed on inspection, then return falsity, the expression service does not obtain licence.
CNB2004100918804A 2004-12-25 2004-12-25 System and method for controlling resources used by services Expired - Fee Related CN100445954C (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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