CN112270497A - Resource allocation method and device and audio-video playing terminal - Google Patents

Resource allocation method and device and audio-video playing terminal Download PDF

Info

Publication number
CN112270497A
CN112270497A CN202011278770.4A CN202011278770A CN112270497A CN 112270497 A CN112270497 A CN 112270497A CN 202011278770 A CN202011278770 A CN 202011278770A CN 112270497 A CN112270497 A CN 112270497A
Authority
CN
China
Prior art keywords
service instance
target
entity
target service
path
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
CN202011278770.4A
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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202011278770.4A priority Critical patent/CN112270497A/en
Priority to US17/256,958 priority patent/US20220350666A1/en
Priority to PCT/CN2020/137307 priority patent/WO2022099856A1/en
Publication of CN112270497A publication Critical patent/CN112270497A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a resource allocation method, a resource allocation device and an audio-video playing terminal, which are applied to a resource allocation system in the audio-video playing terminal, wherein the audio-video playing terminal comprises a plurality of equipment entities, the resource allocation system comprises a resource allocator and a plurality of service instances, and the method comprises the following steps: the resource configurator responds to a path application request of at least one target service instance, wherein each path application request comprises an equipment entity list required by the target service instance when the service function is implemented; and according to the instance attribute of each target service instance and the equipment entity list, equipment entity allocation is carried out according to a preset resource allocation rule so as to create a path of each target service instance, so that the target service instance can call the equipment entity in the corresponding path to realize the corresponding service function. The technical scheme of the invention can ensure that the service instances can be normally implemented, solve the problem of service use conflict, and realize the maximum utilization of resources and the like.

Description

