CN116107738A - Resource allocation method and device and electronic equipment - Google Patents

Resource allocation method and device and electronic equipment Download PDF

Info

Publication number
CN116107738A
CN116107738A CN202211520207.2A CN202211520207A CN116107738A CN 116107738 A CN116107738 A CN 116107738A CN 202211520207 A CN202211520207 A CN 202211520207A CN 116107738 A CN116107738 A CN 116107738A
Authority
CN
China
Prior art keywords
calculated
data
sending
information
computing
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
CN202211520207.2A
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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Baoqu Technology 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 Zhuhai Baoqu Technology Co Ltd filed Critical Zhuhai Baoqu Technology Co Ltd
Priority to CN202211520207.2A priority Critical patent/CN116107738A/en
Publication of CN116107738A publication Critical patent/CN116107738A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Abstract

The embodiment of the invention discloses a resource allocation method, a device and electronic equipment, which relate to the technical field of computers and can be used for acquiring information to be calculated, wherein the information to be calculated comprises data to be calculated and a process identifier, a corresponding process is determined according to the process identifier, the data to be calculated is sent to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource.

Description

Resource allocation method and device and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for allocating resources, and an electronic device.
Background
With the development of the age, the demand of users for computing power resources is more and more increased, and in order to meet the increasing demand of users for computing power resources, the computing power of current computing power devices is more and more powerful.
However, current computing devices often include only a single computing device, which may cause significant computing tasks to be difficult for a user to calculate when multiple computing tasks exist, and reduce the user experience.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a resource allocation method, apparatus, and electronic device, which can reasonably allocate computing power and improve user experience.
In a first aspect, an embodiment of the present invention provides a method for distributing computing power, including:
acquiring information to be calculated, wherein the information to be calculated comprises data to be calculated and a process identifier;
determining a corresponding process according to the process identification;
and sending the data to be calculated to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource.
According to a specific implementation manner of the embodiment of the present invention, before obtaining the information to be calculated, where the information to be calculated includes the data to be calculated and the process identifier, the method further includes:
and responding to the user operation, and displaying the process information and the process identification corresponding to each process to the user.
According to a specific implementation manner of the embodiment of the present invention, after sending the data to be calculated to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource, the method further includes:
and sending the calculated data to user equipment corresponding to the user.
According to a specific implementation manner of the embodiment of the present invention, before sending the data to be calculated to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource, the method further includes:
and establishing a corresponding relation between the process and the computing resource.
According to a specific implementation manner of the embodiment of the present invention, sending data to be calculated to a corresponding process, so that the corresponding process sends the data to be calculated to a corresponding computing resource, including:
and sending the data to be calculated to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource according to the corresponding relation.
According to a specific implementation manner of the embodiment of the present invention, sending data to be calculated to a corresponding process, so that the corresponding process sends the data to be calculated to a corresponding computing resource, including:
and sending the data to be calculated to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource according to the corresponding relation.
According to a specific implementation manner of the embodiment of the present invention, establishing a correspondence between a process and a computing resource includes:
and establishing a corresponding relation between the encoded computing resource and the process.
In a second aspect, an embodiment of the present invention provides a resource allocation apparatus, including:
the acquisition module is used for acquiring information to be calculated, wherein the information to be calculated comprises data to be calculated and a process identifier;
the determining module is used for determining a corresponding process according to the process identification;
the first sending module is used for sending the data to be calculated to the corresponding process so that the corresponding process sends the data to be calculated to the corresponding computing resource.
According to a specific implementation manner of the embodiment of the present invention, the resource allocation device further includes:
the display module is used for responding to user operation and displaying the process information and the process identification corresponding to each process to the user before the information to be calculated is acquired and comprises the data to be calculated and the process identification.
According to a specific implementation manner of the embodiment of the present invention, the resource allocation device further includes:
a second sending module, configured to send the calculated data to the user equipment corresponding to the user after the second sending module sends the calculated data to the corresponding process, so that the corresponding process sends the calculated data to the corresponding computing resource
According to a specific implementation manner of the embodiment of the present invention, the resource allocation device further includes:
the establishing module is used for establishing a corresponding relation between the process and the computing resource before sending the data to be computed to the corresponding process so that the corresponding process sends the data to be computed to the corresponding computing resource.
According to a specific implementation manner of the embodiment of the present invention, the first sending module includes:
the first sending unit is used for sending the data to be calculated to the corresponding process so that the corresponding process sends the data to be calculated to the corresponding computing resource according to the corresponding relation.
According to a specific implementation manner of the embodiment of the present invention, the first sending module further includes:
the second sending unit is used for sending the data to be calculated to the corresponding process so that the corresponding process sends the data to be calculated to the corresponding computing resource according to the corresponding relation.
According to a specific implementation manner of the embodiment of the invention, the building module further comprises
The establishing unit is used for establishing a corresponding relation between the encoded computing resource and the process.
In a third aspect, an embodiment of the present invention provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space surrounded by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the method of any of the foregoing implementations.
In a fourth aspect, embodiments of the present invention also provide an application program that is executed to implement the method of any of the embodiments of the present invention.
According to the resource allocation method, the device and the electronic equipment provided by the embodiment of the invention, the information to be calculated is obtained, wherein the information to be calculated comprises the calculation data and the process identification, then the corresponding process is determined according to the process identification, and then the data to be calculated is sent to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding calculation resource.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a resource allocation method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a resource allocation method according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a resource allocation device according to a first embodiment of the present invention;
fig. 4 is a schematic structural diagram of an embodiment of the electronic device of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The server may be a server providing various services, such as a background management server providing support for devices operated by the user with the terminal device. The background management server can analyze and process the received data such as the request and the like, and feed back the processing result to the terminal equipment.
Optionally, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content De l i very Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
Those skilled in the art will appreciate that the above-described number of terminal devices, networks and servers is merely illustrative, and that any number of terminal devices, networks and servers may be provided as desired. The embodiments of the present disclosure are not limited in this regard.
Alternatively, the wireless network or wired network described above uses standard communication techniques and/or protocols. The network is typically the Internet, but may be any network including, but not limited to, a local area network (Loca l Area Network, LAN), metropolitan area network (Metropo l itan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or any combination of virtual private networks. In some embodiments, data exchanged over the network is represented using techniques and/or formats including HyperText Mark-up Language (HTML), extensible markup Language (Expensibl e MarkupLanguage, XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as secure sockets layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Secur ity, TLS), virtual private network (Vi rtua l Pr ivate Network, VPN), internet protocol security (I nternet Protoco l Secur ity, ibsec), etc. In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
For a detailed description of embodiments of the present disclosure, the following first explains the terms involved in the present disclosure as follows:
CPU: the central processing unit (centra l process i ng unit, CPU) is used as the operation and control core of the computer system and is the final execution unit for information processing and program running.
CPU affinity: CPU affinity is divided into soft affinity, which refers to the property of assigning processes to a given CPU core for as long as possible to run without being migrated to other CPUs, and hard affinity, which refers to the property of binding processes or threads to a given CPU core to run without being migrated to other CPUs.
The process comprises the following steps: a Process (Process) is a running activity of a program in a computer on a certain data set, is a basic unit of resource allocation and scheduling by a system, and is a basis of an operating system structure.
On a single device, the total computational power of the device is relatively fixed, if the processes on the device are normally equal to share all the computational power resources of the CPU of the device under the precondition that the direct change of hardware is not considered, on a multi-process operating system, the processes can compete for the CPU resources, less important processes can obtain more computational power, less important processes can obtain less computational power, and the user experience is reduced.
In order to solve the above problems, the present embodiment provides a method, an apparatus, and an electronic device for resource allocation.
Fig. 1 is a flow chart of a resource allocation method according to a first embodiment of the present invention, and as shown in fig. 1, an application scenario of the present embodiment is a computing resource field.
The method of the embodiment can comprise the following steps:
step 101, obtaining information to be calculated, wherein the information to be calculated comprises data to be calculated and a process identifier.
In this embodiment, the information to be calculated may include information to be calculated sent by the user through the user equipment.
The resource allocation means may present the region in which the information to be calculated is input to the user in response to the clicking operation of the user.
The process identification may include an identification that is user-defined, and may include a name of the process and parameters of the process.
It should be noted that the identification of the process may be used to distinguish the currently performed process from the rest of the processes.
In some specific examples, processes under the current device are divided into X groups as expected, and priority numbering is performed, defined as P [0], P [1], P [2] by priority, until P [ X-1].
By way of example, where there are currently a social process, a video process, and a work software process, the work software process may be set to a higher priority P [0], the social process may be set to a secondary priority P [1], and the video process may be set to a lowest priority P [2], it should be noted that the above examples are merely for illustration of the above embodiments and are not meant to limit the disclosure in any particular way.
It should be noted that the resource allocation apparatus and the process may be configured on a terminal device or a server, and the terminal device may be various electronic devices, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, a wearable device, an augmented reality device, a virtual reality device, and the like.
Alternatively, the clients of the applications installed in different terminal devices are the same or clients of the same type of application based on different operating systems. The specific form of the application client may also be different based on the different terminal platforms, for example, the application client may be a mobile phone client, a PC client, etc.
Step 102, determining a corresponding process according to the process identification.
In this embodiment, the resource allocation device may decode the information to be calculated after receiving the information to be calculated, to obtain decoded data to be calculated and a process identifier.
And then the resource allocation device determines the process corresponding to the process identifier according to the process identifier.
Step 103, sending the data to be calculated to a corresponding process, so that the corresponding process sends the data to be calculated to a corresponding computing resource.
In this embodiment, after determining the corresponding process, the resource allocation device may send the corresponding data to be calculated to the corresponding process.
The corresponding process can determine the corresponding computing resource according to the predetermined corresponding relation, and then send the data to be computed to the computing resource.
In some embodiments, the correspondence may be set based on user customization, or may be set based on the requirement of the computing power resource, which is not limited by the present disclosure.
By way of example, the computing resources may include CPU resources, the computing power of the device may be divided according to the number of CPU cores of the device, into equal numbers of computing power, assuming that the computing power is currently divided into X, the number of computer CPU cores is Y, where X < = Y.
Wherein the first set of calculated values is defined as S [0], the second set is defined as S [1], and so on, the last set is defined as S [ X-1], where S [0] > = S [1] > = S [2] … > = S [ X-1], and S [0] +s1 ] + … +sx-1 ] = Y.
And then different computing forces are caused to correspond to different processes.
According to the method, the device and the system for calculating the data, the information to be calculated is obtained, the information to be calculated comprises the calculation data and the process identification, then the corresponding process is determined according to the process identification, the data to be calculated is sent to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding calculation resource, and the problem that important calculation tasks are difficult to complete operation in time can be avoided due to the fact that the corresponding information to be calculated is sent to the corresponding calculation resource through the process identification, and user experience is improved.
In another embodiment, on the basis of the embodiment of the method shown in fig. 1, before obtaining the information to be calculated, where the information to be calculated includes the data to be calculated and the process identifier (step 101), the method further includes: and responding to the user operation, and displaying the process information and the process identification corresponding to each process to the user.
In this embodiment, the problem that the user cannot determine the corresponding process on the basis of not knowing the process identifier is solved.
The process information and the process identifier corresponding to each process can be displayed to the user in advance, so that the user can conveniently construct the information to be calculated based on the process information and the process identifier corresponding to each process.
In the embodiment, the process information and the process identifier corresponding to each process are displayed to the user, so that the user can conveniently construct the information to be calculated based on the process information and the process identifier corresponding to each process, and the user experience is improved.
In another embodiment, on the basis of the embodiment of the method shown in fig. 1, after sending the data to be calculated to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource (step 103), the method further includes: and sending the calculated data to user equipment corresponding to the user.
In this embodiment, by sending the calculation completion data to the user device corresponding to the user, the user can technically obtain the calculation completion data corresponding to the data to be calculated, and user experience is improved.
In yet another embodiment, based on the method embodiment shown in fig. 1, before sending the data to be calculated to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource (step 103), the method further includes: and establishing a corresponding relation between the process and the computing resource.
In this embodiment, the same process may establish a correspondence with a plurality of computing resources, and the same computing resource may establish a correspondence with a plurality of processes.
In this embodiment, by establishing a correspondence between a process and a computing resource, the process can accurately send data to be computed to the corresponding computing resource, thereby improving computing efficiency.
In this embodiment, the data to be calculated is sent to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource according to the corresponding relationship.
Illustratively, the computing power of the device is divided into equal parts according to the number of CPU cores of the device, assuming that the computing power is currently divided into X parts, the number of computer CPU cores is Y, where X < = Y.
Wherein the first set of values comprises calculated forces defined as S [0], the second set as S [1], and so on, and the last set as S [ X-1], wherein S [0] > = S [1] > = S [2] … > = S [ X-1], and S [0] +s1 ] + … +sx-1 ] = Y.
The process under the current equipment is divided into X groups according to expectations, and priority numbers are carried out, and the priority numbers are defined as P0, P1, P2, … and P X-1, wherein P0 shares S0 computing power, P1 shares S1 computing power, and the P i group shares S i computing power.
The P [ I ] group enjoys the computing power of S [ I ], and the affinity of the AP I setting process provided by the Wi windows system to the CPU is realized. The Wi-windows AP I is SetProcessAff I n ityMask, which contains two parameters, the first parameter being a designated process handle, the second parameter being CPU core I D, where the process handle is all process handles contained in the P [ I ] group, and CPU core I D is all cores I D in S [ I ].
For example, four cores I D of S [0] = {0,1,2,3}, P [0] = {4000,5000} contain two processes I D, 4000 is limited to only allow running in 0,1,2,3 CPUs, 5000 processes are limited to running in 0,1,2,3 CPUs, and the rest processes do not run in the four CPUs, ensuring that the P [0] group of processes share computing power alone.
Fig. 2 is a flowchart of a resource allocation method according to another embodiment of the present invention, as shown in fig. 2, where the method embodiment of fig. 1 further includes steps 501 to 502:
s501, dividing the computing resources to obtain a plurality of divided computing resources;
in this embodiment, the computing resources may be user-defined for partitioning.
S502, encoding the divided multiple computing resources to obtain encoded computing resources.
Illustratively, the computing power is sufficient to ensure that the given process is adequately enjoyed by the computing power required.
Dividing the calculation force of the equipment into a plurality of equal calculation forces according to the number of CPU cores of the equipment, and supposing that the calculation force is divided into X parts currently, the number of CPU cores of the computer is Y, and requiring X < = Y.
Wherein the first set of values comprises calculated forces defined as S [0], the second set as S [1], and so on, and the last set as S [ X-1], wherein S [0] > = S [1] > = S [2] … > = S [ X-1], and S [0] +s1 ] + … +sx-1 ] = Y.
Fig. 3 is a schematic structural diagram of a first embodiment of a resource allocation device according to the present invention, and as shown in fig. 3, the device according to this embodiment may include: an acquisition module 11 and a determination module 12, and a first transmission module 13.
The obtaining module 11 is configured to obtain information to be calculated, where the information to be calculated includes data to be calculated and a process identifier.
A determining module 12, configured to determine a corresponding process according to the process identifier.
The first sending module 13 is configured to send the data to be calculated to a corresponding process, so that the corresponding process sends the data to be calculated to a corresponding computing resource.
In the resource allocation device provided by the embodiment of the invention, the information to be calculated is obtained, wherein the information to be calculated comprises the calculation data and the process identifier, then the corresponding process is determined according to the process identifier, and then the data to be calculated is sent to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding calculation resource.
According to a specific implementation manner of the embodiment of the present invention, the resource allocation device further includes: the display module is used for responding to user operation and displaying the process information and the process identification corresponding to each process to the user before the information to be calculated is acquired and comprises the data to be calculated and the process identification.
According to a specific implementation manner of the embodiment of the present invention, the resource allocation device further includes: the second sending module is used for sending the calculated data to the user equipment corresponding to the user after the data to be calculated is sent to the corresponding process so that the corresponding process sends the data to be calculated to the corresponding calculation resource.
According to a specific implementation manner of the embodiment of the present invention, the resource allocation device further includes: the establishing module is used for establishing a corresponding relation between the process and the computing resource before sending the data to be computed to the corresponding process so that the corresponding process sends the data to be computed to the corresponding computing resource.
According to a specific implementation manner of the embodiment of the present invention, the first sending module includes: the first sending unit is used for sending the data to be calculated to the corresponding process so that the corresponding process sends the data to be calculated to the corresponding computing resource according to the corresponding relation.
According to a specific implementation manner of the embodiment of the present invention, the first sending module further includes: the second sending unit is used for sending the data to be calculated to the corresponding process so that the corresponding process sends the data to be calculated to the corresponding computing resource according to the corresponding relation.
According to a specific implementation manner of the embodiment of the present invention, the building module further includes: the establishing unit is used for establishing a corresponding relation between the encoded computing resource and the process.
Fig. 4 is a schematic structural diagram of an embodiment of an electronic device according to the present invention, where a flow of any of the foregoing method embodiments may be implemented, as shown in fig. 4, where the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged in a space surrounded by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to the respective circuits or devices of the above-described electronic apparatus; the memory 43 is for storing executable program code; the processor 42 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 43 for executing the resource allocation method of any of the foregoing embodiments.
The specific implementation of the above steps by the processor 42 and the further implementation of the steps by the processor 42 by running executable program codes may be referred to the description of the embodiment of fig. 1-4 of the present invention, and will not be repeated here.
The electronic device exists in a variety of forms including, but not limited to:
(1) A mobile communication device: such devices are characterized by mobile communication capabilities and are primarily aimed at providing voice, data communications. Such terminals include: smart phones (e.g., i Phone), multimedia phones, functional phones, low-end phones, etc.
(2) Ultra mobile personal computer device: such devices are in the category of personal computers, having computing and processing functions, and generally also having mobile internet access characteristics. Such terminals include: PDA, md, and UMPC devices, etc., such as ipad.
(3) Portable entertainment device: such devices may display and play multimedia content. The device comprises: audio, video players (e.g., i Pod), palm game players, electronic books, and smart toys and portable car navigation devices.
(4) And (3) a server: the configuration of the server includes a processor, a hard disk, a memory, a system bus, and the like, and the server is similar to a general computer architecture, but is required to provide highly reliable services, and thus has high requirements in terms of processing capacity, stability, reliability, security, scalability, manageability, and the like.
(5) Other electronic devices with data interaction functions.
In a fifth aspect, embodiments of the present invention also provide an application program that is executed to implement the method provided by any of the embodiments of the present invention.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
For convenience of description, the above apparatus is described as being functionally divided into various units/modules, respectively. Of course, the functions of the various elements/modules may be implemented in the same piece or pieces of software and/or hardware when implementing the present invention.
Those skilled in the art will appreciate that the processes implementing all or part of the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, and the program may include the processes of the embodiments of the methods as above when executed. The storage medium may be a magnetic disk, an optical disk, a Read-On-y Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The present invention is not limited to the above embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A method for resource allocation, comprising:
acquiring information to be calculated, wherein the information to be calculated comprises data to be calculated and a process identifier;
determining a corresponding process according to the process identification;
and sending the data to be calculated to a corresponding process, so that the corresponding process sends the data to be calculated to a corresponding computing resource.
2. The resource allocation method according to claim 1, wherein before acquiring the information to be calculated, the method further comprises:
and responding to the user operation, and displaying the process information and the process identification corresponding to each process to the user.
3. The resource allocation method according to claim 2, wherein after sending the data to be calculated to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource, the method further comprises:
and sending the calculation result obtained after the calculation is completed to user equipment corresponding to the user.
4. The resource allocation method according to claim 1, wherein before sending the data to be calculated to the corresponding process, so that the corresponding process sends the data to be calculated to the corresponding computing resource, the method further comprises:
and establishing a corresponding relation between the process and the computing resource.
5. The resource allocation method according to claim 4, wherein transmitting the data to be calculated to the corresponding process so that the corresponding process transmits the data to be calculated to the corresponding computing resource comprises:
and sending the data to be calculated to a corresponding process, so that the corresponding process sends the data to be calculated to a corresponding computing resource according to the corresponding relation.
6. The resource allocation method according to claim 4, further comprising:
dividing the computing resources to obtain a plurality of divided computing resources;
and encoding the plurality of divided computing resources to obtain encoded computing resources.
7. The method of claim 6, wherein associating the process with the computing resource comprises:
and establishing a corresponding relation between the process and the encoded computing resource.
8. A resource allocation apparatus, the apparatus comprising:
the system comprises an acquisition module, a calculation module and a calculation module, wherein the acquisition module is used for acquiring information to be calculated, and the information to be calculated comprises data to be calculated and a process identifier;
the determining module is used for determining a corresponding process according to the process identification;
and the first sending module is used for sending the data to be calculated to the corresponding process so that the corresponding process sends the data to be calculated to the corresponding computing resource.
9. The apparatus of claim 8, wherein the apparatus further comprises:
the display module is used for responding to user operation and displaying the process information and the process identification corresponding to each process to the user before the information to be calculated is acquired and comprises the data to be calculated and the process identification.
10. The apparatus of claim 8, wherein the apparatus further comprises:
the second sending module is used for sending the calculated data to the user equipment corresponding to the user after the data to be calculated is sent to the corresponding process so that the corresponding process sends the data to be calculated to the corresponding calculation resource.
CN202211520207.2A 2022-11-30 2022-11-30 Resource allocation method and device and electronic equipment Pending CN116107738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211520207.2A CN116107738A (en) 2022-11-30 2022-11-30 Resource allocation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211520207.2A CN116107738A (en) 2022-11-30 2022-11-30 Resource allocation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116107738A true CN116107738A (en) 2023-05-12

