State control method and device and electronic equipment

By obtaining process creation and operation information and dynamically adjusting parameter configuration, the problem that process acceleration solutions in the existing technology cannot adapt to different types of APPs and scenarios, and realize high-performance operation and resource optimization of processes under the target control state.

CN120256058APending Publication Date: 2025-07-04LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510400257.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

The existing process acceleration solution cannot adapt to the differences between different types of APPs and usage scenarios, resulting in insufficient acceleration or waste of resources.

Method used

By obtaining process creation and operation information, dynamically adjusting the process's parameter configuration, including CPU resource allocation, memory management, I/O resource allocation, hardware acceleration and priority scheduling, etc., to ensure that the process's running performance optimization under the target control state.

Benefits of technology

It improves the operation performance of the process in different scenarios, avoids waste of resources, and improves system efficiency and user interaction fluency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120256058A_ABST
    Figure CN120256058A_ABST
Patent Text Reader

Abstract

The invention provides a state control method which comprises the steps that in response to establishment of a process, establishment information and operation information of the process are obtained, and the process is in a target operation state after being established; in response to the fact that the running information represents that the process enters the interactive state of the user, parameter configuration of the process in the target running state is adjusted based on the creation information and / or the running information, and the adjusted parameter configuration under different creation information and running information is different; wherein the running performance of the process in the target running state is higher than that in other states.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and more particularly, to a state control method, apparatus, and electronic device. Background Art

[0002] With the development of computer technologies, there are various solutions for accelerating the startup of processes. However, in existing process acceleration solutions, a fixed acceleration time is often adopted. However, in different types of APPs and different usage scenarios, there are differences in the startup methods of many applications. The fixed acceleration time cannot cover all situations, which may lead to insufficient acceleration or resource waste. Summary of the Invention

[0003] In view of this, the present disclosure provides a state control method and an electronic device.

[0004] One aspect of the present disclosure provides a state control method, including: in response to the establishment of a process, obtaining the creation information and running information of the process, and the process is under target control after being created; in response to the running information indicating that the process enters the user-interactable state, based on the creation information and / or the running information, adjusting the parameter configuration of the process under target control, and the adjusted parameter configurations are different under different creation information and running information; wherein, the running performance of the process under target control is higher than that in other states.

[0005] According to an embodiment of the present disclosure, adjusting the parameter configuration of the process under target control includes: when the running information indicates that the process is in the target state and enters the user-interactable state, adjusting the parameter configuration of the process under target control; or, when the running information indicates that the process is not in the target state and enters the user-interactable state, adjusting the process to enter the target control again.

[0006] According to an embodiment of the present disclosure, adjusting the parameter configuration of the process under target control includes: according to the process creation time and the time to enter the interactable state represented by the creation information, adjusting the parameter configuration of the target control; and / or, according to the process function of the process, adjusting the parameter configuration of the target control.

[0007] According to an embodiment of the present disclosure, adjusting the parameter configuration of the process under target control includes: if the creation of the process is initiated by a resource manager, adjusting the parameter configuration of the process under target control; otherwise, not adjusting the parameter configuration of the target control.

[0008] According to an embodiment of the present disclosure, the state control method further includes: obtaining a target list, where the target list records the process information of the process and the target state information of each process, and the target state information indicates whether the process has entered the target state; adjusting the parameter configuration of the process in target control, including: obtaining the process information of the process; when the process information of the process is not in the target list, adding the process to the target list and adjusting the process to enter target control; when the process information of the process is in the target list and the corresponding target state information of the process indicates that the process has not entered target control, adjusting the process to enter target control, and / or adjusting the parameter configuration of the process in target control.

[0009] According to an embodiment of the present disclosure, the state control method further includes: when the process information of the process is in the target list and the corresponding target state information of the process indicates that the process has entered target control, preventing the process from entering target control.

[0010] According to an embodiment of the present disclosure, the parameter configuration includes the duration of target control, and adjusting the parameter configuration of target control includes: determining a switching duration according to the process creation time and the time to enter the interactive state represented by the creation information; when the switching duration is within the first preset duration range, shortening the duration.

[0011] According to an embodiment of the present disclosure, adjusting the parameter configuration of the process in target control includes: when the process is in the target state and the process has not entered the interactive state, ending the target control in response to the exit of the process.

[0012] Another aspect of the present disclosure provides a state control device, including: a first obtaining module, configured to obtain the creation information and running information of the process in response to the establishment of the process, and the process is in target control after being created; a first adjustment module, configured to adjust the parameter configuration of the process in target control based on the creation information and / or running information in response to the running information indicating that the process enters the interactive state of the user, and the adjusted parameter configurations are different under different creation information and running information; wherein, the running performance of the process under target control is higher than other states.

[0013] Another aspect of the present disclosure provides an electronic device, including: at least one processor; and a memory connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the following operations: in response to the establishment of a process, obtain the creation information and running information of the process, and the process is in a target running state after being created; in response to the running information indicating that the process enters the user-interactable state, adjust the parameter configuration of the process in the target running state based on the creation information and / or the running information, and the adjusted parameter configurations are different under different creation information and running information; wherein the running performance of the process in the target running state is higher than that in other states.

[0014] Another aspect of the present disclosure provides a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the state control method according to any one of the foregoing embodiments.

[0015] Another aspect of the present disclosure provides a computer program product, including computer programs / instructions, characterized in that when the computer programs / instructions are executed by a processor, the operations of the state control method according to any one of the foregoing embodiments are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Through the following description of the embodiments of the present disclosure with reference to the drawings, the above and other objects, features, and advantages of the present disclosure will become clearer. In the drawings:

[0017] Figure 1 Schematically shows a flowchart of the state control method according to an embodiment of the present disclosure;

[0018] Figure 2 Schematically shows another flowchart of the state control method according to an embodiment of the present disclosure;

[0019] Figure 3 Schematically shows another flowchart of the state control method according to an embodiment of the present disclosure;

[0020] Figure 4 Schematically shows another flowchart of the state control method according to an embodiment of the present disclosure;

[0021] Figure 5 Schematically shows another flowchart of the state control method according to an embodiment of the present disclosure;

[0022] Figure 6 Schematically shows another flowchart of the state control method according to an embodiment of the present disclosure;

[0023] Figure 7A flowchart schematically showing the adjustment of the target state duration of the state control method according to an embodiment of the present disclosure;

[0024] Figure 8 Another flowchart schematically showing the obtaining process of the intention splitting module according to an embodiment of the present disclosure;

[0025] Figure 9 A block diagram schematically showing a state control device according to an embodiment of the present disclosure; and

[0026] Figure 10 A block diagram schematically showing an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure. Detailed implementation manners

[0027] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, many specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. However, it is obvious that one or more embodiments may be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

[0028] The terms used herein are merely for describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising" and the like used herein indicate the presence of the described features, steps, operations and / or components, but do not exclude the presence or addition of one or more other features, steps, operations or components.

[0029] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0030] In the case of using expressions such as "at least one of A, B, and C", generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).

[0031] In the embodiments of the present disclosure, in aspects such as the collection, update, analysis, processing, use, transmission, provision, disclosure, storage, etc. of the involved data (for example, including but not limited to user personal information), it complies with the provisions of relevant laws and regulations, is used for legal purposes, and does not violate public order and good customs. In particular, necessary measures are taken for user personal information to prevent illegal access to user personal information data and to safeguard the security of user personal information, network security, and national security.

[0032] Embodiments of the present disclosure provide a state control method, including: in response to the establishment of a process, obtaining the creation information and running information of the process, and the process is under target control after being created; in response to the running information indicating that the process enters the interactive state of the user, based on the creation information and / or running information, adjusting the parameter configuration of the process under target control, and the adjusted parameter configurations are different under different creation information and running information; wherein, the running performance of the process under target control is higher than other states.

[0033] Figure 1 Schematically shows a flowchart of the state control method according to an embodiment of the present disclosure.

[0034] As Figure 1 shown, the state control method may at least include operations S110 to S150.

[0035] In operation S110, in response to the establishment of a process, obtain the creation information and running information of the process, and the process is under target control after being created. Among them, the running performance of the process under target control is higher than other states.

[0036] The establishment of a process refers to a logical entity with independent resources and execution context created under the control of the operating system kernel or relevant scheduling mechanisms based on user operations or system trigger events. The process can be a startup instance of the application program itself, or a concurrent running unit of its functional module or subtask. The creation of the process may be manually triggered by the end user (for example, opening an APP through the resource manager) or automatically triggered by the system (for example, invoking the target APP through other processes).

[0037] The creation information refers to the metadata information corresponding to the moment when the process is scheduled to enter the execution queue, and this information includes but is not limited to: process ID (PID), parent process name, creation timestamp, creation trigger source (such as explorer.exe or cmd.exe), user session identifier to which it belongs, initial resource allocation amount, etc.

[0038] The running information refers to the dynamic running state parameters presented during the period from the creation of a process to its entry into the interactive state. Such parameters include, but are not limited to: whether the process switches to the foreground, whether it obtains the user focus, changes in CPU occupancy, changes in memory usage, whether the window handle has been established, whether it responds to user input events, etc. It should be noted that the running information can be updated in real time.

[0039] The target state refers to a specific optimized state of the process running. In this state, parameters such as the resource scheduling policy, priority allocation, and power consumption configuration of the process are significantly improved, so as to ensure that the application program has a higher response speed and execution efficiency at a specific stage. This target state can be generated through hardware-level control, such as the processor entering the high-performance frequency band and the power management module releasing the power consumption limit, or through software-level control, such as the process being marked as a "high-priority task", the operating system scheduler allocating more time slices for it or accelerating its I / O resource access, to ensure the running speed and smoothness of the process.

[0040] On the premise that the process belongs to the acceleration whitelist, the process enters the target state after creation. For example, an acceleration whitelist can be maintained, which records the applications to which the process belongs and the corresponding acceleration parameter items. The parameter items can be the corresponding resource allocation, I / O resource allocation, hardware acceleration parameters, priority, acceleration duration, etc. When the created process matches the whitelist, it enters the target state and performs the acceleration corresponding to the parameter items recorded in the whitelist.

[0041] In operation S120, in response to the running information indicating that the process enters the user's interactive state, based on the creation information and / or running information, adjust the parameter configuration of the process under target control, and the adjusted parameter configurations are different under different creation information and running information.

[0042] The interactive state refers to the state in which a process enters a state where it can effectively interact with the user. This usually means that the process has completed the basic loading, the user interface is displayed and can receive user input (such as mouse clicks, keyboard input, etc.). In this state, the resource allocation and scheduling of the process are usually improved to quickly respond to the user's operations and requests. The interactive state is usually identified by foreground display, the triggering of user input events, and the priority scheduling of the operating system for the process. Usually, the external manifestation is that the process is switched to the foreground. A process being switched to the foreground means that a running process changes from the background state to the foreground state, making it a process that the user can directly interact with and see. Specifically, a foreground process is a process that the user is currently using or interacting with. When a process is switched to the foreground, the operating system will display the window of the process on the user's screen and prioritize the allocation of system resources (such as CPU time, memory, etc.) to it. At this time, the user can see the interface of the process and interact with it (such as clicking a button, entering text, etc.).