Resource allocation method and device and audio-video playing terminal
Technical Field
The present invention relates to the field of video playing technologies, and in particular, to a resource allocation method and apparatus, and a video and audio playing terminal.
Background
As the functions of the television become more and more rich, for example, the television has many functions of recording, live broadcasting, picture-in-picture, playback, and the like, and different internal hardware and software devices in the television terminal need to be used for different service uses. However, in the prior art, when there are multiple service demands, the whole set of resources are occupied when using one service, which results in resource conflict, and further internal resources in the television cannot be reasonably utilized to the maximum extent.
Disclosure of Invention
In view of the above, the present invention provides a resource allocation method, a resource allocation device and an audio/video playing terminal to overcome the deficiencies in the prior art.
The embodiment of the invention provides a resource allocation method, which is applied to a resource allocation system in an audio-video playing terminal, wherein the audio-video playing terminal comprises a plurality of equipment entities, the resource allocation system comprises a resource allocator and a plurality of service instances, each service instance has an instance attribute, and the method comprises the following steps:
the resource configurator responds to a path application request of at least one target service instance, wherein each path application request comprises a device entity list required by the target service instance when the target service instance implements a service function;
and according to the instance attribute of each target service instance and the equipment entity list, equipment entity allocation is carried out according to a preset resource allocation rule so as to create a path of each target service instance, so that the target service instance can call the equipment entity in the corresponding path to realize the corresponding service function.
In one embodiment, the instance attribute of the service instance includes a preset priority level, and the allocating, according to the instance attribute of each target service instance and the equipment entity list, an equipment entity according to a preset resource allocation rule to create a path of each target service instance includes:
if the path application requests of a plurality of target service instances exist, sequentially distributing equipment entities for each target service instance from high to low according to the priority level;
in the equipment entity allocation process of a single target service instance, a plurality of required target equipment entities are determined according to the equipment entity list, each target equipment entity is sequentially obtained and allocated to the target service instance, and then a corresponding path is created.
In an embodiment, in a process of allocating a single target service instance to a device entity, the sequentially acquiring each target device entity and allocating the target service instance to the target service instance includes:
for each target equipment entity, judging the uniqueness of the current target equipment entity;
if the target service instance is the uniqueness constraint resource, judging whether the current target equipment entity is available, and distributing the target equipment entity to the target service instance when the target equipment entity is available;
if the target device entity does not support the sharing use, judging whether the current target device entity supports the sharing use; if the sharing use is supported, the target service instance is allocated;
if the exclusive use is supported, whether the current target equipment entity is available is judged, and when the current target equipment entity is available, the target equipment entity is allocated to the target service instance.
In one embodiment, the resource allocation method further includes:
when the current target equipment entity is judged to be the uniqueness constraint resource and is not available currently, a path using the current target equipment entity is marked as a conflict path, and a service instance of the conflict path is informed to release the current target equipment entity.
In one embodiment, the resource allocation method further includes:
when the current target equipment entity supporting exclusive use is judged to be unavailable, storing the access information of the service instance with the low priority level using the current target equipment entity for preempting the current target equipment entity;
before preempting the current target device entity, the method further includes:
judging whether the target service instance is distributed with a necessary equipment entity for creating a path, and calling the current target equipment entity from the service instance with the low priority level according to the path information when the target service instance is judged to be obtained;
if the calling fails, judging whether the target service instance supports the waiting function, entering a waiting state when the waiting function is supported, and otherwise, returning to the failure.
In one embodiment, in the process of invoking the current target device entity, the resource configuration method further includes:
and if a plurality of paths using the service instance of the target equipment entity exist, selecting the current target equipment entity in the service instance with the lowest priority level for calling.
In an embodiment, in the process of sequentially performing device entity allocation for each target service instance according to the order of priority from high to low, the method further includes:
if a plurality of target service instances with the same priority level exist, equipment entity allocation operation is carried out on the plurality of target service instances in sequence according to the priority processing rule of the target service instances.
The embodiment of the present invention further provides a resource allocation device, applied to a resource allocation system in an audio-video playing terminal, where the audio-video playing terminal includes multiple device entities, the resource allocation system includes a resource allocator and several service instances, each service instance has its own instance attribute, and the device is applied to the resource allocator, and the device includes:
a request response module, configured to respond to a path application request of at least one target service instance, where each path application request includes a device entity list required when the target service instance implements a service function;
and the resource allocation module is used for performing equipment entity allocation according to the example attribute of each target service example and the equipment entity list according to a preset resource allocation rule to create a path of each target service example, so that the target service example can call the equipment entity in the corresponding path to realize the corresponding service function.
The embodiment of the present invention further provides an audio-visual playing terminal, where the audio-visual playing terminal includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the computer program to implement the resource allocation method.
Embodiments of the present invention also provide a readable storage medium, which stores a computer program, and when the computer program is executed, the computer program implements the resource allocation method.
The embodiment of the invention has the following advantages:
the resource allocation method of the embodiment performs resource management based on the architecture of the resource allocator, the service instances and the channels, and performs resource allocation by presetting the resource allocation rules according to the instance attributes and the device entity characteristics of the service instances, and particularly in the live broadcast process, the method not only can ensure that the service instances can be normally implemented and solve the problem of service use conflict, but also can realize the maximum utilization of resources and the like.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic diagram illustrating an application of a resource allocation method according to an embodiment of the present invention;
FIG. 2 is a first flowchart of a resource allocation method according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a resource allocation method according to an embodiment of the present invention;
fig. 4 shows a third flow chart of the resource allocation method according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a resource configuration apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
Referring to fig. 1 and fig. 2, the present embodiment provides a resource allocation method, which can be applied to an audio-video playing terminal such as a television, a computer, and the like to implement reasonable allocation of resources of playing devices, solve the problem of service usage conflict, and further improve user experience and the like.
Generally, a video playback terminal includes multiple devices, each device often includes at least one device entity, and when a certain service is executed, the terminal will orderly combine and use one or more entities in some devices to achieve the purpose of implementing the service function. Generally, when the upper layer application of the terminal calls the bottom layer hardware, each hardware device is packaged into a corresponding device entity, so that when a certain function of a certain device needs to be used, the corresponding device entity can be directly called. It should be understood that the device entity described in this embodiment refers to a resource of a device.
In order to implement different service functions by using limited software and hardware resources in the terminal, the video playback terminal of this embodiment is provided with a resource allocation system, as shown in fig. 1, exemplarily, the resource allocation system mainly includes a resource allocator and a plurality of service instances, where the resource allocator is mainly used to allocate required resources for each service instance when executing a corresponding service function, and create a path for the corresponding service instance by using the allocated resources, so that the service instance can control the allocated resources through the path. Of course, if the execution of the corresponding service instance is completed, the resource configurator may also be requested to release the allocated resources and return the path. It can be understood that in the process of playing video, the device entity required by creating the path and controlling the path, especially in the process of live broadcasting, can realize various service functions according to different requirements of users, and can improve user experience.
In order to satisfy the normal operation of each service instance, an ordered combination of multiple devices is usually required, and in this embodiment, a line through which data flows through each device in the combination is defined as the path. It can be understood that the creation and use of the path can allow the service instance to normally invoke these allocated device entities in its corresponding path, and for some sharable device entities, the maximum utilization of device resources can be realized on the premise of ensuring no conflict. In this embodiment, the service instance refers to an autonomous service instance having self-application resources and a path, and certainly, for some affiliated service instances, a path application needs to be performed depending on the associated autonomous service instance.
As shown in fig. 2, the resource allocation method will be described in detail below.
S110, responding to the access application request of at least one target service instance. Each path application request comprises a device entity list required by the target service instance when the service function is implemented.
Exemplarily, when the resource configurator receives the path application requests of one or more target service instances, the resource configurator acquires the device entity list required by the corresponding target service instance from the path application requests. The device entity list stores specific device entity information, such as names and numbers of required device entities.
Taking the smart phone as an example, the service instances thereof may include, but are not limited to, recording service instances, picture-in-picture playing service instances, call back service instances, and the like. For example, for a main window play (MP) service instance, the resource configurator obtains its list of device entities to determine that it needs device entities such as Decoder, Vout (video output interface), etc.
And S120, according to the instance attribute of each target service instance and the equipment entity list, equipment entity allocation is carried out according to a preset resource allocation rule so as to create a path of each target service instance.
Exemplarily, after the resource configurator determines the device entities required by the corresponding target service instances, the resource allocation is performed according to a preset resource allocation rule, so as to create corresponding paths. In an embodiment, as shown in fig. 3, the preset resource allocation rule of step S120 includes:
s210, if the access application requests of a plurality of target service instances exist, equipment entity allocation is carried out on each target service instance in sequence from high priority to low priority.
In this embodiment, the resource configurator performs resource allocation in a synchronous manner, that is, only one service instance resource and path request can be processed at the same time. Illustratively, when multiple target service instances request resources, they will be allocated in sequence. In one embodiment, the instance attributes may include, but are not limited to including, priority, and the like. For example, a priority level may be set for each service instance in advance, and generally, the higher the level is, the more priority processing is required. And then, processing is carried out in sequence according to the priority level of each target service instance. In addition, the instance attributes may also include the manner in which the service instance uses resources, whether a wait function is supported, and the like. And the service instance supporting the waiting function can reserve the path, so as to reserve equipment entities required by path creation in advance.
Further optionally, if there are multiple target service instances with the same priority level that need to be processed, the device entity allocation operation may be performed on the multiple target service instances in sequence according to the latter priority processing rule. The latter is used for priority processing, so that the latest operation requirements of the user can be responded to the service instances of the same level more quickly, and the user experience and the like are improved.
S220, in the process of distributing the equipment entities of a single target service instance, determining a plurality of required target equipment entities according to the equipment entity list, sequentially acquiring each target equipment entity and distributing the target equipment entity to the target service instance, and then creating a corresponding path.
Exemplarily, for a single target service instance, the resource configurator determines which target device entities need to be allocated according to the device entity list thereof, and then performs path creation after allocating to each target device entity. In the present embodiment, the resource allocation is performed according to the device characteristics of different device entities, considering that some resources are unique and some resources can be shared. In one embodiment, exemplarily, as shown in fig. 4, the allocation procedure of each target device entity includes:
s301, judging whether the current target device entity is the uniqueness constraint resource.
If the resource is the uniqueness constraint resource, step S302 is executed, otherwise step S303 is executed. The uniqueness constraint exemplarily refers to that the equipment entity has uniqueness, and generally, if the equipment entity is currently called, the equipment entity needs to wait for the resource to be released before being allocated again.
S302, judging whether the current target equipment entity with the uniqueness constraint is available.
For the target device entity with uniqueness constraint, if its current state is available, i.e. it indicates that it is currently in an idle state, step S305 is executed. Alternatively, if not available, i.e. indicating that the target device entity is being used, steps S06 and S307 are performed.
S303, judging whether the current target device entity supports sharing use.
If the shared use is supported, step S305 is executed, otherwise, step S304 is executed, which indicates that the device entity is an exclusive device. For example, in some smart tvs, resources such as FE (front-end tuner) and CI (public interface for watching pay programs) can be shared; and resources such as Vout (video output interface), Decoder, etc. cannot be shared. It can be understood that, by preferentially using the device entity supporting shared use, more available resources can be reserved for subsequent service instances, and maximum utilization of resources can also be achieved.
S304, judging whether the current target device entity supporting exclusive use is available.
If the current status of the device entity supporting exclusive use is available, step S305 is executed. Alternatively, if the current status of the target device entity supporting the exclusive use is not available, step S308 is executed. Wherein the saved path information is to be usable for subsequent preemption calls to the current target device entity. Of course, whether to preempt specifically may be determined according to preset corresponding conditions.
S305, the target service instance is distributed.
Illustratively, when the resource configurator determines that the target equipment entity is available, it will be allocated to the current target service instance, and further, based on the allocated target equipment entities, a unique path of the target service instance will be created. When resource allocation is performed, operations such as path identification and status locking can be performed, for example.
For the step S302, optionally, the method further includes:
s306, marking the path using the current target equipment entity as a conflict path.
S307, the service instance of the conflict path is informed to release the current target equipment entity.
Exemplarily, for the current target device entity with the uniqueness constraint characteristic, when the current target device entity is unavailable, the current path where the current target device entity is located is marked as a conflicting path, namely, marked as a Crash path. It will be appreciated that since the target device entity has a uniqueness constraint and can only be invoked when it is idle, the resource configurator can then notify the in-use service instance to release the resource and make an invocation after the resource is released, particularly for those resources that affect the creation of the path, which, if not available, will affect the creation of the path, etc.
For the step S304, optionally, the method further includes:
s308, the path information of the service instance using the low priority level of the current target equipment entity is saved. It can be understood that, if resource preemption is required subsequently, resource preemption and invocation can be performed in the corresponding path according to the path information.
Further optionally, as shown in fig. 4, the method further includes:
s309, judging whether the current target service instance is distributed with the necessary equipment entity for creating the path.
And S310, calling the current target equipment entity from the service instance with the low priority level according to the path information.
Exemplarily, if the necessary device for path creation is obtained, step S310 may be executed, which may ensure that the resource invocation from the service instance with low priority is meaningful, and may also reduce the waiting time for the service instance with low priority to be preempted for invocation at the device entity.
In an embodiment, optionally, in the saved path information, if there are multiple paths using the service instance of the target device entity, the current target device entity in the service instance with the lowest priority is selected for invocation.
Further optionally, for the step S310, the method further includes:
s311, whether the call is successful is judged.
If the call is successful, step S305 is executed, otherwise step S312 is executed.
S312, whether the target service instance supports the waiting function is judged.
If the waiting function is supported, a waiting state is entered, and then the calling from these low priority service instances is continued or the calling is performed while waiting for it to become the idle state, otherwise step S313 is executed.
S313, return call failure.
It can be understood that, for the next target device entity, the allocation will be performed according to the above steps, where different target device entities may be acquired simultaneously, or a necessary device entity for preferentially acquiring the path creation may be acquired, and then other device entities may be acquired, and of course, the acquisition may be performed sequentially according to the order of the device entity list, and so on.
Then, after the resource configurator allocates the required resources to the target service instance, a corresponding unique path is created, and step S130 is further performed.
S130, the target service instance calls the equipment entity in the corresponding path to realize the service function.
Exemplarily, after the path is successfully created, the target service instance will control the device entities through the path, such as sending corresponding control instructions to implement corresponding service functions, and the like.
The resource allocation method of the embodiment is based on a resource allocator and a management architecture of a service instance, that is, a service instance requests the resource allocator for resource and path creation when it needs to be implemented, and resource allocation is performed by presetting a resource allocation rule according to instance attributes and device entity characteristics of the service instance, so that not only can the service instances be ensured to be implemented normally, the problem of service usage conflict be solved, but also the maximum utilization of resources and the like can be realized. In addition, if the service instance is not implemented, the path can be returned, so that the equipment resource in the path is released, and the calling of other service instances can be facilitated.
Example 2
Referring to fig. 5, the present embodiment provides a resource allocation apparatus 10, which can be applied to a resource allocation system in an audio/video playback terminal, where the audio/video playback terminal includes a plurality of device entities. Exemplarily, the resource allocation system includes a resource allocator and several service instances, each service instance has its own instance attribute, and the resource allocation apparatus applied to the resource allocator includes:
the request response module 110 is configured to respond to a path application request of at least one target service instance, where each path application request includes a device entity list required when the target service instance implements a service function.
The resource allocation module 120 is configured to perform device entity allocation according to the instance attribute of each target service instance and the device entity list according to a preset resource allocation rule to create a path of each target service instance, so that the target service instance can call the device entity in the corresponding path to implement the corresponding service function.
It is to be understood that the modules of the present embodiment correspond to the steps of embodiment 1, and any optional items in embodiment 1 are also applicable to the present embodiment, so that detailed description is omitted here.
The invention further provides an audio-visual playing terminal, exemplarily, the audio-visual playing terminal comprises a processor and a memory, the memory stores a computer program, and the processor is used for executing the computer program to implement the video playing control method of the above embodiment. For example, the video playing device may be a smart television, a computer, or the like.
The present application also provides a readable storage medium for storing a computer program, which when executed will implement the above-mentioned resource allocation method.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A resource allocation method is characterized in that the resource allocation method is applied to a resource allocation system in an audio-video playing terminal, the audio-video playing terminal comprises a plurality of equipment entities, the resource allocation system comprises a resource allocator and a plurality of service instances, each service instance has an own instance attribute, and the method comprises the following steps:
the resource configurator responds to a path application request of at least one target service instance, wherein each path application request comprises a device entity list required by the target service instance when the target service instance implements a service function;
and according to the instance attribute of each target service instance and the equipment entity list, equipment entity allocation is carried out according to a preset resource allocation rule so as to create a path of each target service instance, so that the target service instance can call the equipment entity in the corresponding path to realize the corresponding service function.
2. The method according to claim 1, wherein the instance attribute of the service instance includes a preset priority level, and the performing device entity allocation according to the instance attribute of each target service instance and the device entity list according to a preset resource allocation rule to create a path of each target service instance comprises:
if the path application requests of a plurality of target service instances exist, sequentially distributing equipment entities for each target service instance from high to low according to the priority level;
in the equipment entity allocation process of a single target service instance, a plurality of required target equipment entities are determined according to the equipment entity list, each target equipment entity is sequentially obtained and allocated to the target service instance, and then a corresponding path is created.
3. The resource allocation method according to claim 2, wherein, in the process of allocating a single target service instance to the device entities, the sequentially obtaining and allocating each target device entity to the target service instance comprises:
for each target equipment entity, judging the uniqueness of the current target equipment entity;
if the target service instance is the uniqueness constraint resource, judging whether the current target equipment entity is available, and distributing the target equipment entity to the target service instance when the target equipment entity is available;
if the target device entity does not support the sharing use, judging whether the current target device entity supports the sharing use; if the sharing use is supported, the target service instance is allocated;
if the exclusive use is supported, whether the current target equipment entity is available is judged, and when the current target equipment entity is available, the target equipment entity is allocated to the target service instance.
4. The resource allocation method according to claim 3, further comprising:
when the current target equipment entity is judged to be the uniqueness constraint resource and is not available currently, a path using the current target equipment entity is marked as a conflict path, and a service instance of the conflict path is informed to release the current target equipment entity.
5. The resource allocation method according to claim 3, further comprising:
when the current target equipment entity supporting exclusive use is judged to be unavailable, storing the access information of the service instance with the low priority level using the current target equipment entity for preempting the current target equipment entity;
before preempting the current target device entity, the method further includes:
judging whether the target service instance is distributed with a necessary equipment entity for creating a path, and calling the current target equipment entity from the service instance with the low priority level according to the path information when the target service instance is judged to be obtained;
if the calling fails, judging whether the target service instance supports the waiting function, entering a waiting state when the waiting function is supported, and otherwise, returning to the failure.
6. The resource configuration method of claim 5, wherein in invoking the current target device entity, the method further comprises:
and if a plurality of paths using the service instance of the target equipment entity exist, selecting the current target equipment entity in the service instance with the lowest priority level for calling.
7. The method according to any of claims 2 to 5, wherein in the process of performing device entity allocation for each target service instance in sequence from high priority to low priority, the method further comprises:
if a plurality of target service instances with the same priority level exist, equipment entity allocation operation is carried out on the plurality of target service instances in sequence according to the priority processing rule of the target service instances.
8. A resource allocation device is characterized in that the resource allocation device is applied to a resource allocation system in an audio-video playing terminal, the audio-video playing terminal comprises a plurality of equipment entities, the resource allocation system comprises a resource allocator and a plurality of service instances, each service instance has an instance attribute, the device is applied to the resource allocator, and the device comprises:
a request response module, configured to respond to a path application request of at least one target service instance, where each path application request includes a device entity list required when the target service instance implements a service function;
and the resource allocation module is used for performing equipment entity allocation according to the example attribute of each target service example and the equipment entity list according to a preset resource allocation rule to create a path of each target service example, so that the target service example can call the equipment entity in the corresponding path to realize the corresponding service function.
9. An audio-visual playback terminal, comprising a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the resource allocation method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that it stores a computer program which, when executed, implements the resource configuration method according to any one of claims 1-7.
CN202011278770.4A 2020-11-16 2020-11-16 Resource allocation method and device and audio-video playing terminal Pending CN112270497A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202011278770.4A CN112270497A (en) 2020-11-16 2020-11-16 Resource allocation method and device and audio-video playing terminal
US17/256,958 US20220350666A1 (en) 2020-11-16 2020-12-17 Resource allocation method, device and audio-visual playback terminal
PCT/CN2020/137307 WO2022099856A1 (en) 2020-11-16 2020-12-17 Resource configuration method and apparatus, and audio and video playing terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011278770.4A CN112270497A (en) 2020-11-16 2020-11-16 Resource allocation method and device and audio-video playing terminal