Family

ID=86255139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211520207.2A Pending CN116107738A (en) 2022-11-30 2022-11-30 Resource allocation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116107738A (en)

Similar Documents

Publication Publication Date Title
US11336583B2 (en) Background processes in update load balancers of an auto scaling group
CN102413150B (en) Server and virtual desktop control method and virtual desktop control system
CN104395889A (en) Application enhancement using edge data center
US20160323188A1 (en) Managing state for updates to load balancers of an auto scaling group
CN113489805B (en) Butt joint method, device, equipment and storage medium of cloud desktop system
CN113190778A (en) Business data pushing method, system, computer equipment and computer storage medium
CN111259019A (en) Resource allocation method, device, equipment and storage medium
WO2021051881A1 (en) Vpp cluster management method and device, computer device and storage medium
CN116431282A (en) Cloud virtual host server management method, device, equipment and storage medium
EP3387816B1 (en) Connecting and retrieving security tokens based on context
CN114139135A (en) Equipment login management method, device and storage medium
CN103220347A (en) CRP (compression reflection protocol) cloud interaction method
CN116107738A (en) Resource allocation method and device and electronic equipment
CN114595051B (en) Method and system for enhancing cloud computing cooperative data processing and electronic equipment
CN113037848B (en) File uploading method and system
CN115396500A (en) Service platform switching method and system based on private network and electronic equipment
CN113946816A (en) Cloud service-based authentication method and device, electronic equipment and storage medium
WO2022188509A1 (en) Method and apparatus for task processing in distributed environment, and electronic device and medium
CN111625375A (en) Account reservation method and device, storage medium and electronic equipment
US20170171331A1 (en) Method and electronic device for pushing videos between different clients
CN116257754A (en) Data processing method and device
US11416635B1 (en) Pseudonymous browsing mode
CN115878601A (en) Data auditing method, system and device and electronic equipment
CN116070017A (en) Data recommendation method and device and electronic equipment
CN116050378A (en) Contrast method and device and electronic equipment

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