[0043] Based on the creation information and / or running information, adjusting the parameter configuration of the process under target control is to dynamically adjust the resource allocation and scheduling strategy of the process according to the creation information and / or running information of the process.

[0044] The parameter configuration of target control may include but is not limited to the configuration of parameters such as CPU resource allocation parameters, memory management parameters, I / O resource allocation parameters, hardware acceleration parameters, priority scheduling parameters, and acceleration duration.

[0045] Specifically, the parameter of target control can be the CPU resource allocation parameter, which refers to the amount of CPU resources allocated by the operating system to the process when the process enters target control. To improve the running efficiency of the process, the operating system may adjust the priority of the process or allocate more CPU time slices to enable the process to obtain more computing resources, thereby accelerating its execution. For example, if the process needs to quickly respond to user operations or at startup, the operating system can increase the CPU scheduling priority of the process to ensure that it can complete tasks in a short time.

[0046] The parameter of target control can be the memory management parameter, which refers to the memory resource configuration allocated by the operating system to the process when the process is under target control. The process may require more memory space in the target state to improve the loading and execution efficiency. In this case, the system will increase the memory allocation, reduce the interference of paging or other memory management mechanisms, so as to ensure that the process can run smoothly, especially when dealing with large files or complex data, to avoid freezing or crashing due to insufficient memory.

[0047] The parameters for target control can be I / O resource allocation parameters. The I / O resource allocation parameters refer to how the operating system allocates I / O resources to a process when the process enters target control to accelerate data exchange. The system may allocate more disk I / O bandwidth, network bandwidth, or increase the data transfer speed for the process. For example, when a process needs to quickly read a file or download data, the system can make the data loading faster and reduce the response time by optimizing the I / O scheduling policy.

[0048] The parameters for target control can be hardware acceleration parameters. The hardware acceleration parameters refer to whether a process enables hardware acceleration functions, such as GPU acceleration, dedicated accelerators, etc., under target control to improve the execution efficiency of tasks such as graphics rendering, video processing, and deep learning computing. For processes involving a large amount of computing or graphics processing, hardware acceleration can significantly reduce the computing burden and improve performance.

[0049] The parameters for target control can be priority scheduling parameters. The priority scheduling parameters refer to the scheduling priority assigned by the operating system to a process. When a process enters target control, its priority may be increased to ensure that the process can quickly obtain system resources. Increasing the priority can reduce the interference from other low-priority processes, thereby accelerating the startup and response speed of the target process.

[0050] The parameters for target control can be the acceleration duration. The acceleration duration refers to the continuous acceleration time of a process under target control.

[0051] The parameter configurations adjusted under different creation information and running information are different. The startup behavior and running environment of each process may be different, and also because the tasks that each process needs to execute are different, so the corresponding parameter configurations that need to be adjusted are also different.

[0052] Specifically, due to the differences in startup behavior, creation information such as the startup time of the process, trigger source, and parent process created determines the initial state of the process. For example, the resource requirements and running priorities of a process automatically started by the operating system and a process manually started by the user may be different. If a process is automatically started by the system, the system may give priority to allocating resources to it, while a process manually started by the user may gradually increase resource allocation in the subsequent process. Running information such as whether the process enters the foreground and whether it responds to user input also affects how the system adjusts resource configuration. A process that enters the foreground and is in an interactive state usually requires more CPU time, memory resources, etc. to ensure that it can quickly respond to user input.

[0053] Specifically, due to differences in task types, each process executes different task types, resulting in different demands for system resources. For example, graphics-intensive applications (such as video editing software or 3D games) may require more GPU acceleration under target control, while text processing applications (such as document editors) may mainly rely on CPU and memory resources and have less demand for GPU resources. Data-intensive tasks (such as database queries, large file processing, etc.) may require high I / O bandwidth and large memory caches. For such tasks, the system may prioritize optimizing I / O resources and memory management to improve data processing efficiency. Real-time response tasks (such as real-time communication software, audio and video playback, etc.) require the process to be able to respond to user operations or inputs in a timely manner. The system may need to adjust scheduling priorities and accelerate CPU and memory allocation to ensure real-time performance and low latency.

[0054] Specifically, due to differences in the requirements for system performance optimization, different processes have different impacts on system performance under target control. Some high-priority processes may require more system resources to ensure that they can efficiently complete tasks in a short time, while other processes may only need to run within the scope allowed by system resources.

[0055] Based on the creation information and / or running information, adjust the parameter configuration of the process in the target control. Even if the process is already in the target control, it may still require further optimization of the parameter configuration due to different running stages, changes in task load, or changes in user interaction patterns. For example, although the process already has a high resource priority, its demand for CPU or I / O may suddenly increase after entering the interactive state. At this time, the original parameter configuration may not fully match the new performance requirements. Another example is that in the initial setting, the acceleration duration of a certain process is 4 seconds. However, during actual operation, when the process enters the main interface rendering stage at the 4th second and has not completed the loading of key components and the process task is not completed, exiting the target state may cause stuttering or latency. Therefore, it is necessary to further adjust the parameters of the target state to enable the process to quickly complete the target task.

[0056] According to the embodiments of the present disclosure, based on the creation information and running information of the process, the system can dynamically adjust the parameter configuration of the target state according to different situations. For example, by starting different means such as accelerating CPU allocation, optimizing memory management, increasing I / O resource bandwidth, and enabling hardware acceleration, the process can obtain the best performance under target control. This dynamic adjustment can ensure the reasonable allocation of resources according to the startup behavior, running state, and task type of the process, thereby avoiding resource waste and improving system efficiency. In addition, the target state of the process is closely related to the user's interaction state. Processes entering the interactive state usually require more resources (such as CPU, memory, I / O, etc.). The reasonable allocation and optimization of these resources can ensure the smoothness of the process when responding to user inputs.