Publications (1)

Publication Number Publication Date
CN112270497A true CN112270497A (en) 2021-01-26

Family

ID=74340703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011278770.4A Pending CN112270497A (en) 2020-11-16 2020-11-16 Resource allocation method and device and audio-video playing terminal

Country Status (1)

Country Link
CN (1) CN112270497A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6363434B1 (en) * 1999-03-30 2002-03-26 Sony Corporation Of Japan Method of managing resources within a network of consumer electronic devices
CN103024551A (en) * 2012-12-17 2013-04-03 四川长虹电器股份有限公司 Resource management method of intelligent television system
CN106534935A (en) * 2016-11-15 2017-03-22 青岛海信电器股份有限公司 Method and device for controlling hardware resource conflict
CN106681806A (en) * 2016-11-25 2017-05-17 青岛海信电器股份有限公司 Method for distributing hardware resources and intelligent terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6363434B1 (en) * 1999-03-30 2002-03-26 Sony Corporation Of Japan Method of managing resources within a network of consumer electronic devices
CN103024551A (en) * 2012-12-17 2013-04-03 四川长虹电器股份有限公司 Resource management method of intelligent television system
CN106534935A (en) * 2016-11-15 2017-03-22 青岛海信电器股份有限公司 Method and device for controlling hardware resource conflict
CN106681806A (en) * 2016-11-25 2017-05-17 青岛海信电器股份有限公司 Method for distributing hardware resources and intelligent terminal

