摘要 |
A fine-granularity resource control method and apparatus. The method comprises the following steps: for a function for which resource usage needs to be restricted, defining one license item in a license file, wherein the license item is used to represent a resource restriction quantity for supporting the function; determining whether a preferential support command is set in advance for resources of the function, and if yes, performing control on the resources of the function according to the preferential support command, a value of the license item, and an actual resource quantity for supporting the function, or otherwise, performing control directly on the resources of the function according to the value of the license item and the actual resource quantity for supporting the function. In the technical solution, a license item is set to make resource management granularity finer, so that a user can only use resources within a predetermined range, thereby ensuring that the value of resources is maximized. |