[0057] Figure 2 Schematically shows another flowchart of the state control method according to an embodiment of the present disclosure.

[0058] As Figure 2 shown, on the basis of the foregoing embodiment, S120 may include operation S210 or S220.

[0059] In operation S210, when the running information indicates that the process is in the target state and enters the user-interactable state, adjust the parameter configuration of the process under target control.

[0060] Specifically, when the process enters the interactable state, the operating system will dynamically adjust the resource allocation required by the process according to the creation information and running information of the process (such as the startup time of the process, the current state, whether it has obtained the user focus, etc.). For processes that require quick response (for example, foreground applications), the operating system can increase its CPU time slice, optimize memory allocation, enable hardware acceleration, extend the acceleration time, etc., to ensure that it has high performance when entering the interactable state.

[0061] For example, a certain video editing application enters the target state at startup and maintains this state for a period of time. During this period, its resource allocation is optimized to ensure smooth loading of video content. At this time, the process is still in the background, and the system will allocate necessary resources to support background tasks (such as caching, preloading video segments, etc.). However, when the user switches the application from the background to the foreground and starts video editing operations, although the application has completed the initial loading, at this time the process is in a high-load state, and tasks such as video rendering and image processing may cause obvious response delays. If only the default acceleration duration (assumed to be a few seconds by default) is executed at this time, it cannot meet the high-performance requirements of video editing operations, and there may be operation delays or interface lags.

[0062] Therefore, the system detects that the process is in a critical high-load stage in the foreground according to the running information and requires more resources to support smooth user interaction and video editing operations. To avoid lags and reduce the response speed, the system decides to extend the acceleration duration of the target state.

[0063] In operation S220, when the running information indicates that the process is not in the target state and enters the user-interactable state, adjust the process to enter target control again.

[0064] Specifically, if the process has not entered the target control but still needs to enter the user-interactive state (such as a background application being brought to the foreground), the operating system will check the running information of the process during this process and evaluate its current resource allocation. If the process fails to provide an ideal response speed or performance, the system will adjust its resource configuration such as CPU, memory, I / O, etc., and quickly bring the process into the target control. For example, the operating system may allocate more CPU time slices to the process, reduce memory paging, and adjust the I / O scheduling policy to improve its execution efficiency and ensure that the process can respond smoothly during user interaction. If the process has already been in the target state, but the acceleration duration of this target state has ended and exited, and the process then enters the user-interactive state, then the process is adjusted to enter the target control again.

[0065] For example, after a video playback application completes the interface display and enters the background after a cold start, when the user clicks on the application icon again to switch it to the foreground, the video component has not completed buffering and the playback interface freezes briefly. The system detects that the process window is active again but there is a response delay, and can reactivate the target state and extend the acceleration duration, enabling it to obtain additional I / O bandwidth and CPU time, thereby completing buffering and restoring playback smoothness.

[0066] Figure 3 Another flowchart of the state control method according to an embodiment of the present disclosure is schematically shown.

[0067] As Figure 3 shown, on the basis of the foregoing embodiment, S120 may include operation S310 and / or S350.

[0068] In operation S310, according to the process creation time and the time to enter the interactive state represented by the creation information, the parameter configuration of the target control is adjusted.

[0069] For example, the operating system will determine the acceleration duration of the target state by calculating the time difference from the process creation time to the time to enter the interactive state. For example, the system calculates (current time - PID creation time), and uses this time as the reference time (basetime). Then, the reference time is multiplied by 2 to obtain an extended time (turbo time) for extending the acceleration duration of the process in the target state to improve the process response speed.

[0070] Specifically, for example, an application needs some time to initialize various resources after startup. Assume that the creation time of the process is 10:00:00, and the time to enter the interactive state is 10:01:00 (i.e., 1 minute has passed). The calculated reference time is 1 minute, and multiplying it by 2 gives an extended time of 2 minutes. Therefore, the acceleration duration of the target state is extended by 2 minutes to ensure that the application can run smoothly during the next critical operations.

[0071] According to an embodiment of the present disclosure, in view of the problem that the file sizes are different when opening files, the system calculates the time difference of the process from the creation moment to the interactive state dynamically, and uses this as the basis for the acceleration duration, rather than using a fixed time. This method can adjust the acceleration duration in real time according to the startup performance of the process, thus solving the problem that the fixed acceleration time cannot adapt to different file sizes. Specifically, when the file is small, the time difference of the process from creation to the interactive state is short, so the acceleration duration is also short, which can avoid unnecessary resource waste. When the file is large, the time difference at startup is long, and the system will correspondingly extend the acceleration duration to ensure that the processing of the large file can be completed smoothly and the process response speed is optimized. This dynamic adjustment method based on the actual startup duration can flexibly adjust the acceleration time according to different file sizes, ensure adaptation to different situations, and avoid the inadaptability of the fixed time setting to different file types.

[0072] In operation S320, according to the process function of the process, adjust the parameter configuration of the target control.

[0073] For example, different processes execute different types of tasks, and the system dynamically adjusts the extension duration of the target control according to the task complexity of the process. For example, for a process with a more difficult task or a higher demand for computing resources, the extension duration of its target state is usually longer to ensure the smooth completion of the task.

[0074] Specifically, for example, a certain video rendering application requires a large amount of computing and GPU acceleration resources. When it starts up and enters the target state, due to the complexity of the task, it is detected according to the running information that the process is performing large-scale video rendering, and the rendering process has a high demand for the GPU and CPU. This process requires a longer acceleration duration to complete the current rendering task, so the acceleration time of the target state is extended to ensure that sufficient resource allocation is obtained during the rendering of this process. In contrast, although a simple text editing application may also enter the target state, its resource demand is low, so the extended time will be relatively short.

[0075] Figure 4 Another flowchart of the state control method according to an embodiment of the present disclosure is schematically shown.

[0076] As Figure 4 shown, on the basis of the foregoing embodiment, S120 may include operation S410.

[0077] In operation S410, if the creation of the process is initiated by the resource manager of the electronic device, adjust the parameter configuration of the process in the target control, otherwise, do not adjust the parameter configuration of the target control.

[0078] Specifically, by reading the creation information of a process, it can be determined whether its parent process is the resource manager of the electronic device (such as explorer.exe in the Windows system). If so, it indicates that the process is probably initiated actively by the user through the graphical interface (such as double-clicking an icon, opening an application from the start menu, etc.), which belongs to the interactive operation of the user's direct intention. At this time, to ensure the smoothness of the user interaction, the system should promptly adjust the configuration of the target control parameters of this process and increase its running priority and resource allocation. On the contrary, if the process is not initiated by the resource manager (for example, initiated by a scheduled task, script, or other background services), it may not involve immediate user interaction, and not making target state adjustments can avoid wasting resources.

[0079] For example, by reading the parent process field of a certain process and determining that its parent process is explorer.exe, it is considered that the process is directly started by the user clicking the icon. At this time, it can be immediately switched to target control, and a higher CPU priority, a larger I / O bandwidth, and an extended acceleration duration can be configured. If the parent process is cmd.exe or a certain system service, such as svchost.exe, it is determined as a background or automatic startup task, and the system does not make target state adjustments and maintains the basic resource allocation strategy.

[0080] Judging whether it is initiated by the resource manager is because the process initiated by the resource manager has more characteristics of "user initiative", which means that the user is expecting the process to complete the startup and response operations as soon as possible. By performing resource acceleration configuration on this type of process, the startup speed and interface response can be significantly improved, enhancing the user experience. For non-interactive processes, advancing the resource priority may cause waste of system resources and even affect the operation of other interactive tasks.

[0081] Figure 5 Another flowchart of the state control method according to an embodiment of the present disclosure is schematically shown.

[0082] As Figure 5 shown, on the basis of the foregoing embodiment, the state control method may include operation S510.

[0083] Operation S120 may include operations S520 to S540

[0084] In operation S510, a target list is obtained. The target list records the process information of the processes and the target state information of each process. The target state information indicates whether the process has entered the target state.

[0085] Specifically, the target list may include the basic information of processes that meet the target conditions, including the PID, process name, creation time, and a status flag indicating whether the process has entered the target control state. When the system starts, the target list is initialized and records the status information of each process. When a process is created, the operating system determines whether the process already exists in the target list. If not and the application to which the process belongs matches the acceleration whitelist, the process information of the process is added to the target list.

[0086] According to the embodiments of the present disclosure, when a new process is detected to be created, its information is first added to the target list and enters a default target state once, enabling it to complete startup as soon as possible. At this time, the process may not immediately enter the foreground, but in the background, it has obtained more resource allocations to ensure its efficient operation.

[0087] In operation S520, the process information of the process is obtained. When it is detected that the interaction state of the foreground application changes (for example, the user switches a certain application to the foreground), the operating system sends the process information of the foreground process. This information includes the PID, process name, current task load, etc. of the process.

[0088] In operation S530, when the process information of the process is not in the target list, the process is added to the target list and the process is adjusted to enter the target control.

[0089] Specifically, although a process that meets the acceleration conditions is added to the target list after its creation, due to system resource management policies, process initialization states, and some specific management conditions, there may sometimes be a situation where the process information of the process is not added to the target list in a timely manner. In this case, the missing process needs to be supplemented, its process information is added to the target list, and its resource configuration is adjusted to enable it to smoothly enter the target control.

[0090] Specifically, for example, in a multi-tasking environment, the target list of the system is updated periodically. When the user starts an image editing software, the process may load multiple graphic files and plugins in the background. Since the update of the target list is periodic, the system may not immediately add it to the target list. Another example is that after a certain process crashes and the system restarts the process, the process instance remains the same, but the system may reassign a process ID to the process, and at this time, the process information may also not be in the target list.

[0091] In operation S540, when the process information of a process is in the target list and the corresponding target status information of the process indicates that the process has not entered the target control, adjust the process to enter the target control and / or adjust the parameter configuration of the process in the target control. When the process information of a process is already in the target list and the target status information indicates that the process has not entered the target control, it means that the process is switched to the foreground for the first time. At this time, adjust the process to enter the target control and / or adjust the parameter configuration of the process in the target control. The specific adjustment content can refer to the foregoing embodiments and will not be elaborated here.

[0092] For example, when a video player application starts and enters the background, and has been added to the target list but has not been marked as having entered the target state. When the user switches the application from the background to the foreground, the system checks that the process enters the foreground for the first time, so it optimizes the resources according to its task load, extends the Turbo state, and ensures the fast startup and smooth playback of the video.

[0093] Figure 6 Another flowchart of the state control method according to an embodiment of the present disclosure is schematically shown.

[0094] As Figure 6 shown, on the basis of the foregoing embodiments, the state control method may include operation S610.

[0095] In operation S610, when the process information of a process is in the target list and the corresponding target status information of the process indicates that the process has entered the target control, prevent the process from entering the target control.

