CN117785437A - Process management method and device, electronic equipment and storage medium - Google Patents

Process management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117785437A
CN117785437A CN202311429692.7A CN202311429692A CN117785437A CN 117785437 A CN117785437 A CN 117785437A CN 202311429692 A CN202311429692 A CN 202311429692A CN 117785437 A CN117785437 A CN 117785437A
Authority
CN
China
Prior art keywords
association
determining
history
node
processes
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
CN202311429692.7A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202311429692.7A priority Critical patent/CN117785437A/en
Publication of CN117785437A publication Critical patent/CN117785437A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a process management method, a process management device, electronic equipment and a computer readable storage medium; the method comprises the following steps: monitoring a first process operated by the electronic equipment; obtaining an association relation table of a process; determining at least one second process with an association relationship with the first process in a plurality of processes operated by the electronic equipment based on the node connection relationship of the association relationship table of the processes; determining the association degree of each second process and the first process based on the association relation table; and carrying out resource allocation on each second process based on the association degree.

Description

Process management method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to process management technologies, and in particular, to a process management method, device, electronic device, and storage medium.
Background
At present, in setting up energy saving and acceleration of an electronic device, energy saving processing is generally performed by automatically turning off a screen, forcibly limiting the processing speed of a processor, releasing processor resources, and the like. However, this method directly limits all programs of the electronic device, and cannot guarantee basic functions, so that user experience is poor.
Disclosure of Invention
The embodiment of the application provides a process management method, a process management device, electronic equipment and a computer readable storage medium.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a process management method, which comprises the following steps:
monitoring a first process operated by the electronic equipment;
obtaining an association relation table of a process;
determining at least one second process with an association relationship with the first process in a plurality of processes operated by the electronic equipment based on the node connection relationship of the association relationship table of the processes;
determining the association degree of each second process and the first process based on the association relation table;
and carrying out resource allocation on each second process based on the association degree.
In the above solution, before the monitoring of the first process of the electronic device operation, the method further includes:
acquiring a plurality of history processes operated by the electronic equipment;
determining a first history process from the plurality of history processes;
acquiring operation information of each history process;
according to the operation information, determining second history processes with association relation with the first history processes, and determining association degree between each second history process and the first history process;
And constructing the association relation table according to the association relation and the association degree.
In the above scheme, the determining, according to the operation information, the second history process having an association relationship with the first history process includes:
determining the probability of simultaneous operation of each history process and the first history process according to the operation time information of each history process;
determining a history process of which the probability reaches a probability threshold as the second history process;
the determining the association degree between each second history process and the corresponding first history process comprises the following steps:
and determining the association degree between each first history process and the corresponding history first process according to the probability corresponding to each first history process, wherein the association degree is positively correlated with the probability.
In the above solution, the running information includes process type information and function attribute information, and the determining, according to the running information, a second history process having an association relationship with the first history process includes:
according to the type information of the first history process, determining the history process which is the same as the type to which the first history process belongs;
taking the determined history process as the second history process;
The determining the association degree between each second history process and the first history process comprises the following steps:
and determining the association degree between each second history process and the first history process according to the function attribute information of each second history process.
In the above solution, the determining, based on the node connection relationship of the association relationship table of the processes, at least one second process having an association relationship with the first process among the multiple processes running on the electronic device includes:
determining a first node corresponding to the first process in the association relation table;
determining at least one second node with an association relationship with the first node according to the connection relationship of the nodes in the association relationship table;
and determining the process corresponding to the second node as a second process.
In the above solution, the determining, according to the connection relationship of the nodes in the association relationship table, at least one second node having an association relationship with the first node includes:
determining a first father node and at least one first child node of the first node according to the connection relation of the nodes in the association relation table, wherein the father node corresponds to the category of the first process;
Determining a target child node other than the first node among a plurality of child nodes of the first parent node;
and respectively determining the first child node and the target child node as the second node.
In the above solution, the determining, based on the association table, the association degree between each second process and the first process includes:
acquiring weight information of edges between the first child nodes and the first node and acquiring weight information of edges between the target child nodes and the first father node based on the association relation table;
and determining the association degree of each second process and the first process according to the weight information.
The embodiment of the application provides a process management device, which comprises:
the monitoring module is used for monitoring a first process of the operation of the electronic equipment;
the obtaining module is used for obtaining the association relation table of the process;
the first determining module is used for determining at least one second process which has an association relationship with the first process in a plurality of processes operated by the electronic equipment based on the node connection relationship of the association relationship table of the processes;
the second determining module is used for determining the association degree of each second process and the first process based on the association relation table;
And the resource allocation module is used for allocating resources to each second process based on the association degree.
An embodiment of the present application provides an electronic device, including:
a memory for storing executable instructions;
and the processor is used for realizing the process management method provided by the embodiment of the application when executing the executable instructions stored in the memory.
The embodiment of the application provides a computer readable storage medium, which stores executable instructions for implementing the process management method provided by the embodiment of the application when the executable instructions are executed by a processor.
Drawings
Fig. 1 is a schematic diagram of an alternative structure of an electronic device 100 according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of an alternative process management method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of an alternative process management method according to an embodiment of the present application;
FIG. 4 is an alternative refinement flow diagram of step 203 provided by an embodiment of the present application;
fig. 5 is an alternative structural schematic diagram of the association table provided in the embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail with reference to the accompanying drawings, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
In the following description, the terms "first", "second", "third" and the like are merely used to distinguish similar objects and do not represent a specific ordering of the objects, it being understood that the "first", "second", "third" may be interchanged with a specific order or sequence, as permitted, to enable embodiments of the application described herein to be practiced otherwise than as illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the present application.
The embodiment of the application provides a process management method, a device, electronic equipment and a computer readable storage medium, which can save energy of a process level based on an association relation and an association degree between processes, and ensure the operation of basic functions of a system while saving energy.
First, an electronic device for implementing the above process management method provided in the embodiment of the present application is described. Referring to fig. 1, fig. 1 is an optional schematic structural diagram of an electronic device 100 provided in an embodiment of the present application, and in practical application, the electronic device 100 may be implemented as a terminal or a server. The terminal may be, but is not limited to, a notebook computer, a tablet computer, a desktop computer, a smart phone, a dedicated messaging device, a portable game device, a smart speaker, a smart watch, etc. 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, content delivery network (CDN, content Delivery Network) services, basic cloud computing services such as big data and artificial intelligence platforms, and the like. The electronic device 100 shown in fig. 1 includes: at least one processor 101, a memory 105, at least one network interface 102, and a user interface 103. The various components in the electronic device 100 are coupled together by a bus system 104. It is understood that the bus system 104 is used to enable connected communications between these components. The bus system 104 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus system 104 in fig. 1.
The processor 101 may be an integrated circuit chip with signal processing capabilities such as a general purpose processor, which may be a microprocessor or any conventional processor, or the like, a digital signal processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
The user interface 103 includes one or more output devices 1031, including one or more speakers and/or one or more visual displays, that enable presentation of media content. The user interface 103 also includes one or more input devices 1032 including user interface elements that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons, and controls.
The memory 105 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard drives, optical drives, and the like. Memory 105 optionally includes one or more storage devices physically remote from processor 101.
Memory 105 includes volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a random access Memory (RAM, random Access Memory). The memory 105 described in the embodiments herein is intended to comprise any suitable type of memory.
In some embodiments, memory 105 is capable of storing data to support various operations, examples of which include programs, modules and data structures, or subsets or supersets thereof, in which memory 105 stores an operating system 1051, a network communication module 1052, a presentation module 1053, an input processing module 1054, and a process management device 1055; in particular, the method comprises the steps of,
an operating system 1051 including system programs, e.g., framework, core library, driver, etc., for handling various basic system services and performing hardware-related tasks, for implementing various basic services and handling hardware-based tasks;
network communication module 1052 for reaching other computing devices via one or more (wired or wireless) network interfaces 102, exemplary network interfaces 102 include: bluetooth, wireless compatibility authentication (WiFi), and universal serial bus (USB, universal Serial Bus), etc.;
a presentation module 1053 for enabling presentation of information (e.g., user interfaces for operating peripheral devices and displaying content and information) via one or more output devices 1031 (e.g., display screens, speakers, etc.) associated with the user interface 103;
An input processing module 1054 for detecting one or more user inputs or interactions from one of the one or more input devices 1032 and translating the detected inputs or interactions.
In some embodiments, the process management apparatus provided in the embodiments of the present application may be implemented in a software manner, and fig. 1 shows a process management apparatus 1055 stored in a memory 105, which may be software in the form of a program and a plug-in, and includes the following software modules: the monitoring module 10551, the obtaining module 10552, the first determining module 10553 and the second determining module 10554 are logical, and thus may be arbitrarily combined or further split according to the implemented functions. The functions of the respective modules will be described hereinafter.
In other embodiments, the process management apparatus provided in the embodiments of the present application may be implemented in hardware, and by way of example, the process management apparatus provided in the embodiments of the present application may be a processor in the form of a hardware decoding processor that is programmed to perform the process management method provided in the embodiments of the present application, for example, the processor in the form of a hardware decoding processor may employ one or more application specific integrated circuits (ASIC, application Specific Integrated Circuit), DSP, programmable logic device (PLD, programmable Logic Device), complex programmable logic device (CPLD, complex Programmable Logic Device), field programmable gate array (FPGA, field-Programmable Gate Array), or other electronic component.
The process management method provided by the embodiment of the present application will be described below in connection with exemplary applications and implementations of the terminal provided by the embodiment of the present application.
Referring to fig. 2, fig. 2 is a schematic flowchart of an alternative process management method according to an embodiment of the present application, and will be described with reference to the steps shown in fig. 2.
Step 201, monitoring a first process operated by the electronic equipment;
step 202, obtaining an association relation table of a process;
step 203, determining at least one second process having an association relationship with the first process in the plurality of processes operated by the electronic device based on the node connection relationship of the association relationship table of the processes;
step 204, determining the association degree of each second process and the first process based on the association relation table;
and step 205, performing resource allocation on each second process based on the association degree.
Here, the first process is a core process of the electronic device. Specifically, the first process may be, but is not limited to, an application process running in the foreground in the current scenario, a system process supporting system running, and the like. In actual implementation, the running information of all the processes running on the electronic device can be monitored. Here, the process may be an application process corresponding to an interface window, a task process without an interface window, or the like. The run information is used to determine whether the process is a core process. For example, the run information can be used to determine whether a process has a corresponding interface window or can be used to determine whether it is a system process that supports system running. In an embodiment, the first process may also be a user-specified process. Specifically, the first process may be determined in response to a corresponding trigger operation. For example, the trigger operation may be a selection operation for a process, and the process selected by the user is determined as the first process based on the selection operation by the user. In an embodiment, the triggering operation may also be a usage operation of the application or the system by a user, and the first process is determined according to a process required to run by the usage operation.
In the embodiment of the application, after the first process operated by the electronic device is monitored, the association relation table of the process is obtained. Here, the number of the first processes monitored may be one or more. The association relation table at least comprises association relations among processes and association degrees among the processes with the association relations. In the embodiment of the application, the association relation table is a plurality of nodes, each node corresponds to one process or corresponds to one process type, and the association relation between the nodes can be represented.
In actual implementation, at least one second process which has an association relationship with the first process in a plurality of processes operated by the electronic equipment is determined based on the node connection relationship of the association relationship table of the processes. And then, based on the association relation table, determining the association degree of each second process and the first process. It should be understood that the association relationship and the association degree of the process are both added in the association relationship table in advance. After the first process is monitored, corresponding association relation determination and association degree determination can be directly performed according to the association relation table.
Then, after obtaining the association degree of at least one second process having an association relationship with the first process and the first process, performing resource allocation on each second process based on the association degree. Specifically, different resource allocations may be made according to different degrees of association. For example, for a second process of a first degree of association, then resources of a first size are allocated; and for a second process of a second degree of association, allocating resources of a second size. And if the first association degree is larger than the second association degree, the association between the second process corresponding to the first association degree and the first process is represented to be tighter. In the embodiment of the application, the more closely related, the more resources are allocated. That is, here, the first size is larger than the second size. It should be understood that the resources herein may be, but are not limited to, computing resources, network resources, and the like. Wherein allocating more computing resources may be allocating more processor time. Allocating more network resources may be allocating more bandwidth, etc. In addition, a resource restriction process is performed for a process that does not have an association relationship with the first process. In an embodiment, the corresponding resource limitation may be performed by directly closing a process that does not have an association with the first process, so as to avoid the process that does not have an association with the first process from using the process system resource, so as to perform system energy saving.
According to the method and the device, through monitoring the first process operated by the electronic equipment, based on the node connection relation of the association relation table of the processes, at least one second process with the association relation with the first process in a plurality of processes operated by the electronic equipment is determined, based on the association relation table, the association degree of each second process with the first process is determined, further, resource limitation processing is carried out on the processes which do not have the association relation with the first process, and resource allocation is carried out on each second process based on the association degree, so that energy conservation of process levels can be carried out according to the association relation and the association degree between the processes, operation of basic functions of a system is guaranteed while energy conservation is carried out, and user experience is guaranteed while energy conservation is carried out. According to the embodiment of the application, when the electronic equipment is required to perform process-level energy saving, safety, acceleration and other settings, under the condition that the similar process needs instantaneous resources such as a CPU (Central processing Unit), a memory and the like, the related process can directly acquire the resources and can be pulled up without long waiting period; when the power consumption needs to be controlled, the remote process can be directly identified so as to carry out resource limiting processing, and unnecessary power consumption is avoided.
In some embodiments, referring to fig. 3, fig. 3 is an optional flowchart of a process management method provided in an embodiment of the present application. Before the monitoring of the first process running on the electronic device, the method further includes:
Step 301, acquiring a plurality of history processes operated by the electronic equipment;
step 302, determining a first history process from the plurality of history processes;
step 303, obtaining operation information of each history process;
step 304, determining second history processes with association relation with the first history process according to the operation information, and determining association degree between each second history process and the first history process;
and 305, constructing the association relation table according to the association relation and the association degree.
Here, the history process is a process that the electronic device has run before the current time. In actual implementation, multiple historical processes of the electronic device running during the historical time period may be obtained. Here, the historical time period may be selected from a time period that is closer to the current time and has a higher frequency of use of the electronic device. After a plurality of history processes are obtained, a first history process is determined from the plurality of history processes. It should be appreciated that the first history process herein corresponds to the first process of the above-described embodiments of the present application. If the first process is a core process, the first history process is also a core process in the history run.
In actual implementation, running information of each history process is obtained. Here, the operation information includes operation time information. In one embodiment, the running information further includes type information and functional attribute information of the process. And determining second history processes with association relation of the first history processes according to the operation information, and determining association degree between each second history process and the first history process. Here, the types of the association relationship may be plural. For example, if two processes run at the same time, they can be considered to have an association relationship. Alternatively, processes have interdependent computing relationships between them. Alternatively, the processes may belong to the same or same class of applications, etc. For definition of association relationship, those skilled in the art may set based on specific requirements, and the embodiment of the present application is not specifically limited. In addition, the degree of association between processes may be determined by the running information. For example, if the frequency at which two processes run at the same time reaches a frequency threshold, a greater degree of association is determined for the two processes. After the association relation and the association degree are obtained, an association relation table is constructed.
According to the method and the device for processing the electronic equipment, the association relation and the association degree between the processes are determined by obtaining the history processes and the corresponding operation information, so that the association relation table is constructed, the association relation table of the processes of the electronic equipment can be constructed in a targeted mode, and therefore when resource allocation processing is carried out, relevant processing can be directly carried out based on the association relation table constructed in advance, and processing time is saved.
In some embodiments, in step 304, the determining, according to the running information, a second history process having an association relationship with the first history process includes: determining the probability of simultaneous operation of each history process and the first history process according to the operation time information of each history process; determining a history process of which the probability reaches a probability threshold as the second history process; in step 304, the determining the association degree between each second history process and the corresponding first history process includes: and determining the association degree between each first history process and the corresponding history first process according to the probability corresponding to each first history process, wherein the association degree is positively correlated with the probability.
Here, the operation information includes operation time information. In actual implementation, according to the running time information of each history process, the total running time of each history process and the running time of the corresponding history process and the first history process are obtained. The probability that each history process runs simultaneously with the first history process is determined based on the total time that the history process runs and the time that the process runs simultaneously with other processes. The history process for which the probability reaches the probability threshold is determined as the second history process. Then, according to the probability corresponding to each first history process, the association degree between each first history process and the corresponding history first process can be determined. Here, the degree of association is positively correlated with the probability. That is, the history process having a higher probability of running simultaneously with the first history process is set to have a higher degree of association with the first process.
In an embodiment, the probability that each history process runs simultaneously with the first history process may also be determined according to the total running times of each history process and the times that each history process runs simultaneously with the first history process. For example, if the total number of runs of the target history process is 10 and the number of simultaneous runs with the first history process is 8, the corresponding probability is 80%. In addition, corresponding probability determination can be performed according to the operation of a plurality of users on each history process. By way of example, if there are 10 users, 8 of which were running software a and B at the same time, then the probability of software a and B is 80%.
According to the method and the device for determining the association degree of the history processes, the probability that each history process runs simultaneously with the first history process is determined based on the running time information of the history processes, and the association relation and the corresponding association degree between the history processes and the first process are determined based on the probability, so that the association relation between the history processes with high probability of running simultaneously with the first history process can be determined, a second process which runs more frequently simultaneously with the first process can be determined based on the association relation table constructed by the method and the device, and higher resources can be allocated to the second process.
In some embodiments, the running information includes type information and function attribute information of the process, and in step 304, determining, according to the running information, a second history process having an association relationship with the first history process includes: according to the type information of the first history process, determining the history process which is the same as the type to which the first history process belongs; taking the determined history process as the second history process; in step 304, the determining the association degree between each second history process and the first history process includes: and determining the association degree between each second history process and the first history process according to the function attribute information of each second history process.
Here, the running information includes type information and function attribute information of the process. The type information to which the first history process belongs may characterize the type of application to which the process belongs. Here, the types of applications include, but are not limited to: office, meeting, communication, gaming, entertainment, shopping, video, music, and the like. Illustratively, for this application of WeChat, then its corresponding types include, but are not limited to: office, meeting, communication, etc. In actual implementation, the history process of the same type as the first history process belongs to is determined as the first history process. Here, the same type may belong to the same application, for example, all belong to a document editing application, for example, a word application. Or two different applications of the same application type, e.g. both belonging to office applications, and one belonging to text editing applications, e.g. word applications, and one belonging to graphic editing applications, e.g. visio applications.
And then, determining the association degree between each second history process and the first history process according to the function attribute information of the first history process. Here, the functional attribute information is used to characterize functional association between the process and the first history process. For example, also belonging to office software, the functional association between word and visio is higher, while the functional association between visio and Excel is lower. The degree of association with the first history process is determined for the second history process by the function attribute information. The second history process with higher functional relevance is determined to be of a greater relevance degree.
The embodiment of the application also determines the corresponding association relation and the association degree according to the type of the process and the function attribute information, and can determine the second history process and the corresponding association degree by combining the functional relativity, so that the association relation table constructed based on the second history process and the corresponding association degree can characterize the functional association of the process.
In an embodiment, after the first process is monitored, the identification of the operation scene of the electronic device may be further performed based on the first process. Here, the scene mode may be, but is not limited to, "study", "office", "game", "audio-visual", "conference", "creation", and the like. Specifically, the identification of the corresponding scene may be performed based on the type information of each first process. For example, if the type information characterizes the most processes of the process types corresponding to the target scene mode among all the first processes, the current scene is identified as the target scene mode. Then, based on the target scene mode, the relevant application processes in the mode are protected, namely, the limitation of resources on the processes is avoided. And the other processes are subjected to resource limitation processing. Specifically, the limiting process may be, for example, operations such as CPU priority reduction, switching from a CPU large core to a CPU small core, CPU down-conversion, network bandwidth limitation, irrelevant area screen brightness adjustment, and the like.
In an embodiment of a practical scenario, various operational information may be collected, including but not limited to: whether window information, window state information, window sequence information, switching history information, belonging to an application type, application simultaneous running time information, function attribute information and the like exist. And then constructing the association relation and the association degree between different processes based on the association relation and the association degree. Wherein, whether window information exists or not, namely whether the process has an application interface or not. The window state information indicates whether the window of the process is in a maximized state, a minimized state, a windowed state, or the like. The window sequence information can represent the sequence in which the windows are displayed in the display interface of the electronic device, for example, in a position closest to the screen, in a position superimposed in between, in a plurality of windowed processes. It will be appreciated that it is more important to characterize the corresponding process at the position closest to the screen, and that a higher degree of association is assigned if there is an association with the first history process. The handover history information can represent hierarchical handover information of the window. Illustratively, when window a is initially in the uppermost (first) position, but since the actual scene requires switching the other window B or C to the uppermost (first) position, the position of window a changes to the position of the lower window (nth), each window records a new switching history every time window is switched. Here, the handover history information may be abstracted into values (e.g., 1,2,3,4,5,6, …). By collecting more kinds of operation information, the constructed association relation table can be more accurate.
In an embodiment, various running information of the history processes can be collected, and association relation and association degree between each history process and the first history process can be determined. And then, taking the running information of each history process as a sample input, taking the association relation and the association degree between each history process and the first history process as a sample output, constructing a training sample, and training an association relation model. And constructing an association relation table based on the association relation model obtained through training so as to enable the association relation table to cover more process data and enable the application of the association relation table to be wider.
In actual implementation, the process can be enumerated through the system function, then the process is allocated with resources through the orthogonal table, the system power consumption value and the system response time after the resources are allocated are obtained, and the accuracy of the training result of the association relation table is verified based on the system power consumption value and the system response time. Specifically, taking 35 processes as an example, the number of required calculations is only 36, and the orthogonality is denoted as L 36 (2 35 ). Respectively carrying out 36 corresponding process resource allocation to obtain application response time and corresponding process resource allocationThe system power consumption is used as a regression judgment value. For the example of the combinations in 36 described above, the system power consumption value GH1 and the system response time XY1 in each combination may be set and acquired one by one, for example. The set of data for which GH1 is the smallest for which XY1 is below the threshold (e.g., 100 ms) when Process A is open is acquired. And then, performing resource allocation of other processes according to the association relation table, and obtaining a system power consumption value GH2 and response time XY2. When XY1 is GH1 >When=xy 2×gh2, the association table is considered to be accurate, and no parameter adjustment is required. Otherwise, the parameter adjustment is performed for further training to update the association relation table. The resource allocation of the process is carried out through the orthogonal table, so that the number of tests can be greatly reduced, and the result which is infinitely close to the optimal solution can be obtained.
In some embodiments, referring to fig. 4, fig. 4 is an optionally refined flow diagram of step 203 provided in an embodiment of the present application, step 203 comprising:
step 2031, determining a first node corresponding to the first process in the association table;
step 2032, determining at least one second node having an association relationship with the first node according to the connection relationship of the nodes in the association table;
step 2033, determining the process corresponding to the second node as the second process.
In actual implementation, the association table includes a plurality of nodes. Each node corresponds to a process, or to a process type. Here, a first node associated with a first process in an association table is determined. And then determining at least one second node according to the connection relation of the nodes in the association relation table, and determining the process corresponding to the second node as a second process.
In an embodiment, the association table may be in the form of a knowledge graph. Illustratively, referring to fig. 5, fig. 5 is an optional structural schematic diagram of an association table provided in an embodiment of the present application. Here, the association table is presented by a knowledge graph. Wherein each node corresponds to a process. Illustratively, the node 501 corresponds to an input method process, and the node 502 corresponds to a WeChat process. In the knowledge graph of the embodiment of the application, nodes of the same process type are attributed to the same father node. Illustratively, node 501 and node 504 are both attributed to parent node 503. Here, the node 503 indicates that the type of the process is an office type. And the processes corresponding to node 501 and node 504 are all of the office type. The weight of the edge of two nodes with connection relation represents the association degree between corresponding processes. Illustratively, the weight between node 501 and node 502 is 5, which characterizes the corresponding degree of association as 5. And the weight between node 501 and node 503 is 8. Here, the larger the weight value, the higher the degree of association is characterized.
In the embodiment of the application, the second process with the association relation with the first process is determined through the connection relation of each node in the association relation table, so that the determination of the second process can be intuitively and rapidly performed.
In some embodiments, the determining, according to the connection relationship of the nodes in the association relationship table, at least one second node having an association relationship with the first node includes: determining a first father node and at least one first child node of the first node according to the connection relation of the nodes in the association relation table, wherein the father node corresponds to the category of the first process; determining a target child node other than the first node among a plurality of child nodes of the first parent node; and respectively determining the first child node and the target child node as the second node.
In actual implementation, the first father node and at least one first child node in the first stage can be determined according to the connection relation of the nodes in the association relation table. It should be understood that the first parent node is herein a parent node of the first node and the first child node is a child node of the first node. In actual implementation, the first parent node corresponds to a class of the first process. Here, referring to fig. 5, if the first process includes a word process, the corresponding first node is node 504. The first parent node of the first node 504 is node 503. At least one child node of the first node 504 includes a node 5041 and a node 5042, and the corresponding processes are processes supporting word operation. In actual implementation, each first child node of the first node 504 is determined to be a second node. Further, a target child node other than the first node among the plurality of child nodes of the first parent node is determined as a second node. Illustratively, the target child node in FIG. 5 includes node 501, node 505, and node 508.
In the embodiment of the application, the first child node having a direct connection relationship with the first node in the association relationship table is used as the second node, in addition, the target child node having the same father node as the first node is also determined as the second node, and the process having a direct association relationship with the first process and the process having an indirect association relationship with the first process through the same application type can be determined as the second process, so that the second process is obtained more comprehensively, and therefore, resource allocation can be performed more accurately, system resources are saved to a greater extent, and power consumption is reduced.
In some embodiments, the determining, based on the association table, the association degree of each second process with the first process includes: acquiring weight information of edges between the first child nodes and the first node and acquiring weight information of edges between the target child nodes and the first father node based on the association relation table; and determining the association degree of each second process and the first process according to the weight information.
In actual implementation, based on the association relation table, the weight information of the edges corresponding to the second nodes is obtained. Specifically, weight information of edges between each first child node and the first node and weight information of edges between each target child node and the first parent node are obtained. And determining the association degree of each second process and the first process according to the weight information. Illustratively, referring to FIG. 5, the first child node for the first node 504 includes node 5041 and node 5042. Wherein the weight information of the edge between the node 5041 and the first node 504 is a weight value 8, and the weight information of the edge between the node 5042 and the first node 504 is a weight value 9. The weight information of the edge between the target child node 501 and the first parent node 503 is a weight value of 8. In the embodiment of the application, the weight information can be directly determined as the corresponding association degree. In an embodiment, the determining of the degree of association of the different conversion mechanisms is further performed based on the weight information according to the second nodes of different types. For example, for the first child node, the weight information may be converted into a corresponding degree of association based on the first conversion mechanism. And for the target child node, converting the weight information into corresponding association degrees based on a second conversion mechanism. The first conversion mechanism and the second conversion mechanism may be set based on the system requirements in the actual scenario, which is not specifically limited herein. According to the method and the device for determining the association degree, corresponding association degree is determined directly according to the weight information of the edges between the nodes in the association relation table, and the method and the device are fast and convenient.
Continuing with the description below of an exemplary architecture of the process management device 1055 implemented as a software module provided by embodiments of the present application, in some embodiments, as shown in fig. 1, the software modules stored in the process management device 1055 of the memory 105 may include:
a monitoring module 10551 for monitoring a first process of the electronic device operation;
an obtaining module 10552, configured to obtain an association table of the process;
a first determining module 10553, configured to determine, based on a node connection relationship of the association relationship table of the processes, at least one second process having an association relationship with the first process among a plurality of processes running on the electronic device;
a second determining module 10554, configured to determine, based on the association table, a degree of association between each second process and the first process;
the resource allocation module 10555 is configured to allocate resources to each second process based on the association degree.
In some embodiments, before the monitoring the first process run by the electronic device, the apparatus further includes: the construction module is used for acquiring a plurality of history processes of the operation of the electronic equipment; determining a first history process from the plurality of history processes; acquiring operation information of each history process; according to the operation information, determining second history processes with association relation with the first history processes, and determining association degree between each second history process and the first history process; and constructing the association relation table according to the association relation and the association degree.
In some embodiments, the building module is further configured to determine, according to the runtime information of each history process, a probability that each history process runs simultaneously with the first history process; determining a history process of which the probability reaches a probability threshold as the second history process; and determining the association degree between each first history process and the corresponding history first process according to the probability corresponding to each first history process, wherein the association degree is positively correlated with the probability.
In some embodiments, the running information includes process type information and function attribute information, and the building module is further configured to determine, according to the type information to which the first history process belongs, a history process that is the same as the type to which the first history process belongs; taking the determined history process as the second history process; and determining the association degree between each second history process and the first history process according to the function attribute information of each second history process.
In some embodiments, the first determining module 10553 is further configured to determine a first node corresponding to the first process in the association table; determining at least one second node with an association relationship with the first node according to the connection relationship of the nodes in the association relationship table; and determining the process corresponding to the second node as a second process.
In some embodiments, a first determining module 10553 is configured to determine, according to a connection relationship of nodes in the association relationship table, a first parent node and at least one first child node of the first node, where the parent node corresponds to a class of the first process; determining a target child node other than the first node among a plurality of child nodes of the first parent node; and respectively determining the first child node and the target child node as the second node.
In some embodiments, the second determining module 10554 is configured to obtain weight information of edges between the first child node and the first node and obtain weight information of edges between the target child node and the first parent node based on the association table; and determining the association degree of each second process and the first process according to the weight information.
It should be noted that, the description of the apparatus in the embodiment of the present application is similar to the description of the embodiment of the method described above, and has similar beneficial effects as the embodiment of the method, so that a detailed description is omitted.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the process management method described in the embodiment of the present application.
The present embodiments provide a computer readable storage medium storing executable instructions that, when executed by a processor, cause the processor to perform the process management method provided by the embodiments of the present application.
In some embodiments, the computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; but may be a variety of devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, the executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a hypertext markup language (HTML, hyperTextMarkupLanguage) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or, alternatively, distributed across multiple sites and interconnected by a communication network.
In summary, according to the embodiment of the present application, energy saving at a process level can be performed based on the association relationship and the association degree between processes, and the operation of the basic functions of the system is ensured while energy saving is performed.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and scope of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A process management method, comprising:
monitoring a first process operated by the electronic equipment;
obtaining an association relation table of a process;
determining at least one second process with an association relationship with the first process in a plurality of processes operated by the electronic equipment based on the node connection relationship of the association relationship table of the processes;
determining the association degree of each second process and the first process based on the association relation table;
and carrying out resource allocation on each second process based on the association degree.
2. The method of claim 1, the method further comprising, prior to the monitoring the first process run by the electronic device:
acquiring a plurality of history processes operated by the electronic equipment;
determining a first history process from the plurality of history processes;
acquiring operation information of each history process;
according to the operation information, determining second history processes with association relation with the first history processes, and determining association degree between each second history process and the first history process;
and constructing the association relation table according to the association relation and the association degree.
3. The method of claim 2, wherein determining, according to the running information, a second history process having an association relationship with the first history process, comprises:
determining the probability of simultaneous operation of each history process and the first history process according to the operation time information of each history process;
determining a history process of which the probability reaches a probability threshold as the second history process;
the determining the association degree between each second history process and the corresponding first history process comprises the following steps:
and determining the association degree between each first history process and the corresponding history first process according to the probability corresponding to each first history process, wherein the association degree is positively correlated with the probability.
4. The method of claim 2, wherein the running information includes type information and function attribute information of a process, and the determining, according to the running information, a second history process having an association relationship with the first history process includes:
according to the type information of the first history process, determining the history process which is the same as the type to which the first history process belongs;
taking the determined history process as the second history process;
the determining the association degree between each second history process and the first history process comprises the following steps:
and determining the association degree between each second history process and the first history process according to the function attribute information of each second history process.
5. The method of claim 1, wherein the determining, based on the node connection relationship of the association relationship table of the processes, at least one second process having an association relationship with the first process among the plurality of processes operated by the electronic device includes:
determining a first node corresponding to the first process in the association relation table;
determining at least one second node with an association relationship with the first node according to the connection relationship of the nodes in the association relationship table;
And determining the process corresponding to the second node as a second process.
6. The method of claim 5, wherein determining at least one second node having an association with the first node according to the connection relationship of the nodes in the association table, comprises:
determining a first father node and at least one first child node of the first node according to the connection relation of the nodes in the association relation table, wherein the father node corresponds to the category of the first process;
determining a target child node other than the first node among a plurality of child nodes of the first parent node;
and respectively determining the first child node and the target child node as the second node.
7. The method of claim 6, wherein determining the association degree of each second process with the first process based on the association relation table comprises:
acquiring weight information of edges between the first child nodes and the first node and acquiring weight information of edges between the target child nodes and the first father node based on the association relation table;
and determining the association degree of each second process and the first process according to the weight information.
8. A process management apparatus comprising:
the monitoring module is used for monitoring a first process of the operation of the electronic equipment;
the obtaining module is used for obtaining the association relation table of the process;
the first determining module is used for determining at least one second process which has an association relationship with the first process in a plurality of processes operated by the electronic equipment based on the node connection relationship of the association relationship table of the processes;
the second determining module is used for determining the association degree of each second process and the first process based on the association relation table;
and the resource allocation module is used for allocating resources to each second process based on the association degree.
9. An electronic device, comprising:
a memory for storing executable instructions;
a processor for implementing the process management method according to any one of claims 1 to 7 when executing executable instructions stored in said memory.
10. A computer readable storage medium storing executable instructions for implementing the process management method of any one of claims 1 to 7 when executed by a processor.
CN202311429692.7A 2023-10-31 2023-10-31 Process management method and device, electronic equipment and storage medium Pending CN117785437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311429692.7A CN117785437A (en) 2023-10-31 2023-10-31 Process management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311429692.7A CN117785437A (en) 2023-10-31 2023-10-31 Process management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117785437A true CN117785437A (en) 2024-03-29

Family

ID=90382086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311429692.7A Pending CN117785437A (en) 2023-10-31 2023-10-31 Process management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117785437A (en)

Similar Documents

Publication Publication Date Title
US20190188012A1 (en) Method, device, terminal and storage medium for processing application
DE102016125848A1 (en) Container application with dynamic subpack loader
CN108304201B (en) Object updating method, device and equipment
US20180101371A1 (en) Deployment manager
WO2018127063A1 (en) Application data processing method and apparatus, and storage medium
US20180101364A1 (en) Designer tool for managing cloud computing services
CN111314141A (en) Route updating method and device
CN112199093B (en) Resource checking method, device, equipment and computer readable storage medium
CN109324857B (en) User guide implementation method, device and storage medium
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN113037545A (en) Network simulation method, device, equipment and storage medium
EP3654175A1 (en) Terminal device, ui extension method, and ui extension program
US20220236983A1 (en) Computer Implementation Method for Software Architecture Analysis and Software Architecture Analysis Apparatus
CN113204353A (en) Big data platform assembly deployment method and device
CN112558968B (en) Method, device, equipment and storage medium for generating resource tree view
WO2024045948A1 (en) Interface display method and apparatus, terminal and storage medium
CN113254133A (en) iOS multi-scene convenient popup tool, device, computer equipment and storage medium
Vanus et al. Development of software tool for operational and technical functions control in the smart home with KNX technology
CN117785437A (en) Process management method and device, electronic equipment and storage medium
CN108733536A (en) Monitoring management system and method
CN102508665B (en) Method for drawing application view and device for drawing application view
CN114816184A (en) Display method, device, equipment and storage medium of operation control
CN114968225A (en) Micro-service unified construction method, environment generation method and related equipment
CN113867706A (en) Code generation method and device
CN115904572B (en) Template creation method, calling method, program product, system and device

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