Similar Documents

Publication Publication Date Title
JP4430885B2 (en) Distributed tuner allocation and conflict resolution
US8555201B2 (en) Wireless communication device having deterministic control of foreground access of the user interface
WO2021227999A1 (en) Cloud computing service system and method
CN107577523B (en) Task execution method and device
CN115002143B (en) Node election method and device, storage medium and electronic equipment
CN110908774A (en) Resource scheduling method, device, system and storage medium
CN111124674A (en) Hardware resource management method, storage medium and terminal
CN103544039A (en) Plug-in loading processing method and device
CN112491566B (en) Resource management method, resource management system, and computer-readable storage medium
JP2002237843A (en) Method for resolving resource conflict and host
CN111913792B (en) Service processing method and device
US20220350666A1 (en) Resource allocation method, device and audio-visual playback terminal
CN110764724B (en) Display equipment control method, device, equipment and storage medium
CN112270497A (en) Resource allocation method and device and audio-video playing terminal
CN111124652A (en) Resource pre-scheduling method, equipment and storage medium
CN116668545A (en) Service priority arbitration method based on SOA architecture
CN112399224A (en) Multi-resource management system, smart television and readable storage medium
US20090158284A1 (en) System and method of processing sender requests for remote replication
CN112616143B (en) Method and device for distributing communication numbers, electronic equipment and storage medium
CN112600765B (en) Method and device for scheduling configuration resources
JP7331132B2 (en) Application program installation method, operation method, electronic device, computer readable medium
US7328291B2 (en) System and method for controlling the service engagement in a data bus system
WO2021077747A1 (en) Method and device for implementing application loading, computer storage medium and terminal
CN102811154A (en) Resource acquisition method and network server system
WO2008115033A1 (en) Method of providing mobile application and computer-readable medium having thereon program performing function embodying the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination