Resource scheduling method and device, electronic equipment and medium

By adjusting the resource allocation strategy for the target application in the obscured second window of the electronic device's display interface, the lag and battery life issues caused by multi-window display were resolved, achieving more efficient resource management.

CN121008901APending Publication Date: 2025-11-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410653077.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2025-11-25

AI Technical Summary

Technical Problem

When electronic devices display multiple windows, limited resources can lead to lag and poor battery life.

Method used

By determining the resource allocation strategy for the target application in the obscured second window within the display interface, resources allocated to the target application in the invisible state can be reduced, including methods such as freezing the application, limiting data read/write speed, and restricting the number of permissions.

Benefits of technology

It reduces the likelihood of electronic devices lagging, improves battery life, and optimizes resource scheduling without affecting user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121008901A_ABST
    Figure CN121008901A_ABST
Patent Text Reader

Abstract

The invention relates to a resource scheduling method and device, electronic equipment and a medium. The resource scheduling method comprises the steps of displaying a first window on a display interface; under the condition that a second window in the display interface is shielded by the first window, determining a resource allocation strategy of a target application displayed by the second window; and reducing resources allocated to the target application based on the resource allocation strategy. By reducing the resources allocated to the target application displayed in the sheltered second window, the resources occupied by the target application are reduced under the condition that the user experience is not affected, and therefore the possibility that the electronic equipment is stuck is reduced. Meanwhile, the resources allocated to the target application are reduced, and the electric energy consumed by the target application is reduced, so that the endurance of the electronic equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of electronic devices, and particularly relates to a resource scheduling method and device, an electronic device and a medium. BACKGROUND

[0002] With the development of electronic devices, the electronic devices can run multiple applications at the same time, and display the corresponding applications in multiple windows on a display interface. However, since each application occupies certain resources when running, and the resources of the electronic device are limited, the electronic device may appear to be lagging. SUMMARY

[0003] To overcome the problems in the related art, the present disclosure provides a resource scheduling method and device, an electronic device and a medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a resource scheduling method is provided, and the resource scheduling method comprises:

[0005] displaying a first window on a display interface;

[0006] in a case where a second window in the display interface is blocked by the first window, determining a resource allocation strategy of a target application displayed by the second window;

[0007] based on the resource allocation strategy, reducing resources allocated to the target application.

[0008] In some embodiments of the present disclosure, the determining the resource allocation strategy of the target application displayed by the second window comprises:

[0009] determining target information related to the target application displayed by the second window;

[0010] determining the resource allocation strategy of the target application according to the target information.

[0011] In some embodiments of the present disclosure, the target information comprises a type of the target application; and the determining the resource allocation strategy of the target application according to the target information comprises:

[0012] in a case where the type of the target application is a first type, freezing the target application;

[0013] in a case where the type of the target application is a second type, limiting a read-write speed of the target application on data;

[0014] in a case where the type of the target application is a third type, reducing a number of permissions of the target application.

[0015] In some embodiments of the present disclosure, the target information includes the number of computing resources, data resources and permissions occupied by the target application; and the determining the resource allocation strategy of the target application according to the target information comprises:

[0016] freezing the target application when the computing resources occupied by the target application are greater than a computing resource threshold;

[0017] limiting the read-write speed of the target application on data when the data resources occupied by the target application are greater than a data resource threshold;

[0018] reducing the number of permissions of the target application when the number of permissions of the target application is greater than a permission number threshold.

[0019] In some embodiments of the present disclosure, the target information includes the priority of the target application; and the determining the resource allocation strategy of the target application according to the target information comprises:

[0020] freezing the target application when the priority of the target application is lower than a first preset level;

[0021] limiting the read-write speed of the target application on data and / or reducing the number of permissions of the target application when the priority of the target application is higher than or equal to the first preset level and lower than a second preset level.

[0022] In some embodiments of the present disclosure, the target information includes the use frequency of the target application; and the determining the resource allocation strategy of the target application according to the target information comprises:

[0023] freezing the target application when the use frequency of the target application is less than a first frequency threshold;

[0024] limiting the read-write speed of the target application on data and / or reducing the number of permissions of the target application when the use frequency of the target application is greater than or equal to the first frequency threshold and less than a second frequency threshold.

[0025] In some embodiments of the present disclosure, the determining the resource allocation strategy of the target application displayed by the second window comprises:

[0026] determining the degree of occlusion of the second window by the first window;

[0027] determining the resource allocation strategy of the target application displayed by the second window according to the screen displayed by the displayable area of the second window when the second window is partially occluded by the first window.

[0028] In some embodiments of the present disclosure, the resource allocation strategy of the target application displayed by the second window is determined according to the picture displayed in the displayable area of the second window.

[0029] In a case where the picture displayed in the displayable area of the second window is a static picture, the target application is frozen.

[0030] In a case where the picture displayed in the displayable area of the second window is a dynamic picture and the frame rate of the dynamic picture is less than a preset frame rate, the read-write speed of data of the target application is limited and / or the number of permissions of the target application is reduced.

[0031] In some embodiments of the present disclosure, the resource scheduling method further comprises:

[0032] determining the first window whose display level is higher than the second window;

[0033] determining the displayable area of the second window according to the position of the first window whose display level is higher than the second window and the position of the second window;

[0034] determining whether the second window is blocked by the first window according to the displayable area of the second window.

[0035] In some embodiments of the present disclosure, the first window whose display level is higher than the second window is determined by:

[0036] obtaining the display order of the first window and the second window; determining the first window above the second window in the display order as the first window whose display level is higher than the second window; or

[0037] determining the operation time of the first window and the second window; determining the first window later than the second window in the operation time as the first window whose display level is higher than the second window.

[0038] In some embodiments of the present disclosure, the displayable area of the second window is determined according to the position of the first window whose display level is higher than the second window and the position of the second window by:

[0039] determining the first coordinates of each vertex of the first window whose display level is higher than the second window and the second coordinates of each vertex of the second window;

[0040] determining the area of the second window not overlapping with the first window whose display level is higher than the second window as the displayable area of the second window according to the first coordinates and the second coordinates.

[0041] In some embodiments of the present disclosure, the first window of the display hierarchy higher than the second window is a non-transparent window.

[0042] According to a second aspect of embodiments of the present disclosure, a resource scheduling apparatus is provided, which comprises:

[0043] a display module configured to display a first window on a display interface;

[0044] a determination module configured to determine a resource allocation strategy of a target application displayed by a second window on the display interface in a case where the second window is blocked by the first window;

[0045] an allocation module configured to reduce resources allocated to the target application displayed by the second window based on the resource allocation strategy.

[0046] According to a third aspect of embodiments of the present disclosure, an electronic device is provided, which comprises:

[0047] a processor;

[0048] a memory for storing instructions executable by the processor;

[0049] wherein the processor is configured to perform the resource scheduling method as described above.

[0050] According to a fourth aspect of embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, which, when instructions in the storage medium are executed by a processor of a terminal, enables the terminal to perform the resource scheduling method as described above.

[0051] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects:

[0052] The first window is displayed on the display interface to display an application running through the first window. In a case where a second window on the display interface is blocked by the first window, a target application displayed by the second window is in an invisible state and occupies certain resources, and a resource allocation strategy of the target application displayed by the second window is determined. Based on the resource allocation strategy, resources allocated to the target application are reduced to reduce the resources occupied by the target application in the invisible state. By reducing the resources allocated to the target application displayed by the blocked second window, the resources occupied by the target application are reduced without affecting the user experience, thereby reducing the possibility of the electronic device freezing. At the same time, since the resources allocated to the target application are reduced, the power consumed by the target application is reduced, thereby improving the endurance of the electronic device.

[0053] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory and are not restrictive of the disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and serve to explain the principles of the disclosure, in which:

[0055] Figure 1 is a flowchart of a resource scheduling method according to an example embodiment;

[0056] Figure 2 is a flowchart of a resource scheduling method according to another example embodiment;

[0057] Figure 3 is a flowchart of a resource scheduling method according to another example embodiment;

[0058] Figure 4 is a flowchart of a resource scheduling method according to another example embodiment;

[0059] Figure 5 is a schematic diagram of a display interface according to an example embodiment;

[0060] Figure 6 is a flowchart of a resource scheduling method according to another example embodiment;

[0061] Figure 7 is a block diagram of a resource scheduling apparatus according to an example embodiment;

[0062] Figure 8 is a block diagram of an electronic device according to an example embodiment.

[0063] In the drawings:

[0064] 10 - first window; 20 - second window; 100 - display module; 200 - determination module; 300 - allocation module; 400 - electronic device; 402 - processing component; 404 - memory; 406 - power supply component; 408 - multimedia component; 410 - audio component; 412 - input / output interface; 414 - sensor component; 416 - communication component; 420 - processor. DETAILED DESCRIPTION

[0065] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The description below concerns the drawings, where the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments are not meant to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims. It should also be understood that the term "and / or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.

[0066] With the development of electronic devices, the screens of electronic devices gradually increase, and more pictures can be displayed. In order to improve the convenience of user operation, the electronic device can run multiple applications at the same time, and display the corresponding applications in multiple windows in the display interface. The size of each window in the display interface can be set to be different, and the position of each window can be set arbitrarily by the user. Whether there is an occlusion between the windows or not, the resources occupied by the application displayed by the window remain unchanged. Since each application occupies a certain resource when running, and the resources of the electronic device are limited, when the resources occupied by the application are more, the electronic device will have a problem of lag. At the same time, since the resources occupied by each application are more, the power consumed by each application is more, and the electronic device has a problem of poor endurance.

[0067] In order to solve the above technical problems, the present disclosure provides a resource scheduling method, which reduces the resources allocated to the target application displayed by the occluded second window, releases the resources occupied by the target application in the case that the second window is invisible and not perceived by the user, thereby reducing the possibility of the electronic device lagging. At the same time, since the resources occupied by the target application are reduced, the power consumed by the target application is less, thereby improving the endurance of the electronic device.

[0068] The embodiments of the present disclosure provide a resource scheduling method, as shown in Figure 1 The method comprises:

[0069] S100, displaying a first window in a display interface.

[0070] S200, determining a resource allocation strategy of a target application displayed by a second window in the display interface in the case that the second window is occluded by the first window.

[0071] S300, reducing the resources allocated to the target application based on the resource allocation strategy.

[0072] In this embodiment, the first window is displayed on the display interface to display the running application through the first window. In the case that the second window on the display interface is blocked by the first window, the target application displayed by the second window is in an invisible state and occupies a certain resource, and the resource allocation strategy of the target application displayed by the second window is determined. Based on the resource allocation strategy, the resource allocated to the target application is reduced to reduce the resource occupied by the target application in the invisible state. By reducing the resource allocated to the target application displayed by the blocked second window, the resource occupied by the target application is reduced without affecting the user experience, thereby reducing the possibility of the electronic device freezing. At the same time, since the resource allocated to the target application is reduced, the power consumption of the target application is reduced, thereby improving the endurance of the electronic device.

[0073] Exemplarily, the resource of the target application can include a hardware resource, a software resource, a data resource, and the like.

[0074] Exemplarily, the number of the first window can be one or multiple. In the case that the number of the first window is multiple, the second window can be at least partially blocked by the first window. That is, the second window can be blocked by one first window, or can be blocked by multiple first windows. The second window can be any window in the display interface, and the first window can be one or more windows in the display interface except the second window. The first window and the second window can be system windows or application windows. The first window and the second window can be free windows or fixed windows.

[0075] In an embodiment, as shown in Figure 2 the resource allocation strategy of the target application displayed by the second window in step S200 can be determined in the following manner:

[0076] S210, target information related to the target application displayed by the second window is determined.

[0077] S220, the resource allocation strategy of the target application is determined according to the target information.

[0078] In this embodiment, since the perception of users is different after the resource allocated to different applications is reduced, the target information related to the target application is determined. According to the target information, the resource allocation strategy of the target application is determined to reduce the influence on the perception of users. By reducing the resource allocated to the target application according to the target information, the use experience of users is avoided to be affected, thereby improving the reliability of resource scheduling.

[0079] In an embodiment, the target information includes the type of the target application. In step S220, the resource allocation strategy of the target application is determined according to the target information in the following manner:

[0080] In a case where the type of the target application is a first type, the target application is frozen.

[0081] In a case where the type of the target application is a second type, a read-write speed of the target application to data is limited.

[0082] In a case where the type of the target application is a third type, a number of permissions of the target application is reduced.

[0083] In the embodiment, in a case where the type of the target application is the first type, an influence of a reduction of the resources allocated to the target application on user perception is small, the target application is frozen to completely release the resources occupied by the target application. In a case where the type of the target application is the second type, an influence of a reduction of the resources allocated to the target application on user perception is moderate, the read-write speed of the target application to data is limited to partially release the resources occupied by the target application. In a case where the type of the target application is the third type, an influence of a reduction of the resources allocated to the target application on user perception is large, the number of permissions of the target application is reduced to release a small amount of the resources occupied by the target application. By reducing the resources allocated to the target application according to the type of the target application, the influence of the release of the resources on user perception is small, and thus the reliability of the resource scheduling is improved.

[0084] Exemplarily, the first type can be an office type, a shooting type, a payment type, etc., and the target application of the first type can be a memo, a camera, an album, etc. The second type can be a life type, a shopping type, etc., and the target application of the second type can be weather, group purchase, takeout, etc. The third type can be a video type, a travel type, etc., and the target application of the third type can be music, video, map, etc.

[0085] Exemplarily, the resource scheduling method further comprises:

[0086] In a case where the type of the target application is a fourth type, the resources allocated to the target application are kept unchanged.

[0087] The fourth type can be a communication type, an entertainment type, etc., and the target application of the fourth type can be a phone, a game, etc.

[0088] In an embodiment, the target information comprises an operation resource, a data resource and a number of permissions occupied by the target application. The resource allocation strategy of the target application determined according to the target information in step S220 can also be determined in the following manner:

[0089] In a case where the operation resource occupied by the target application is greater than an operation resource threshold, the target application is frozen.

[0090] In a case where the data resource occupied by the target application is greater than a data resource threshold, the read-write speed of the target application to data is limited.

[0091] In a case where the number of permissions of the target application is greater than the permission number threshold, the number of permissions of the target application is reduced.

[0092] In the embodiment, in a case where the operation resource occupied by the target application is greater than the operation resource threshold, the target application occupies more operation resource, the target application is frozen to release the operation resource occupied by the target application. In a case where the data resource occupied by the target application is greater than the data resource threshold, the target application occupies more data resource, the read-write speed of the target application to data is limited to release the data resource occupied by the target application. In a case where the number of permissions of the target application is greater than the permission number threshold, the activity of the target application is high, the number of permissions of the target application is reduced to reduce the activity of the target application. By reducing the resource allocated to the target application according to the resource occupied by the target application, the target application releases the resource occupied more, thereby improving the reliability of resource scheduling.

[0093] Exemplarily, the operation resource threshold can be a percentage of the total operation resource. The value range of the operation resource threshold can be 10% to 90%, and the value of the operation resource threshold can be 20%, 50%, 80%, etc. The data resource threshold can be a percentage of the total data resource. The value range of the data resource threshold can be 10% to 90%, and the value of the data resource threshold can be 20%, 50%, 80%, etc. The permission number threshold can be a part of the total number of permissions. The value of the permission number threshold can be 3, 5, 8, etc.

[0094] In an embodiment, the target information includes the priority of the target application. In step S220, the resource allocation strategy of the target application is determined according to the target information, which can also be determined in the following manner:

[0095] In a case where the priority of the target application is lower than the first preset level, the target application is frozen.

[0096] In a case where the priority of the target application is higher than or equal to the first preset level and lower than the second preset level, the read-write speed of the target application to data is limited and / or the number of permissions of the target application is reduced.

[0097] In the embodiment, in a case where the priority of the target application is lower than the first preset level, the priority of the target application is the lowest, and the target application is frozen to completely release the resource occupied by the target application. In a case where the priority of the target application is higher than or equal to the first preset level and lower than the second preset level, the priority of the target application is moderate, and the read-write speed of the target application to data is limited and / or the number of permissions of the target application is reduced to partially or slightly release the resource occupied by the target application. By reducing the resource allocated to the target application according to the priority of the target application, the target application with low importance releases more resource, thereby improving the reliability of resource scheduling.

[0098] Exemplarily, the resource scheduling method further comprises:

[0099] In a case where the priority of the target application is greater than or equal to the second preset level, the resource allocated to the target application is kept unchanged.

[0100] In an embodiment, the target information comprises a usage frequency of the target application. The determination of the resource allocation strategy of the target application according to the target information in step S220 can also be determined by the following manner:

[0101] In a case where the usage frequency of the target application is less than the first frequency threshold, the target application is frozen.

[0102] In a case where the usage frequency of the target application is greater than or equal to the first frequency threshold and less than the second frequency threshold, the read-write speed of the target application on data is limited and / or the number of permissions of the target application is reduced.

[0103] In the embodiment, in a case where the usage frequency of the target application is less than the first frequency threshold, the user's usage frequency of the target application is low, and the target application is frozen to completely release the resource occupied by the target application. In a case where the usage frequency of the target application is greater than or equal to the first frequency threshold and less than the second frequency threshold, the user's usage frequency of the target application is moderate, and the read-write speed of the target application on data is limited and / or the number of permissions of the target application is reduced to partially or slightly release the resource occupied by the target application. By reducing the resource allocated to the target application according to the usage frequency of the target application, the problem of slow response when the user calls the target application is avoided, thereby improving the reliability of resource scheduling.

[0104] Exemplarily, the value range of the first frequency threshold can be 0 times / minute-0.3 times / minute, and the value of the first frequency threshold can be 0.1 times / minute, 0.15 times / minute, 0.2 times / minute, etc. The value range of the second frequency threshold can be 0.3 times / minute-1 times / minute, and the value of the second frequency threshold can be 0.4 times / minute, 0.5 times / minute, 0.6 times / minute, etc.

[0105] Exemplarily, the resource scheduling method further comprises:

[0106] In a case where the usage frequency of the target application is greater than or equal to the second frequency threshold, the resource allocated to the target application is kept unchanged.

[0107] Exemplarily, in addition to determining the resource allocation strategy of the target application according to one type of target information, the resource allocation strategy of the target application can also be determined according to multiple types of target information. In the process of determining the resource allocation strategy of the target application according to multiple types of target information, the target resource allocation strategy corresponding to each type of target information can be determined first, and then the target resource allocation strategy that reduces the least amount of resources is determined as the resource allocation strategy. For example, the type of the target application is the first type, and the data resources occupied by the target application are less than or equal to the data resource threshold, and the target resource allocation strategy is to freeze the target application and limit the read-write speed of the target application on data. Since limiting the read-write speed of the target application on data reduces less resources than freezing the target application, the read-write speed of the target application on data is taken as the resource allocation strategy to reduce the resources allocated to the target application. By determining the target resource allocation strategy that reduces the least amount of resources as the resource allocation strategy, the use of the user is avoided from being affected by releasing too many resources of the target application, thereby improving the reliability of resource scheduling.

[0108] In an embodiment, the resource allocation strategy of the target application displayed by the second window in step S200 can also be determined in the following manner:

[0109] Determining the degree to which the second window is blocked by the first window.

[0110] In the case where the second window is partially blocked by the first window, the resource allocation strategy of the target application displayed by the second window is determined according to the picture displayed in the displayable area of the second window.

[0111] In this embodiment, since the second window can be partially blocked or completely blocked by the first window when the second window is blocked by the first window, the degree to which the second window is blocked by the first window is determined to reduce the resources allocated to the target application in a corresponding manner under different blocking degrees. In the case where the second window is partially blocked by the first window, the target application displayed by the second window is in a partially invisible state, and the resources allocated to the target application are reduced in a corresponding manner according to the picture displayed in the displayable area of the second window. By reducing the resources allocated to the target application according to the degree to which the second window is blocked by the first window, the user experience is not affected, and the electronic device is prevented from freezing, thereby improving the reliability of resource scheduling.

[0112] In an embodiment, the resource allocation strategy of the target application displayed by the second window according to the picture displayed in the displayable area of the second window in the above steps is determined in the following manner:

[0113] In the case where the picture displayed in the displayable area of the second window is a static picture, the target application is frozen.

[0114] In a case where the picture displayed in the displayable area of the second window is a dynamic picture and a frame rate of the dynamic picture is less than a preset frame rate, the read-write speed of the data by the target application is limited and / or the number of permissions of the target application is reduced.

[0115] In a case where the picture displayed in the displayable area of the second window is a static picture, the number of resources allocated to the target application does not affect the user experience, and the target application is frozen to completely release the resources occupied by the target application. In a case where the picture displayed in the displayable area of the second window is a dynamic picture and a frame rate of the dynamic picture is less than a preset frame rate, the number of resources allocated to the target application affects the user experience, and the read-write speed of the data by the target application is limited and / or the number of permissions of the target application is reduced to partially or slightly release the resources occupied by the target application. By reducing the resources allocated to the target application according to the picture displayed in the displayable area of the second window, the electronic device is prevented from freezing without affecting the user experience, thereby improving the reliability of resource scheduling.

[0116] For example, the preset frame rate can be in a range of 0 frame / s to 60 frame / s, and can be 10 frame / s, 15 frame / s, 20 frame / s, etc.

[0117] For example, in a case where the picture displayed in the displayable area of the second window is a static picture, in addition to freezing the target application, a resource allocation strategy of the target application can also be determined according to the target information.

[0118] For example, in a case where the picture displayed in the displayable area of the second window is a static picture, a resource allocation strategy of the target application can be determined according to the target information in the same manner as in step S220, which is not described herein.

[0119] For example, the resource scheduling method further includes:

[0120] In a case where the picture displayed in the displayable area of the second window is a dynamic picture and a frame rate of the dynamic picture is greater than or equal to a preset frame rate, the resources allocated to the target application remain unchanged.

[0121] For example, after determining the degree to which the second window is blocked by the first window in the above step, the resource allocation strategy of the target application displayed by the second window in step S200 further includes:

[0122] In a case where the second window is completely blocked by the first window, a resource allocation strategy of the target application is determined according to the target information.

[0123] In a case where the second window is completely blocked by the first window, the target application's resource allocation strategy is determined according to the target information.

[0124] In an embodiment, the target application's resource allocation strategy displayed by the second window in step S200 can also be determined in the following manner:

[0125] Target information related to the target application displayed by the second window is determined.

[0126] The degree to which the second window is blocked by the first window is determined.

[0127] In a case where the second window is completely blocked by the first window, the target application's resource allocation strategy is determined according to the target information.

[0128] In a case where the second window is partially blocked by the first window, the target application's resource allocation strategy displayed by the second window is determined according to the screen displayed in the second window's displayable area and the target information.

[0129] In this embodiment, the target information related to the target application is determined because users have different perceptions of different applications after the allocated resources are reduced. The degree to which the second window is blocked by the first window is determined to reduce the resources allocated to the target application in a corresponding manner under different degrees of blocking. In a case where the second window is completely blocked by the first window, the target application displayed by the second window is in a completely invisible state, and the target information related to the target application is determined and the resource allocation strategy is determined according to the target information. In a case where the second window is partially blocked by the first window, the target application's resource allocation strategy displayed by the second window is determined according to the screen displayed in the second window's displayable area and the target information. By combining the target information and the degree to which the second window is blocked, the resource allocation strategy can be determined to avoid the electronic device from freezing without affecting the user's experience, thereby improving the reliability of resource scheduling.

[0130] For example, in a case where the second window is completely blocked by the first window, the target application's resource allocation strategy is determined according to the target information in the same manner as in step S220, which is not described here.

[0131] In an embodiment, the target application's resource allocation strategy displayed by the second window in the above step is determined in the following manner according to the screen displayed in the second window's displayable area and the target information:

[0132] In a case where the screen displayed in the second window's displayable area is a static screen, the target application's resource allocation strategy is determined according to the target information.

[0133] In a case where the picture displayed in the displayable area of the second window is a dynamic picture and a frame rate of the dynamic picture is less than a preset frame rate, the read / write speed of the target application to data is limited and / or the number of permissions of the target application is reduced.

[0134] In a case where the picture displayed in the displayable area of the second window is a static picture, the second window can be considered to be completely blocked, and the resource allocation strategy of the target application is determined according to the target information. In a case where the picture displayed in the displayable area of the second window is a dynamic picture and a frame rate of the dynamic picture is less than a preset frame rate, the number of resources allocated to the target application will affect the user experience, and the read / write speed of the target application to data is limited and / or the number of permissions of the target application is reduced to partially or slightly release the resources occupied by the target application. By reducing the resources allocated to the target application according to the picture displayed in the displayable area of the second window, the electronic device is prevented from freezing without affecting the user experience, thereby improving the reliability of resource scheduling.

[0135] For example, in a case where the picture displayed in the displayable area of the second window is a static picture, the manner of determining the resource allocation strategy of the target application according to the target information can be the same as that in step S220, which is not described herein.

[0136] In summary, the resource allocation strategy of the target application can be determined according to the target information and / or the picture displayed in the displayable area of the second window.

[0137] In an embodiment, the resource allocation strategy of the target application displayed in the second window in step S200 can also be determined in the following manner:

[0138] The total resources occupied by each application are determined.

[0139] In a case where the total resources occupied by each application is greater than or equal to a first resource threshold, the target application is frozen.

[0140] In a case where the total resources occupied by each application is less than the first resource threshold and greater than or equal to a second resource threshold, the read / write speed of the target application to data is limited.

[0141] In a case where the total resources occupied by each application is less than the second resource threshold, the number of permissions of the target application is reduced.

[0142] In this embodiment, since the total resource occupied by each application can determine whether the running of the electronic device will be stuck, the total resource occupied by each application is determined, and the total resource occupied by each application is combined to reduce the resource allocated to the target application. In the case where the total resource occupied by each application is greater than or equal to the first resource threshold, the total resource occupied by each application is more, the target application is frozen to completely release the resource occupied by the target application. In the case where the total resource occupied by each application is less than the first resource threshold and greater than or equal to the second resource threshold, the total resource occupied by each application is moderate, the read and write speed of the target application to data is limited to partially release the resource occupied by the target application. In the case where the total resource occupied by each application is less than the second resource threshold, the total resource occupied by each application is less, the number of permissions of the target application is reduced to release a small amount of resource occupied by the target application. By reducing the resource allocated to the target application according to the total resource occupied by each application, the electronic device is avoided from being stuck without affecting the user experience, thereby improving the reliability of resource scheduling.

[0143] Exemplarily, the first resource threshold can be a percentage of the total resource. The value range of the first resource threshold can be 50% to 90%, and the value of the first resource threshold can be 60%, 70%, 80%, etc. The second resource threshold can be a percentage of the total resource. The value range of the second resource threshold can be 10% to 50%, and the value of the second resource threshold can be 20%, 30%, 40%, etc.

[0144] In an embodiment, as shown in FIG. 2, after determining the resource allocation strategy of the target application displayed by the second window in step S200, the resource scheduling method further includes: Figure 3

[0145] S300, in response to the target operation of the user, setting the window in the display interface.

[0146] S310, in the case where the second window is not blocked by the first window, restoring the resource allocated to the target application.

[0147] In this embodiment, since the user may set the window in the display interface during the use of the electronic device. In response to the target operation of the user, the window in the display interface is set, so that the window in the display interface changes as expected by the user. Since the position, size, etc. of the first window and / or the second window may change after the user sets the window in the display interface, the degree to which the second window is blocked by the first window may change. In the case where the second window is not blocked by the first window, the target application displayed by the second window is in a visible state, and the resource allocated to the target application is restored. By restoring the resource allocated to the target application in the case where the second window is not blocked by the first window, the target application is avoided from being unable to respond, thereby improving the reliability of resource scheduling. ​

[0148] In an embodiment, the resource scheduling method further includes:

[0149] In response to the target operation of the user, the window in the display interface is set.

[0150] It is determined whether the second window is blocked by the first window.

[0151] In this embodiment, the user may set the window in the display interface during use of the electronic device. In response to the target operation of the user, the window in the display interface is set, so that the window in the display interface changes as expected by the user. Since the position, size, etc. of the first window and / or the second window may change after the user sets the window in the display interface, it is determined whether the second window is blocked by the first window to determine whether to reduce the resources allocated to the target application. By determining whether the second window is blocked by the first window after the user performs the target operation, the resources allocated to the target application can be reduced in a timely manner in the case that the second window is blocked by the first window, thereby reducing the possibility of the electronic device freezing.

[0152] In an embodiment, the target operation includes a first sub-operation. The setting of the window in the display interface in response to the target operation of the user in the above steps can be determined in the following manner:

[0153] In response to the first sub-operation of the user, the window is opened in the display interface.

[0154] In this embodiment, in response to the first sub-operation of the user, the user needs to open a new application, and the window is opened in the display interface to display the newly opened application. Since the opened window may block the second window as the first window after the window is opened in the display interface, it is determined whether the second window is blocked by the first window. By determining whether the second window is blocked by the first window after the window is opened in the display interface, the resources allocated to the target application can be reduced in a timely manner in the case that the second window is blocked by the first window, thereby reducing the possibility of the electronic device freezing.

[0155] In an embodiment, the target operation includes a second sub-operation. The setting of the window in the display interface in response to the target operation of the user in the above steps can also be determined in the following manner:

[0156] In response to the second sub-operation of the user, the window is closed in the display interface.

[0157] In this embodiment, in response to the second sub-operation of the user, the user needs to close the opened application, and the window is closed on the display interface. Since the second window can not be blocked by the first window after the window as the first window is closed on the display interface, it is determined whether the second window is blocked by the first window. By determining whether the second window is blocked by the first window after the window is closed on the display interface, the resource allocated to the target application can be timely recovered in the case that the second window is not blocked by the first window, thereby improving the reliability of resource scheduling.

[0158] In an embodiment, the target operation includes a third sub-operation. In the above step, the setting of the window on the display interface in response to the target operation of the user can also be determined in the following manner:

[0159] In response to the third sub-operation of the user, the window is moved on the display interface.

[0160] In this embodiment, in response to the third sub-operation of the user, the user needs to adjust the position of the window, and the window is moved on the display interface. Since the second window can be blocked by the first window or not blocked by the first window after the window is moved on the display interface, it is determined whether the second window is blocked by the first window. By determining whether the second window is blocked by the first window after the window is moved on the display interface, the resource allocated to the target application can be timely reduced in the case that the second window is blocked by the first window and timely recovered in the case that the second window is not blocked by the first window, thereby reducing the possibility of the electronic device being stuck and improving the reliability of resource scheduling.

[0161] For example, when the user performs the third sub-operation on the window, it is determined whether the window on which the third sub-operation is performed is a free window, so as to avoid the window being unable to be moved. In the case that the window on which the third sub-operation is performed is a free window, it is determined whether the window on which the third sub-operation is performed is a transparent window, so as to avoid the additional determination process due to the movement of the window not affecting the blocking of the second window. In the case that the window on which the third sub-operation is performed is a non-transparent window, it is determined whether the position on which the third sub-operation is performed is a specific position of the window (such as the top or bottom of the window), so as to avoid the window being unable to be moved. In the case that the position on which the third sub-operation is performed is the specific position of the window, the window is moved on the display interface according to the third sub-operation.

[0162] In an embodiment, the target operation includes a fourth sub-operation. In the above step, the setting of the window on the display interface in response to the target operation of the user can also be determined in the following manner:

[0163] In response to the fourth sub-operation of the user, the size of the window is adjusted on the display interface.

[0164] In this embodiment, in response to the fourth sub-operation of the user, the user needs to adjust the size of the window, and the size of the window is adjusted on the display interface. Since the second window may be blocked by the first window or not blocked by the first window after the size of the window is adjusted on the display interface, it is determined whether the second window is blocked by the first window. By determining whether the second window is blocked by the first window after the size of the window is adjusted on the display interface, the resources allocated to the target application can be reduced in a timely manner in the case that the second window is blocked by the first window, and the resources allocated to the target application can be restored in a timely manner in the case that the second window is not blocked by the first window, thereby reducing the possibility of the electronic device freezing and improving the reliability of resource scheduling.

[0165] In an embodiment, the resource scheduling method further includes:

[0166] Every interval preset time, it is determined whether the second window is blocked by the first window.

[0167] In this embodiment, since the user may set the window in the display interface during the use of the electronic device, the second window is blocked by the first window or not blocked by the first window. Or, for the application that is automatically opened or automatically closed, the corresponding window in the display interface is automatically opened or automatically closed, so that the second window is blocked by the first window or not blocked by the first window. Every interval preset time, it is determined whether the second window is blocked by the first window, to determine whether to reduce the resources allocated to the target application. By determining whether the second window is blocked by the first window every interval preset time, the resources allocated to the target application can be reduced in a timely manner in the case that the second window is blocked by the first window, and the resources allocated to the target application can be restored in a timely manner in the case that the second window is not blocked by the first window, thereby reducing the possibility of the electronic device freezing and improving the reliability of resource scheduling.

[0168] Exemplarily, the preset time can be in the range of 1s-600s. The preset time can be 20s, 60s, 120s, etc. The value of the preset time can also be related to the frequency of the user operating the electronic device and the application displayed by the window located at the uppermost layer of the display hierarchy.

[0169] In an embodiment, as shown in Figure 4 Before determining whether the second window is blocked by the first window in the above step, the resource scheduling method further includes:

[0170] S400, determining the first window whose display hierarchy is higher than the second window.

[0171] S410, determining the displayable area of the second window according to the position of the first window whose display hierarchy is higher than the second window and the position of the second window.

[0172] S420. Determine whether the second window is blocked by the first window according to the displayable area of the second window.

[0173] In this embodiment, since a window with a high display level can block a window with a low display level, the first window with a higher display level than the second window is determined to determine the first window that can block the second window. Since whether the first window can block the second window also depends on whether the first window and the second window overlap, the displayable area of the second window is determined according to the position of the first window with a higher display level than the second window and the position of the second window. Whether the second window is blocked by the first window is determined according to the displayable area of the second window, which avoids false determination due to different blocking degrees. By combining the display level and the position to determine the displayable area of the second window, the displayable area of the second window can be quickly and accurately determined, thereby improving the reliability of resource scheduling.

[0174] For example, the determination of whether the second window is blocked by the first window in the above steps and the determination of the resource allocation strategy of the target application displayed by the second window in step S200 can take each window in the display interface as the second window in order from low to high display level, and take the windows in the display interface other than the second window as the first window. By traversing each window in the display interface, the resources allocated to the application displayed by the blocked window can be reduced, which can reduce the resources occupied by the application displayed by the blocked window as much as possible to reduce the possibility of the electronic device freezing.

[0175] For example, for the application whose resource allocation is reduced in the current traversal process, if the window corresponding to the application is still blocked in the next traversal process, the allocated resources can remain unchanged or continue to be reduced.

[0176] In an embodiment, the determination of the first window with a higher display level than the second window in step S400 can be determined in the following manner:

[0177] Obtain the display order of the first window and the second window.

[0178] Determine the first window above the second window in the display order as the first window with a higher display level than the second window.

[0179] In this embodiment, the display order of the first window and the second window is obtained to obtain the display order of the first window and the second window. Since the window with a high display order is preferentially displayed in the display interface, the first window above the second window in the display order is determined as the first window with a higher display level than the second window. By determining the first window with a higher display level than the second window according to the display order, the level of the first window and the second window in the display process can be distinguished, thereby reducing the complexity of resource scheduling.

[0180] Exemplarily, the display order can be determined in combination with the display sequence value of the window and the operation time. The larger the display sequence value of the window is, the higher the display order of the window is. The display sequence values can be sorted in descending order so that the display sequence value corresponding to the window located at the top is high. In the case of the same display sequence value, the display sequence value of the window with the operation time later is set above the display sequence value of the window with the operation time earlier, so as to obtain the display order of each window. After the user operates the window, the user needs to use the application displayed by the window, and adjusts the display sequence value of the window to the top. The display sequence value can be recorded in the form of a table.

[0181] In an embodiment, the first window with the display level higher than the second window in step S400 can also be determined by the following method:

[0182] The operation time of the first window and the second window is determined.

[0183] The first window with the operation time later than the second window is determined as the first window with the display level higher than the second window.

[0184] In the embodiment, since the application displayed by the window operated later is the application recently used by the user, the operation time of the first window and the second window is determined, and the first window with the operation time later than the second window is determined as the first window with the display level higher than the second window. By determining the first window with the display level higher than the second window according to the operation time, the attention degree of the user to the target application is facilitated to be determined for resource scheduling, so as to improve the reliability of resource scheduling.

[0185] In an embodiment, the displayable area of the second window in step S410 is determined according to the position of the first window with the display level higher than the second window and the position of the second window by the following method:

[0186] The first coordinate of each vertex of the first window with the display level higher than the second window and the second coordinate of each vertex of the second window are determined.

[0187] According to the first coordinate and the second coordinate, the area of the second window which does not coincide with the first window with the display level higher than the second window is determined as the displayable area of the second window.

[0188] In this embodiment, the first coordinates of the vertices of the first window with a display level higher than that of the second window and the second coordinates of the vertices of the second window are determined, so as to determine the positions of the first window and the second window according to the first coordinates and the second coordinates. According to the first coordinates and the second coordinates, the area where the second window does not coincide with the first window with a display level higher than that of the second window is determined as the displayable area of the second window, and the area not blocked by the first window is used as the displayable area. By determining the displayable area of the second window according to the first coordinates and the second coordinates, the position of the displayable area can be accurately determined for resource scheduling, thereby improving the reliability of resource scheduling.

[0189] Exemplarily, for determining the first coordinates of the vertices of the first window with a display level higher than that of the second window and the second coordinates of the vertices of the second window in the above steps, a plane rectangular coordinate system can be established on the display interface, and each vertex of each window corresponds to a coordinate. As Figure 5 shown, the first coordinates of the first window 10 are (x1, y1), (x2, y1), (x1, y2), (x2, y2), and the second coordinates of the second window 20 are (m1, n1), (m2, n1), (m1, n2), (m2, n2). If x2 < m1, x1 > m2, y2 < n1 or y1 > n2, then the first window 10 and the second window 20 do not coincide. If x1 < m1 < x2 and y1 < n1 < y2, then the coordinates of the vertices of the area where the second window 20 coincides with the first window 10 with a display level higher than that of the second window 20 are (m1, n1), (x2, n1), (m1, y2), (x2, y2). The displayable area of the second window 20 is two quadrilaterals, and the coordinates of their vertices are (x1, y1), (m1, y1), (x1, y2), (m1, y2) and (m1, y1), (x2, y1), (m1, n1), (x2, n1) respectively. Among them, the coordinates of the vertices of each window and the coordinates of the displayable area of each window can be recorded in the form of a table.

[0190] In one embodiment, whether the second window is blocked by the first window in the above steps can be determined by the following method:

[0191] In the case where the displayable area of the second window is the entire display area, it is determined that the second window is not blocked by the first window.

[0192] In the case where the displayable area of the second window is not the entire display area, it is determined that the second window is blocked by the first window.

[0193] In the embodiment, when the displayable area of the second window is the entire display area, the target application displayed by the second window is in a fully visible state, and it is determined that the second window is not blocked by the first window. When the displayable area of the second window is not the entire display area, the target application displayed by the second window is in an at least partially invisible state, and it is determined that the second window is blocked by the first window. By determining whether the second window is blocked by the first window according to whether the display area of the second window is the entire display area, the resources allocated to the target application can be reduced as much as possible, thereby reducing the possibility that the electronic device is stuck.

[0194] In an embodiment, the determination of whether the second window is blocked by the first window in the above step can also be determined in the following manner:

[0195] When the second window has a displayable area, it is determined that the second window is not blocked by the first window.

[0196] When the second window has no displayable area, it is determined that the second window is blocked by the first window.

[0197] In the embodiment, when the second window has a displayable area, the target application displayed by the second window is in an at least partially visible state, and it is determined that the second window is not blocked by the first window. When the second window has no displayable area, the target application displayed by the second window is in a fully invisible state, and it is determined that the second window is blocked by the first window. By determining whether the second window is blocked by the first window according to whether the second window has a displayable area, the use of the user can be avoided from being affected due to the reduction of the resources allocated to the target application, thereby improving the reliability of the resource scheduling.

[0198] In an embodiment, the first window having a display level higher than the second window is a non-transparent window.

[0199] In the embodiment, since the transparent first window blocks the second window, the target application displayed by the second window can still be perceived by the user, and it is determined that the first window having a display level higher than the second window is a non-transparent window. By determining the first window having a display level higher than the second window is a non-transparent window, the use experience of the user can be avoided from being affected after the resources allocated to the target application are reduced, thereby improving the reliability of the resource scheduling.

[0200] The embodiments of the present disclosure provide a resource scheduling method, as shown in Figure 6 The method comprises the following steps:

[0201] S500, displaying a first window on a display interface.

[0202] S510, in response to a target operation of a user, setting a window on the display interface.

[0203] S520, acquire the display order of the first window and the second window.

[0204] S530, determine the first window whose display order is above the second window as the first window whose display level is higher than the second window.

[0205] S540, determine the first coordinates of each vertex of the first window whose display level is higher than the second window and the second coordinates of each vertex of the second window.

[0206] S550, according to the first coordinates and the second coordinates, determine the area of the second window which is not overlapped with the first window whose display level is higher than the second window as the displayable area of the second window.

[0207] S560, in the case that the second window has the displayable area, determine that the second window is not blocked by the first window.

[0208] S570, in the case that the second window has no displayable area, determine that the second window is blocked by the first window.

[0209] S580, in the case that the second window is blocked by the first window, determine the target information related to the target application.

[0210] S590, according to the target information, reduce the resource allocated to the target application in a corresponding manner.

[0211] S600, in response to the target operation of the user, set the window in the display interface again.

[0212] S610, in the case that the second window is not blocked by the first window, restore the resource allocated to the target application.

[0213] In this embodiment, the first window is displayed on the display interface, so that the user interacts with the application displayed by the first window. In response to the target operation of the user, the windows in the display interface are set to change as expected by the user. The display order of the first window and the second window is obtained, and the first window above the second window in the display order is determined as the first window with a higher display level than the second window, to determine the first window that can block the second window. The first coordinates of the vertices of the first window and the second coordinates of the vertices of the second window are determined, to determine the positions of the first window and the second window. According to the first coordinates and the second coordinates, the area of the second window that is not overlapped with the first window with a higher display level than the second window is determined as the displayable area of the second window, to determine whether the second window is blocked by the first window according to the displayable area of the second window. In the case that the second window has the displayable area, the user can perceive the target application displayed by the second window, and it is determined that the second window is not blocked by the first window. In the case that the second window does not have the displayable area, the user cannot perceive the target application displayed by the second window, and it is determined that the second window is blocked by the first window. In the case that the second window is blocked by the first window, the target information related to the target application is determined, to reduce the resources allocated to the target application according to the target information. In response to the target operation of the user, the windows in the display interface are set again to change as expected by the user. In the case that the second window is not blocked by the first window, the user can perceive the target application displayed by the second window, and the resources allocated to the target application are restored. By reducing the resources allocated to the target application displayed by the blocked second window, the resources occupied by the target application are reduced without affecting the user experience, so that the possibility of the electronic device freezing is reduced. At the same time, since the resources allocated to the target application are reduced, the power consumption of the target application is reduced, so that the endurance of the electronic device is improved.

[0214] In one example embodiment, a resource scheduling apparatus is provided for implementing the above method. Referring to Figure 7 The resource scheduling apparatus can include a display module 100, a determination module 200 and an allocation module 300, wherein in the process of implementing the above method,

[0215] The display module 100 is configured to display the first window on the display interface.

[0216] The determination module 200 is configured to determine the resource allocation strategy of the target application displayed by the second window in the case that the second window is blocked by the first window in the display interface.

[0217] The allocation module 300 is configured to reduce the resources allocated to the target application displayed by the second window based on the resource allocation strategy.

[0218] In one example embodiment, a resource scheduling apparatus is provided, in which the determining module 200 is configured to:

[0219] determine target information related to the target application displayed by the second window.

[0220] determine a resource allocation strategy of the target application according to the target information.

[0221] In one example embodiment, a resource scheduling apparatus is provided, in which the determining module 200 is configured to:

[0222] freeze the target application in a case where the type of the target application is a first type.

[0223] limit a read-write speed of the target application on data in a case where the type of the target application is a second type.

[0224] reduce a number of permissions of the target application in a case where the type of the target application is a third type.

[0225] In one example embodiment, a resource scheduling apparatus is provided, in which the determining module 200 is configured to:

[0226] freeze the target application in a case where an operation resource occupied by the target application is greater than an operation resource threshold.

[0227] limit a read-write speed of the target application on data in a case where a data resource occupied by the target application is greater than a data resource threshold.

[0228] reduce a number of permissions of the target application in a case where the number of permissions of the target application is greater than a permission number threshold.

[0229] In one example embodiment, a resource scheduling apparatus is provided, in which the determining module 200 is configured to:

[0230] freeze the target application in a case where a priority of the target application is lower than a first preset level.

[0231] limit a read-write speed of the target application on data and / or reduce a number of permissions of the target application in a case where the priority of the target application is higher than or equal to the first preset level and lower than a second preset level.

[0232] In one example embodiment, a resource scheduling apparatus is provided, in which the determining module 200 is configured to:

[0233] freeze the target application in a case where a usage frequency of the target application is less than a first frequency threshold.

[0234] In a case where the usage frequency of the target application is greater than or equal to the first frequency threshold and less than the second frequency threshold, the read-write speed of the target application to data is limited and / or the number of permissions of the target application is reduced.

[0235] In one example embodiment, a resource scheduling apparatus is provided, in which the determining module 200 is configured to:

[0236] determine the degree to which the second window is blocked by the first window.

[0237] In a case where the second window is partially blocked by the first window, the resource allocation strategy of the target application displayed by the second window is determined according to the picture displayed in the displayable area of the second window.

[0238] In one example embodiment, a resource scheduling apparatus is provided, in which the determining module 200 is configured to:

[0239] In a case where the picture displayed in the displayable area of the second window is a static picture, the target application is frozen.

[0240] In a case where the picture displayed in the displayable area of the second window is a dynamic picture and the frame rate of the dynamic picture is less than a preset frame rate, the read-write speed of the target application to data is limited and / or the number of permissions of the target application is reduced.

[0241] In one example embodiment, a resource scheduling apparatus is provided, in which the determining module 200 is configured to:

[0242] determine the first window whose display level is higher than the second window.

[0243] determine the displayable area of the second window according to the position of the first window whose display level is higher than the second window and the position of the second window.

[0244] determine whether the second window is blocked by the first window according to the displayable area of the second window.

[0245] In one example embodiment, a resource scheduling apparatus is provided, in which the determining module is configured to:

[0246] obtain the display order of the first window and the second window.

[0247] determine the first window whose display order is above the second window as the first window whose display level is higher than the second window.

[0248] In one example embodiment, a resource scheduling apparatus is provided, in which the determining module is configured to:

[0249] determining an operation time point of the first window and the second window.

[0250] determining that the first window whose operation time point is later than the second window has a higher display level than the second window.

[0251] In an example embodiment, a resource scheduling apparatus is provided, in which a determining module is configured to:

[0252] determining first coordinates of each vertex of the first window whose display level is higher than the second window and second coordinates of each vertex of the second window.

[0253] determining, according to the first coordinates and the second coordinates, an area of the second window which does not coincide with the first window whose display level is higher than the second window as a displayable area of the second window.

[0254] In an example embodiment, an electronic device is provided, which can be a mobile phone, a notebook computer, a tablet computer, a wearable device, or the like.

[0255] Reference Figure 8 As shown, the electronic device 400 can include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input / output (I / O) interface 412, a sensor component 414, and a communication component 416.

[0256] The processing component 402 usually controls overall operations of the electronic device 400, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 402 can include one or more processors 420 to execute instructions to complete all or part of steps of the methods described above. In addition, the processing component 402 can include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.

[0257] The memory 404 is configured to store various types of data to support operations of the electronic device 400. Examples of the data include instructions for any application or method operating on the electronic device 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0258] The power component 406 provides power to the various components of the electronic device 400. The power component 406 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 400.

[0259] The multimedia component 408 includes a screen providing an output interface between the electronic device 400 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 408 includes a front camera module and / or a rear camera module. The front camera module and / or the rear camera module can receive external multimedia data when the electronic device 400 is in an operation mode, such as a photographing mode or a video mode. Each of the front camera module and the rear camera module can be a fixed optical lens system or have a focal length and optical zoom capability.

[0260] The audio component 410 is configured to output and / or input an audio signal. For example, the audio component 410 includes a microphone (MIC) configured to receive an external audio signal when the electronic device 400 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting an audio signal.

[0261] The I / O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0262] The sensor component 414 includes one or more sensors for providing status assessments for various aspects of the electronic device 400. For example, the sensor component 414 can detect an open / closed position of the electronic device 400, relative positioning of components, such as a display and a keypad of the electronic device 400, a change in position of the electronic device 400 or a component of the electronic device 400, presence or absence of user contact with the electronic device 400, orientation or acceleration / deceleration of the electronic device 400, and temperature changes of the electronic device 400. The sensor component 414 can include an optical sensor for detecting ambient light, a proximity sensor configured to detect the presence of nearby objects without any physical touch, a light sensor such as a CMOS or CCD image sensor for use in an imaging application, and / or a gyroscope sensor, a magnetometer sensor, a pressure sensor, or a temperature sensor in some embodiments.

[0263] The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and another terminal. The electronic device 400 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an example embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technology.

[0264] In an example embodiment, the electronic device 400 can be implemented using one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements to perform the methods described above or combinations thereof.

[0265] In an example embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, is also provided. The instructions can be executable by the processor 420 of the electronic device 400 to implement the methods described above or combinations thereof. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage terminal, and the like. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the methods described above or combinations thereof.

[0266] Those skilled in the art will readily understand that the application is well adapted to carry out the objects and obtain the ends and advantages mentioned, as well as those inherent therein, and that the application is capable of being carried to various other embodiments and its practical application obvious to those skilled in the art. The application is not to be limited to the details shown, since the generic principles of the application can be applied to other embodiments. The scope of the application is to be defined by the claims appended hereto, rather than by the specific embodiments presented by way of example herein.

[0267] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In the present specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Also, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the present specification and the features of the different embodiments or examples, without contradiction.

[0268] In addition, the terms "first", "second", etc. are used only for the purpose of description and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "a plurality of" is at least two, for example, two, three, etc., unless otherwise explicitly specified.

[0269] It should be understood that various forms of flow shown above can be reordered, added or deleted steps. For example, the steps described in the present disclosure can be executed in parallel, in sequence or in different order, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, which is not limited herein.

[0270] The above detailed description does not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent replacement and improvement within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.

Claims

1. A resource scheduling method, characterized in that, The resource scheduling method comprises: displaying a first window on a display interface; in a case where a second window in the display interface is blocked by the first window, determining a resource allocation strategy of a target application displayed by the second window; based on the resource allocation strategy, reducing the resources allocated to the target application.

2. The method of claim 1, wherein, The determination of the resource allocation strategy of the target application displayed by the second window comprises: determining target information related to the target application displayed by the second window; determining the resource allocation strategy of the target application according to the target information.

3. The method of claim 2, wherein, The target information comprises the type of the target application; and the determination of the resource allocation strategy of the target application according to the target information comprises: in a case where the type of the target application is a first type, freezing the target application; in a case where the type of the target application is a second type, limiting the read-write speed of the target application on data; in a case where the type of the target application is a third type, reducing the number of permissions of the target application.

4. The method of claim 2, wherein, The target information comprises the number of computing resources, data resources and permissions occupied by the target application; and the determination of the resource allocation strategy of the target application according to the target information comprises: in a case where the computing resources occupied by the target application are greater than a computing resource threshold, freezing the target application; in a case where the data resources occupied by the target application are greater than a data resource threshold, limiting the read-write speed of the target application on data; in a case where the number of permissions of the target application is greater than a permission number threshold, reducing the number of permissions of the target application.

5. The method of claim 2, wherein, The target information comprises the priority of the target application; and the determination of the resource allocation strategy of the target application according to the target information comprises: in a case where the priority of the target application is lower than a first preset level, freezing the target application; in a case where the priority of the target application is higher than or equal to the first preset level and lower than a second preset level, limiting the read-write speed of the target application on data and / or reducing the number of permissions of the target application.

6. The method of claim 2, wherein, The target information comprises the use frequency of the target application; and the determination of the resource allocation strategy of the target application according to the target information comprises: in a case where the use frequency of the target application is less than a first frequency threshold, freezing the target application; in a case where the use frequency of the target application is greater than or equal to the first frequency threshold and less than a second frequency threshold, limiting the read-write speed of the target application on data and / or reducing the number of permissions of the target application.

7. The method of claim 1, wherein, The determination of the resource allocation strategy of the target application displayed by the second window comprises: determining the degree to which the second window is blocked by the first window; in a case where the second window is partially blocked by the first window, determining the resource allocation strategy of the target application displayed by the second window according to the screen displayed in the displayable area of the second window.

8. The method of claim 7, wherein, The determination of the resource allocation strategy of the target application displayed by the second window according to the screen displayed in the displayable area of the second window comprises: freeze the target application when a picture displayed in the displayable area of the second window is a static picture; limit the read-write speed of data of the target application and / or reduce the number of permissions of the target application when a picture displayed in the displayable area of the second window is a dynamic picture and the frame rate of the dynamic picture is less than a preset frame rate.

9. The method of claim 1 to 8, wherein, The resource scheduling method further comprises: determining the first window whose display level is higher than the second window; determining the displayable area of the second window according to the position of the first window whose display level is higher than the second window and the position of the second window; determining whether the second window is blocked by the first window according to the displayable area of the second window.

10. The method of claim 9, wherein, The determination of the first window whose display level is higher than the second window comprises: obtaining the display order of the first window and the second window; determining the first window above the second window in the display order as the first window whose display level is higher than the second window; or determining the operation time of the first window and the second window; determining the first window later than the second window in the operation time as the first window whose display level is higher than the second window.

11. The method of claim 9, wherein, The determination of the displayable area of the second window according to the position of the first window whose display level is higher than the second window and the position of the second window comprises: determining the first coordinates of each vertex of the first window whose display level is higher than the second window and the second coordinates of each vertex of the second window; determining the displayable area of the second window as the area of the second window not overlapping with the first window whose display level is higher than the second window according to the first coordinates and the second coordinates.

12. The method of claim 9, wherein, The first window whose display level is higher than the second window is a non-transparent window.

13. A resource scheduling apparatus, characterized by comprising: The resource scheduling apparatus comprises: a display module configured to display a first window on a display interface; a determination module configured to determine a resource allocation strategy of a target application displayed on a second window on the display interface when the second window is blocked by the first window; an allocation module configured to reduce the resources allocated to the target application displayed on the second window based on the resource allocation strategy.

14. An electronic device, comprising: The electronic device comprises: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to perform the resource scheduling method according to any one of claims 1 to 12.

15. A non-transitory computer-readable storage medium, comprising: When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the resource scheduling method according to any one of claims 1 to 12.