[0096] Specifically, when the process information of a process already exists in the target list and the target status information indicates that the process has entered the target control, the system will prevent the process from entering the target control again. This is to avoid repeated adjustment and unnecessary resource occupation. Especially after the process has obtained sufficient resources and completed initialization, entering the target state again may cause resource waste or performance degradation.

[0097] For example, assume that an image editing software has entered the target control and obtained resource acceleration when it starts, and the operating system records the status of the process and marks it as having entered the target state. When the user tries to restart the process or switch the application between the foreground and background multiple times in a short period, the system will recognize that the process has entered the target control, so it will prevent the process from adjusting the target state again, avoiding repeated acceleration or unnecessary reallocation of resources.

[0098] Figure 7 A flowchart of adjusting the target state duration of the state control method according to an embodiment of the present disclosure is schematically shown.

[0099] According to an embodiment of the present disclosure, the parameter configuration includes the duration of the target control, such as Figure 7 As shown, on the basis of the foregoing embodiment, S120 may include operations S710 to S720.

[0100] In operation S710, determine the switching duration according to the process creation time and the time to enter the interactive state represented by the creation information.

[0101] In operation S720, when the switching duration is within the first preset duration range, shorten the duration.

[0102] Specifically, the system calculates the "switching duration" by comparing the process creation time and the time to enter the interactive state. This switching duration reflects the time interval from the creation of the process to its entry into the foreground, serving as the basis for extending the target state. If the calculated switching duration is less than a certain preset time range (e.g., 500 ms), it is considered that the foreground switching of the process is very fast. At this time, the process is already ready to respond to user interaction, but does not require resource acceleration for too long. Therefore, the system will shorten the duration of the target state to ensure that system resources can be more effectively allocated to other processes and avoid unnecessary resource waste.

[0103] For example, when the time from the creation to the switching to the foreground of a certain application program (such as a lightweight calculator APP) is less than 500 ms, the system recognizes that the startup and foreground switching of this process are very fast. At this time, the operating system will execute a short Turbo state (such as 4 seconds) to ensure that users can smoothly interact after a quick startup, but will not occupy resources for too long, thus avoiding affecting the execution of other high-priority tasks.

[0104] FIG. L8L schematically shows another flowchart of the state control method according to an embodiment of the present disclosure.

[0105] As Figure 8 shown, on the basis of the foregoing embodiment, S120 may include operation S810.

[0106] In operation S810, when the process is in the target state and the process has not entered the interactive state, in response to the exit of the process, end the target control.

[0107] When the process is running in the target state, if the process has not entered the interactive state (i.e., the process is in the loading, initialization, or background processing state), and during this period, the process performs an exit operation (for example, the user closes the application or the process crashes due to an error), the system will detect the process exit event and immediately end the target control in response to this event. Ending the target state means that the process no longer occupies additional system resources (such as CPU time slices, memory bandwidth, etc.), thereby releasing system resources and ensuring that other processes can obtain higher priorities and more resource allocations.

[0108] For example, assume that a file editor application enters the target state when starting up, and the system allocates relatively high resources to it to accelerate the startup process. However, before the application enters the interactive state, the user accidentally closes the application. At this time, the operating system will detect the process exit event, immediately end the target control of the application, and remove it from the system resource management to avoid unnecessary resource occupation.

[0109] According to the embodiments of the present disclosure, the embodiment to be adopted can be determined by means of a process whitelist. Figure 4 In the embodiment shown, or the embodiment shown in Figure 5 For example, for application programs whose process life cycle is directly controlled by user interaction, they can be added to the process whitelist. For the processes of these application programs, the system will preferentially select the embodiment shown in Figure 4 For the processes of application programs whose process life cycle is not directly controlled by user interaction, the embodiment shown in Figure 5 will be adopted.

[0110] According to the embodiments of the present disclosure, after the process runs, the whitelist can be maintained by analyzing whether the process life cycle is directly controlled by user interaction. When the process life cycle is directly controlled by user interaction, then the application is added to the whitelist and the embodiment shown in Figure 4 is adopted. When the process life cycle is not directly controlled by user interaction, then the solution provided by the embodiment shown in Figure 5 can be adopted.

[0111] For example, some application programs create multiple independent processes when starting up, and even if the user closes the foreground application, some background processes will still continue to survive and process tasks. Then, the solution provided by the embodiment shown in Figure 5 can be adopted. For example, for the processes created by some application programs when starting up, all will exit after the user closes the foreground application. Then, the solution provided by the embodiment shown in Figure 4 can be adopted.

[0112] Figure 9 Schematically shows a block diagram of a state control device according to an embodiment of the present disclosure.

[0113] As Figure 9 shown, the status control device 900 may include a first acquisition module 910 and an adjustment module 920.

[0114] The first acquisition module 910 is configured to acquire the creation information and running information of a process in response to the establishment of the process. The process is in a target running state after being created. Among them, the running performance of the process in the target running state is higher than that in other states. In some embodiments, the first acquisition module 910 may be configured to perform the operation S110 in the above status control method, which will not be elaborated here.

[0115] The adjustment module 920 is configured to, in response to the running information indicating that the process enters the user-interactable state, adjust the parameter configuration of the process in the target running state based on the creation information and / or the running information. The adjusted parameter configurations are different under different creation information and running information. In some embodiments, the adjustment module 920 may be configured to perform the operation S120 in the above status control method, which will not be elaborated here.

[0116] According to an embodiment of the present disclosure, the adjustment module may include a first sub-adjustment module or a second sub-adjustment module.

[0117] The first sub-adjustment module is configured to adjust the parameter configuration of the process in the target running state when the running information indicates that the process is in the target state and enters the user-interactable state. In some embodiments, the first sub-adjustment module may be configured to perform the operation S210 in the above status control method, which will not be elaborated here.

[0118] The second sub-adjustment module is configured to adjust the process to enter the target running state again when the running information indicates that the process is not in the target state and enters the user-interactable state. In some embodiments, the second sub-adjustment module may be configured to perform the operation S220 in the above status control method, which will not be elaborated here.

[0119] According to an embodiment of the present disclosure, the adjustment module may include a third sub-adjustment module and / or a fourth sub-adjustment module.

[0120] The third sub-adjustment module is configured to adjust the parameter configuration of the target running state according to the process creation time and the time when entering the interactable state represented by the creation information. In some embodiments, the third sub-adjustment module may be configured to perform the operation S310 in the above status control method, which will not be elaborated here.

[0121] The fourth sub-adjustment module is configured to adjust the parameter configuration of the target running state according to the process function of the process. In some embodiments, the fourth sub-adjustment module may be configured to perform the operation S320 in the above status control method, which will not be elaborated here.

[0122] According to an embodiment of the present disclosure, the adjustment module may include a fifth sub - adjustment module.

[0123] The fifth sub - adjustment module is used to adjust the parameter configuration of the process in the target running state if the creation of the process is initiated by the resource manager of the electronic device, and if not, it does not adjust the parameter configuration of the target running state. In some embodiments, the fifth sub - adjustment module may be used to perform operation S410 in the above - mentioned state control method, which will not be elaborated here.

[0124] According to an embodiment of the present disclosure, the state control device may include a preset 21 module, and the adjustment module may include a preset 22 module, a preset 23 module, a preset 24 module, and a preset 25 module.

[0125] The second acquisition module is used to acquire a target list. The target list records the process information of the process and the target state information of each process. The target state information indicates whether the process has entered the target state. In some embodiments, the second acquisition module may be used to perform operation S510 in the above - mentioned state control method, which will not be elaborated here.

[0126] The third acquisition module is used to acquire the process information of the process. In some embodiments, the third acquisition module may be used to perform operation S520 in the above - mentioned state control method, which will not be elaborated here.

[0127] The sixth sub - adjustment module is used to add the process to the target list and adjust the process to enter the target running state when the process information of the process is not in the target list. In some embodiments, the sixth sub - adjustment module may be used to perform operation S530 in the above - mentioned state control method, which will not be elaborated here.

[0128] The seventh sub - adjustment module is used to adjust the process to enter the target running state and / or adjust the parameter configuration of the process in the target running state when the process information of the process is in the target list and the target state information corresponding to the process indicates that the process has not entered the target running state. In some embodiments, the seventh sub - adjustment module may be used to perform operation S540 in the above - mentioned state control method, which will not be elaborated here.

[0129] According to an embodiment of the present disclosure, the state control device may include an eighth sub - adjustment module.

[0130] The eighth sub - adjustment module is used to prevent the process from entering the target running state when the process information of the process is in the target list and the target state information corresponding to the process indicates that the process has entered the target running state. In some embodiments, the eighth sub - adjustment module may be used to perform operation S610 in the above - mentioned state control method, which will not be elaborated here.

[0131] According to an embodiment of the present disclosure, the adjustment module may include a first determination module and a ninth sub-adjustment module.

[0132] The first determination module is configured to determine a switching duration according to the process creation time and the time to enter the interactive state represented by the creation information. In some embodiments, the first determination module may be configured to perform operation S710 in the above state control method, which will not be elaborated herein.

[0133] The ninth sub-adjustment module is configured to shorten the duration when the switching duration is within a first preset duration range. In some embodiments, the ninth sub-adjustment module may be configured to perform operation S720 in the above state control method, which will not be elaborated herein.

[0134] According to an embodiment of the present disclosure, the adjustment module may include a tenth sub-adjustment module.

[0135] The tenth sub-adjustment module is configured to end the target running state in response to the exit of the process when the process is in the target state and has not entered the interactive state. In some embodiments, the tenth sub-adjustment module may be configured to perform operation S810 in the above state control method, which will not be elaborated herein.

[0136] Any multiple of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure, or at least part of the functions of any multiple of them, may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be split into multiple modules for implementation. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or implemented in any one of the three implementation manners of software, hardware, and firmware, or in an appropriate combination of any several of them. Alternatively, one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding functions may be executed.

[0137] For example, any number of the first acquisition module 910 and the adjustment module 920 can be combined and implemented in one module / unit / sub-unit, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Or, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first acquisition module 910 and the adjustment module 920 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by any other reasonable means such as hardware or firmware for integrating or packaging circuits, or can be implemented in any one of the three implementation manners of software, hardware, and firmware or in an appropriate combination of any several of them. Or, at least one of the first acquisition module 910 and the adjustment module 920 can be at least partially implemented as a computer program module, and when the computer program module is run, corresponding functions can be executed.

[0138] It should be noted that the data processing system part in the embodiments of the present disclosure corresponds to the data processing method part in the embodiments of the present disclosure. For the description of the data processing system part, please refer to the data processing method part specifically, and details will not be repeated here.

[0139] Figure 10 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Figure 10 The shown electronic device is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.

[0140] As Figure 10 As shown, the electronic device 1000 according to an embodiment of the present disclosure includes a processor 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. The processor 1001 can include, for example, a general microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application specific integrated circuit (ASIC)), and so on. The processor 1001 can also include on-board memory for caching purposes. The processor 1001 can include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0141] In the RAM 1003, various programs and data required for the operation of the electronic device 1000 are stored. The processor 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. The processor 1001 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 1002 and / or the RAM 1003. It should be noted that the programs may also be stored in one or more memories other than the ROM 1002 and the RAM 1003. The processor 1001 may also perform various operations of the method flow according to the embodiments of the present disclosure by executing programs stored in the one or more memories.

[0142] According to an embodiment of the present disclosure, the electronic device 1000 may further include an input / output (I / O) interface 1005, and the input / output (I / O) interface 1005 is also connected to the bus 1004. The electronic device 1000 may further include one or more of the following components connected to the input / output (I / O) interface 1005: an input portion 1006 including a keyboard, a mouse, etc.; an output portion 1007 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1008 including a hard disk, etc.; and a communication portion 1009 including a network interface card such as a LAN card, a modem, etc. The communication portion 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the input / output (I / O) interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed so that a computer program read therefrom can be installed into the storage portion 1008 as needed.

[0143] According to an embodiment of the present disclosure, the method flow according to the embodiments of the present disclosure may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product that includes a computer program carried on a computer-readable storage medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and / or installed from the removable medium 1011. When the computer program is executed by the processor 1001, the above-described functions defined in the system according to the embodiments of the present disclosure are performed. According to an embodiment of the present disclosure, the above-described system, device, apparatus, module, unit, etc. may be implemented by computer program modules.

[0144] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist separately without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the methods according to the embodiments of the present disclosure are implemented.

[0145] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.

[0146] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include one or more memories other than the above-described ROM 1002 and / or RAM 1003 and / or ROM 1002 and RAM 1003.

[0147] Embodiments of the present disclosure also include a computer program product, which includes a computer program that contains program code for executing the methods provided in the embodiments of the present disclosure. When the computer program product runs on an electronic device, the program code is used to cause the electronic device to implement the control methods provided in the embodiments of the present disclosure.

[0148] When the computer program is executed by the processor 1001, the above functions defined in the system / apparatus of the embodiments of the present disclosure are executed. According to an embodiment of the present disclosure, the above-described systems, apparatuses, modules, units, etc. may be implemented by computer program modules.

[0149] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1009, and / or installed from the removable medium 1011. The program code included in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above. According to the embodiments of the present disclosure, the program code for executing the computer program provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include but are not limited to, such as Java, C++, python, the "C" language, or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (for example, by using an Internet service provider to connect through the Internet).

[0150] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions. Those skilled in the art can understand that the features described in the various embodiments of the present disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.

[0151] The embodiments of the present disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments have been described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present disclosure.

Claims

1. A state control method, comprising: Upon response to the establishment of a process, obtaining the creation information and running information of the process, where the process is under target control after being created; Upon response to the running information indicating that the process enters the user-interactable state, based on the creation information and / or the running information, adjusting the parameter configuration of the process under the target control, and the parameter configurations adjusted under different creation information and running information are different; Wherein, the running performance of the process under the target control is higher than other states.

2. The method according to claim 1, wherein adjusting the parameter configuration of the process under the target control comprises: When the running information indicates that the process is in the target state and enters the user-interactable state, adjusting the parameter configuration of the process under the target control; Or, When the running information indicates that the process is not in the target state and enters the user-interactable state, adjusting the process to enter the target control again.

3. The method according to claim 2, wherein adjusting the parameter configuration of the process under the target control comprises: Adjusting the parameter configuration of the target control according to the process creation time represented by the creation information and the time when entering the interactable state; And / or, Adjusting the parameter configuration of the target control according to the process function of the process.

4. The method according to claim 2, wherein adjusting the parameter configuration of the process under the target control comprises: If the creation of the process is initiated by a resource manager, adjusting the parameter configuration of the process under the target control, otherwise, not adjusting the parameter configuration of the target control.

5. The method according to claim 1, further comprising: Obtaining a target list, where the target list records the process information of processes and the target state information of each process, and the target state information indicates whether the process has entered the target state; Adjusting the parameter configuration of the process under the target control comprises: Obtaining the process information of the process; When the process information of the process is not in the target list, adding the process to the target list and adjusting the process to enter the target control; When the process information of the process is in the target list and the corresponding target state information of the process indicates that the process has not entered the target control, adjusting the process to enter the target control and / or adjusting the parameter configuration of the process under the target control.

6. The method according to claim 5, further comprising: When the process information of the process is in the target list and the corresponding target state information of the process indicates that the process has entered the target control, preventing the process from entering the target control.

7. The method according to claim 5, wherein the parameter configuration includes the duration of the target control, and adjusting the parameter configuration of the target control comprises: Determining a switching duration according to the process creation time represented by the creation information and the time when entering the interactable state; When the switching duration is within the first preset duration range, shorten the continuous duration.

8. The method according to claim 1, wherein the adjusting the parameter configuration of the process in the target control includes: When the process is in the target state and the process has not entered the interactive state, in response to the exit of the process, end the target control.

9. A state control device, comprising: A first acquisition module, configured to acquire the creation information and running information of a process in response to the establishment of the process, where the process is under target control after being created; And An adjustment module, configured to, in response to the running information indicating that the process enters the interactive state of the user, adjust the parameter configuration of the process in the target control based on the creation information and / or the running information, and the parameter configurations adjusted under different creation information and running information are different; wherein the running performance of the process under the target control is higher than that in other states.

10. An electronic device, comprising: At least one processor; And A memory connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform the following operations: acquire the creation information and running information of a process in response to the establishment of the process, where the process is under target control after being created; in response to the running information indicating that the process enters the interactive state of the user, adjust the parameter configuration of the process in the target control based on the creation information and / or the running information, and the parameter configurations adjusted under different creation information and running information are different; wherein the running performance of the process under the target control is higher than that in other states.