Resource allocation method and device, equipment and computer storage medium
By obtaining the physiological sign data of the end user and dynamically adjusting the resource configuration, the problem of insufficient resource allocation in the multi-task scenario in the existing technology is solved, and higher flexibility and accuracy are achieved, improving terminal intelligence and user experience.
Patent Information
- Application Number
- CN202411252186.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-27
AI Technical Summary
The existing technology cannot effectively and dynamically adjust resource configuration in multi-task scenarios, resulting in the inability to obtain the maximum resource configuration for important tasks, reducing the intelligence and user experience of the terminal.
By obtaining the physiological sign data of the target object, such as blood pressure, heart rate, and body temperature, the resource priority of the task is determined and resource allocation is carried out based on this priority, ensuring that important tasks obtain the maximum resource allocation.
It improves the flexibility and accuracy of resource allocation, improves the intelligence and user experience of the terminal, and provides the maximum resource supply when important tasks are provided, ensuring that users meet task expectations.
Smart Images

Figure CN119201446A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multi-task resource configuration, and in particular to a resource configuration method and device, equipment and computer storage medium. Background Art
[0002] During the use of terminal equipment, for multi-tasking application scenarios, some important tasks are often unable to obtain resource allocations that meet their task resource requirements due to the inability to reasonably allocate resources.
[0003] Common resource configuration solutions, such as pre-setting an application whitelist to accelerate specified applications, cannot be dynamically adjusted for specific scenarios of specific users.
[0004] The current resource allocation scheme for multiple tasks cannot guarantee that tasks with high importance can obtain the maximum resource allocation. The flexibility and accuracy of resource allocation are poor, which reduces the intelligence of the terminal. Summary of the invention
[0005] The embodiments of the present application provide a resource configuration method and apparatus, a device and a computer storage medium, which can determine the resource priority of a task according to the physiological signs of a target object, and then perform resource configuration of the task resources based on the resource priority, thereby ensuring that tasks with high importance can receive the maximum resource configuration, greatly improving the flexibility and accuracy of resource configuration, and enhancing the intelligence of the terminal.
[0006] The technical solution of the embodiment of the present application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a resource configuration method, the method comprising:
[0008] Acquire first physiological sign data of the target object corresponding to a first task at the current moment; wherein the first task is a task corresponding to a foreground application running at the current moment; and the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data;
[0009] determining a resource priority of a first task based on the first physiological sign data;
[0010] Resources are configured for the first task and the second task based on the resource priority of the first task; wherein the second task is a task corresponding to the background application running at the current moment.
[0011] In a second aspect, an embodiment of the present application provides a resource configuration device, the resource configuration device comprising:
[0012] an acquisition unit, configured to acquire first physiological sign data of the target object corresponding to a first task at a current moment; wherein the first task is a task corresponding to a foreground application running at a current moment; and the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data;
[0013] a determining unit, configured to determine a resource priority of a first task based on the first physiological sign data;
[0014] The configuration unit is used to perform resource configuration on the first task and the second task based on the resource priority of the first task; wherein the second task is a task corresponding to the background application running at the current moment.
[0015] In a third aspect, an embodiment of the present application provides a computer device, which includes a processor and a memory storing instructions executable by the processor. When the instructions are executed by the processor, the method of the first aspect is implemented.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the method of the first aspect described above is implemented.
[0017] The embodiment of the present application provides a resource configuration method and apparatus, equipment and computer storage medium, which obtains the first physiological sign data of the target object corresponding to the first task at the current moment; wherein the first task is the task corresponding to the foreground application running at the current moment; the first physiological sign data includes at least one of blood pressure data, heart rate data and body temperature data; the resource priority of the first task is determined based on the first physiological sign data; the first task and the second task are resource configured based on the resource priority of the first task; wherein the second task is the task corresponding to the background application running at the current moment. It can be seen that in the embodiment of the present application, the physiological conditions (first physiological sign data) of the target object, such as blood pressure data, heart rate, body temperature, etc., can be monitored in real time during the operation of the first task, so that the resource priority corresponding to the first task can be determined according to the physiological condition of the target object, and the resource configuration of the task resources can be further performed according to the resource priority of the first task, so as to ensure that the tasks with high importance can obtain the maximum resource configuration, greatly improve the flexibility and accuracy of resource configuration, and enhance the intelligence of the terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Schematic diagram of the implementation process of the resource configuration method proposed in this application embodiment Figure 1 ;
[0019] Figure 2 Schematic diagram of the implementation process of the resource configuration method proposed in this application embodiment Figure 2 ;
[0020] Figure 3 Schematic diagram of the implementation process of the resource configuration method proposed in this application embodiment Figure 3 ;
[0021] Figure 4 Schematic diagram of the implementation process of the resource configuration method proposed in this application embodiment Figure 4 ;
[0022] Figure 5 This is a block diagram of the implementation of the resource configuration proposed in the embodiment of the present application;
[0023] Figure 6 A schematic diagram of the composition structure of the resource allocation device proposed in the embodiment of the present application;
[0024] Figure 7 A schematic diagram of the composition structure of the computer device proposed in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the difference application, rather than to limit the application. It should also be noted that, for the convenience of description, only the parts that are different from the related applications are shown in the drawings.
[0026] During the use of terminal devices, there are often some very important temporary application scenarios. However, since the terminal may be in a multi-tasking scenario or there are restrictions on the network side, communication resources cannot be 100% allocated in key application scenarios. As a result, users fail to use the terminal devices to achieve their personal expectations, which seriously affects the user experience of the terminal devices.
[0027] Common resource allocation solutions, for example, combine content popularity and user preference to design a joint factor to optimize cache results, thereby optimizing cache hit rate and user hit rate. However, the above solution can only accelerate applications in the application whitelist, and cannot be dynamically adjusted for specific scenarios of specific users.
[0028] It can be seen that although there are some task priority optimization schemes, they are generally limited to specific local tasks such as games or video watching. However, the importance of these tasks to users is different in different scenarios, especially in multi-tasking scenarios, and fixed static optimization labels cannot bring the best experience to users.
[0029] In other words, the current resource allocation scheme for tasks cannot guarantee that tasks with high importance can receive the maximum resource allocation. The flexibility and accuracy of resource allocation are poor, which reduces the intelligence of the terminal.
[0030] In order to solve the above problems, the first physiological sign data of the target object corresponding to the first task is obtained at the current moment; wherein the first task is the task corresponding to the foreground application running at the current moment; the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data; the resource priority of the first task is determined based on the first physiological sign data; the first task and the second task are resourced based on the resource priority of the first task; wherein the second task is the task corresponding to the background application running at the current moment. It can be seen that in the embodiments of the present application, the physiological conditions (first physiological sign data) of the target object, such as blood pressure data, heart rate, body temperature, etc., can be monitored in real time during the operation of the first task, so that the resource priority corresponding to the first task can be determined according to the physiological condition of the target object, and the resource allocation of the task resources can be further performed according to the resource priority of the first task, so as to ensure that the tasks with high importance can get the maximum resource allocation, greatly improve the flexibility and accuracy of resource allocation, and enhance the intelligence of the terminal.
[0031] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0032] An embodiment of the present application provides a resource configuration method, which can be applied to a resource configuration apparatus or a computer device, and can also be applied to any terminal including a resource configuration apparatus or a computer device.
[0033] Below, taking the resource configuration device as an example, the resource configuration method proposed in the embodiment of the present application is exemplarily described.
[0034] Furthermore, in the embodiments of the present application, Figure 1 Schematic diagram of the implementation process of the resource configuration method proposed in this application embodiment Figure 1 ,like Figure 1 As shown, the resource configuration method may include the following steps:
[0035] Step 101: obtaining first physiological sign data of the target object corresponding to a first task at the current moment; wherein the first task is a task corresponding to a foreground application running at the current moment; the first physiological sign data includes at least one of first blood pressure data, first heart rate data, and first body temperature data.
[0036] In an embodiment of the present application, at the current moment, the first physiological sign data of the target object corresponding to the first task may be acquired first.
[0037] It should be noted that in the embodiments of the present application, the foreground application may be the foreground application currently running. Among them, the foreground application refers to the interface and functions that the user directly interacts with. It is the part that the user can see and operate, including the user interface of the application, the processing of user input and output, etc. The foreground application is responsible for receiving the user's input, such as clicking, sliding, inputting text, etc., and providing corresponding output according to the user's operation, such as displaying information, playing audio, video, etc.
[0038] It is understandable that in the embodiment of the present application, the first task may be a task corresponding to any application loaded on the resource configuration device, and at any time, the first task may be a task running in the foreground as a foreground application, or a task running in the background as a background application. For example, at the current moment, the video playback application that is playing a video on the interface of the resource configuration device is the first task.
[0039] For example, in some embodiments, in a social media application, the running foreground application may be the dynamics of friends displayed on the foreground interface, the status, comments and likes posted on the foreground interface, etc.
[0040] Exemplarily, in some embodiments, on an e-commerce platform, the running foreground application may be browsing products, searching for products, adding products to a shopping cart, placing an order, etc.
[0041] Further, in the embodiments of the present application, the present application does not specifically limit the number of first tasks. The number of first tasks can be one, that is, the front-end interface of the resource configuration device displays at most one task running; the number of first tasks can also be two, that is, the front-end interface of the resource configuration device displays at most two tasks running.
[0042] It is understandable that in the embodiments of the present application, with the continuous advancement of terminal technology, the resource configuration device can realize the simultaneous display and operation of multiple tasks at the same time. For example, the resource configuration device is configured with two display screens, and two different tasks are displayed on the two display screens respectively; or the resource configuration device can display and run multiple different tasks in different display areas of the display screen in a split screen manner.
[0043] Further, in the embodiments of the present application, the target object may be understood as an object that has an interactive relationship with the first task, such as a user who operates and controls the first task.
[0044] Accordingly, in the embodiment of the present application, assuming that the first task is a plurality of different tasks, then the plurality of tasks all have an interactive relationship with the target object at the current moment.
[0045] Exemplarily, in an embodiment of the present application, it is assumed that the resource configuration device is a mobile phone, and a video of a sports event is currently being played on the front display interface of the mobile phone. The playing of the sports event video is in response to the operation of mobile phone user A, and A is currently watching the played video of the sports event, so A can be used as the target object.
[0046] Furthermore, in an embodiment of the present application, the first physiological sign data can be used to determine the physiological condition and state of the target object at the current moment, wherein the first physiological sign data includes but is not limited to at least one of blood pressure data, heart rate data, and body temperature data.
[0047] It can be understood that in an embodiment of the present application, while a task corresponding to a foreground application, such as a first task, is running, the physiological condition of a target object interacting with the foreground application (first task) can be detected in real time, so that the emotion or emotion changes of the target object at the current moment can be determined based on the detection results, and then the importance of the first task can be determined.
[0048] Furthermore, in the embodiments of the present application, the first physiological sign data may be acquired in any manner, including but not limited to acquiring the first physiological sign data by detecting a target object, or receiving the first physiological sign data sent by other smart devices.
[0049] Exemplarily, in some embodiments, the resource configuration device may be configured with a detection module, which may be used to detect the physiological condition and state of the target object, so that the first physiological sign data may be acquired through the detection module.
[0050] Exemplarily, in some embodiments, other smart devices may be wearable smart devices, such as smart watches, smart headphones, smart glasses, etc. The target object may wear the smart device, and the smart device may detect and collect the first physiological sign data of the target object in real time through sensors, and send it to the resource configuration device.
[0051] That is to say, in the embodiments of the present application, the first physiological sign data may be directly detected and obtained by the resource configuration device, or may be received by the resource configuration device from other smart devices, and the present application does not make any specific limitation.
[0052] It can be understood that in an embodiment of the present application, the resource configuration device can run at least one task at the current moment, which may include tasks of foreground applications running in the foreground at the current moment, such as the first task, and may also include tasks of background applications running in the background at the current moment, such as the second task.
[0053] It can be understood that in the embodiments of the present application, since the first task is running in the foreground at the current moment, that is, the target object at the current moment can be interacting with the first task, therefore, the first physiological sign data acquired by the resource configuration device at the current moment can be understood as corresponding to the first task, that is, the resource configuration device runs the first task in the foreground at the current moment, and can acquire the first physiological sign data of the target object corresponding to the first task at the same time.
[0054] Accordingly, in the embodiment of the present application, assuming that the first task is a plurality of different tasks, the first physiological sign data of the target object corresponding to the first task acquired by the resource allocation device is data corresponding to the plurality of tasks.
[0055] That is to say, in the embodiment of the present application, the number of first physiological sign data corresponds to the number of collection moments, and has no dependency on the number of tasks running in the foreground, that is, a physiological sign data can be obtained at the same moment, and the physiological sign data can correspond to at least one task running in the foreground.
[0056] Step 102: Determine a resource priority of a first task based on first physiological sign data.
[0057] In an embodiment of the present application, after acquiring the first physiological sign data of the target object corresponding to the first task at the current moment, the resource allocation device may further determine the resource priority of the first task based on the first physiological sign data.
[0058] It can be understood that in an embodiment of the present application, the resource allocation device can run at least one task at the current moment, such as a first task running in the foreground and a second task running in the background, and the importance or urgency of the first task and the second task may be different. Therefore, for different tasks, resource allocation strategies with different priorities can be adopted according to the corresponding importance or urgency.
[0059] Accordingly, in an embodiment of the present application, for the first task running in the foreground at the current moment, the first task is directly interacting with the target object at the current moment. Therefore, the resource configuration device can further determine the importance or urgency of the first task by acquiring the first physiological sign data of the target object at the current moment corresponding to the first task, thereby determining the priority of the resource classification corresponding to the first task, that is, the resource priority of the first task.
[0060] It can be understood that in the embodiments of the present application, through the first physiological sign data, the resource allocation device can determine the emotional state or change in emotional state of the target object corresponding to the current moment, so as to further determine the importance or urgency of the first task, and then determine the resource priority of the first task.
[0061] Further, in an embodiment of the present application, when determining the resource priority of the first task based on the first physiological sign data, a whitelist may be obtained first; and then, if the first task belongs to the whitelist, the resource priority of the first task may be determined based on the first physiological sign data.
[0062] It is understandable that in the embodiment of the present application, the resource configuration device may obtain a whitelist, wherein the whitelist may include tasks or applications that allow resource tilting, that is, for tasks or applications in the whitelist, resource priority determination is allowed, and resource configuration is performed based on the corresponding resource priority.
[0063] Accordingly, in an embodiment of the present application, if the first task belongs to the whitelist, that is, the whitelist includes the first task, then the resource priority of the first task can be further determined; conversely, if the first task does not belong to the whitelist, that is, the whitelist does not include the first task, then the determination of the resource priority of the first task is not performed.
[0064] For example, in some embodiments, the whitelist may be pre-set and stored by the resource configuration device, or may be determined in real time by the resource configuration device according to the setting instruction, which is not specifically limited in this application. For example, the whitelist may be pre-set and stored by the resource configuration device, wherein the applications in the whitelist may include video playback applications, music playback applications, game applications, social media applications, etc.
[0065] It is understandable that in the embodiment of the present application, the resource configuration device may also obtain a blacklist, wherein the blacklist may include tasks for which resource tilting is prohibited, that is, for tasks or applications in the blacklist, resource priority determination and resource configuration based on resource priority are not allowed.
[0066] Accordingly, in an embodiment of the present application, if the first task belongs to the blacklist, that is, the blacklist includes the first task, then the determination of the resource priority of the first task is not performed; conversely, if the first task does not belong to the blacklist, that is, the blacklist does not include the first task, then the resource priority of the first task can be further determined.
[0067] For example, in some embodiments, the blacklist can be pre-set and stored by the resource configuration device, or can be determined in real time by the resource configuration device according to the setting instruction, which is not specifically limited in this application. For example, the blacklist can be pre-set and stored by the resource configuration device, wherein the blacklist can include virus detection, dynamic screen, etc.
[0068] It should be noted that in the embodiments of the present application, the resource priority of the first task can be determined in a variety of ways based on the first physiological sign data. The ways to determine the resource priority of the first task include but are not limited to: determining through the mapping relationship between the sign data and the priority, determining through the comparison result with the physiological sign reference data, etc., which are not specifically limited in the present application.
[0069] Further, in an embodiment of the present application, when determining the resource priority of the first task based on the first physiological sign data, the resource priority of the first task may be determined based on the first physiological sign data and a mapping relationship between the sign data and the priority.
[0070] It should be noted that, in the embodiments of the present application, the mapping relationship between the vital sign data and the priority can be used to determine the resource priority corresponding to the physiological sign data. The resource configuration device can pre-construct the mapping relationship between the vital sign data and the priority, and then after acquiring the physiological sign data, directly based on the mapping relationship, refer to the resource priority corresponding to the physiological sign data to perform resource configuration processing.
[0071] It can be understood that in the embodiments of the present application, for different physiological sign data, the mapping relationship between the sign data and the priority can correspond to different mapping relationships, that is, the mapping relationship between the sign data and the priority can include a mapping relationship between the priority and one or more physiological sign data such as heart rate data, blood pressure data, body temperature data, etc.
[0072] It should be noted that in the embodiments of the present application, the corresponding physical data may be different for different users. Therefore, the mapping relationship between the vital sign data and the priority constructed by the resource configuration device may also be dependent on the user's age, gender or independent individual. For example, for different objects, different mapping relationships between vital sign data and priorities can be pre-equipped and stored, or for objects of different age groups, different mapping relationships between vital sign data and priorities can be pre-equipped and stored, or for objects of different genders, different mapping relationships between vital sign data and priorities can be pre-equipped and stored, or for objects of different occupational types, different mapping relationships between vital sign data and priorities can be pre-equipped and stored.
[0073] Exemplarily, in some embodiments, the mapping relationship between the physiological sign data and the priority can be as shown in Table 1, wherein, when the physiological sign data is heart rate data (heart rate value), different resource priorities may correspond to different heart rate ranges. Among them, the larger the value of the priority, the higher the corresponding priority. This is because in general, when the user is in an emotional state such as tension, anxiety, excitement or fear, the heart rate will also increase. For example, if the first physiological sign data obtained is a heart rate of 100, then it can be determined that the resource priority of the first task is 3.
[0074] Table 1
[0075] Heart rate data Priority 60-70 1 70-90 2 90-100 3 100-110 4 …… ……
[0076] Exemplarily, in some embodiments, the mapping relationship between the vital sign data and the priority can be as shown in Table 2, where, when the physiological sign data is systolic pressure (high blood pressure), different resource priorities may correspond to different blood pressure ranges. The larger the value of the priority, the higher the corresponding priority. This is because in general, when the user is in an emotional state such as tension, anxiety, excitement or fear, the blood pressure will also increase. For example, if the first physiological sign data obtained is high blood pressure 100, then it can be determined that the resource priority of the first task is 2.
[0077] Table 2
[0078] Systolic blood pressure Priority 80-90 1 90-110 2 110-120 3 130-140 4 …… ……
[0079] Exemplarily, in some embodiments, the mapping relationship between the vital sign data and the priority can be as shown in Table 3, where, when the physiological sign data is diastolic pressure (low pressure), different resource priorities may correspond to different blood pressure ranges. The larger the value of the priority, the higher the corresponding priority. This is because in general, when the user is in an emotional state such as tension, anxiety, excitement or fear, the blood pressure will also increase. For example, if the first physiological sign data obtained is high pressure 100, then it can be determined that the resource priority of the first task is 4.
[0080] Table 3
[0081]
[0082]
[0083] That is to say, in an embodiment of the present application, after obtaining the first physiological sign data of the target object corresponding to the first task at the current moment, the pre-constructed mapping relationship between the sign data and the priority can be directly used to determine the priority corresponding to the first physiological sign data, and this priority can be used as the resource priority of the first task, wherein the resource priority of the first task can be used to perform resource allocation for the first task.
[0084] Further, in an embodiment of the present application, while determining the resource priority of the first task corresponding to the first physiological sign data by using the pre-constructed mapping relationship between the vital sign data and the priority, the resource priority of the second task can be set to a preset priority. The preset priority can be a predetermined fixed value or can be determined based on the historical priority data corresponding to the second task, which is not specifically limited in the present application.
[0085] Further, in an embodiment of the present application, when determining the resource priority of the first task based on the first physiological sign data, the physiological sign reference data may be determined first; and then it is determined whether the first physiological sign data and the physiological sign reference data meet a preset condition. The physiological sign reference data may be used to determine whether the first physiological sign data is in a normal condition.
[0086] It should be noted that, in an embodiment of the present application, a preset condition can be used to determine whether to allow the resources of the first task to be tilted during resource configuration. Wherein, when the first physiological sign data and the physiological sign reference data meet the preset conditions, it can be determined that the resources of the first task are allowed to be tilted during resource configuration, and then the resource priority of the first task can be determined to be higher than the resource priority of the second task; conversely, when the first physiological sign data and the physiological sign reference data do not meet the preset conditions, it can be determined that the resources of the first task are not allowed to be tilted during resource configuration, and then the resource priority of the first task can be determined to be not higher than the resource priority of the second task.
[0087] It should be noted that, in the embodiments of the present application, the preset conditions may include but are not limited to one of the following conditions: the difference between the first physiological sign data and the physiological sign reference data is greater than the first value; the ratio between the first physiological sign data and the physiological sign reference data is greater than the second value.
[0088] It can be understood that in the embodiment of the present application, the first value can be a value greater than 0, that is, the preset condition can be understood as the difference between the first physiological sign data and the physiological sign reference data is greater than 0, that is, the first physiological sign data is greater than the physiological sign reference data.
[0089] It can be understood that in the embodiment of the present application, the second value can be a value greater than 1, that is, the preset condition can be understood as the ratio between the first physiological sign data and the physiological sign reference data is greater than 1, that is, the first physiological sign data is greater than the physiological sign reference data.
[0090] Further, in an embodiment of the present application, the second task may be a task corresponding to at least one background application running at the current moment. The background application refers to the part of the application that is not directly visible to the user. The present application does not specifically limit the number of second tasks. The number of second tasks may be one, that is, the resource configuration device runs one task in the background; the number of second tasks may also be multiple, that is, the resource configuration device runs multiple tasks in the background.
[0091] It is understandable that, in the embodiments of the present application, the first task and the second task are different tasks running at the current moment. Among them, at the current moment, the first task can run in the foreground to interact with the target object, and the second task can also run in the foreground to interact with the target object at other times, or can always run in the background without directly interacting with the target object. The present application does not specifically limit this.
[0092] That is to say, in the embodiment of the present application, the first task is a task running in the foreground and the second task is a task running in the background, which corresponds to the running status of the resource configuration device at the current moment, and does not limit the running status of the first task and the second task at other moments.
[0093] Exemplarily, in some embodiments, at the current moment, the first task displayed in the foreground by the resource configuration device is video playback, that is, video playback is running in the foreground at the current moment, and the second task running in the background by the resource configuration device includes social media, payment, and shopping.
[0094] For example, in some embodiments, at the next moment, the task displayed in the foreground by the resource configuration device is switched to payment, so corresponding to the next moment, the task running in the foreground is payment, and the tasks running in the background by the resource configuration device include social media, video playback, and shopping. It can be seen that at the next moment, the payment in the second task is the task running in the foreground, and the video playback is the task running in the background.
[0095] It should be noted that, in the embodiments of the present application, the resource allocation device may determine the physiological sign reference data in a variety of ways, wherein the ways of determining the physiological sign reference data include but are not limited to determining based on the second physiological sign data corresponding to the target object.
[0096] Furthermore, in an embodiment of the present application, when determining the physiological sign reference data, second physiological sign data of the target object corresponding to at least one task may be acquired first; and then the physiological sign reference data may be determined based on the second physiological sign data.
[0097] It should be noted that, in the embodiment of the present application, the second physiological sign data may be obtained when at least one task is running in the foreground at any time before the current time. The any time before the current time may include any one or more times before the current time.
[0098] It can be understood that, in the embodiments of the present application, the at least one task may include but is not limited to the first task and / or the second task, and may also be other tasks other than the first task and the second task, and the present application does not make specific limitations.
[0099] It can be understood that, in the embodiments of the present application, multiple second physiological sign data can be determined at any multiple time points before the current time point, that is, the present application does not limit the number of second physiological sign data.
[0100] That is to say, in an embodiment of the present application, the number of second physiological sign data corresponds to the number of collection moments and has no dependency on the number of tasks running in the foreground, that is, a physiological sign data can be obtained at the same moment, and the physiological sign data can correspond to at least one task running in the foreground.
[0101] Further, in an embodiment of the present application, after determining one or more second physiological sign data obtained when at least one task is running in the foreground at any time before the current time, the resource allocation device can directly determine the second physiological sign data as the physiological sign reference data, or can choose to perform data calculations based on the second physiological sign data to determine the physiological sign reference data, which is not specifically limited in the present application.
[0102] For example, in some embodiments, an average value calculation may be performed on a plurality of second physiological sign data, and the calculated average value may be determined as the physiological sign reference data.
[0103] For example, in some embodiments, a plurality of second physiological sign data may be compared, and the second physiological sign data with the maximum value may be determined as the physiological sign reference data.
[0104] That is to say, in the embodiment of the present application, the second physiological sign data of the target object acquired at a historical moment may be referred to to determine the physiological sign reference data, so that the physiological sign reference data can be more consistent with the actual physiological sign condition of the target object.
[0105] That is to say, in an embodiment of the present application, after obtaining the first physiological sign data of the target object corresponding to the first task at the current moment, the priority corresponding to the first physiological sign data can also be determined in combination with the physiological sign reference data determined based on the second physiological sign data obtained at a historical moment. This priority can be used as the resource priority of the first task, wherein the resource priority of the first task can be used to perform resource allocation for the first task.
[0106] Further, in an embodiment of the present application, while the resource priority of the first task corresponding to the first physiological sign data is determined using the physiological sign reference data, the resource priority of the second task can be set to a preset priority. The preset priority can be a predetermined fixed value or can be determined based on the historical priority data corresponding to the second task, which is not specifically limited in the present application.
[0107] Step 103: performing resource allocation for the first task and the second task based on the resource priority of the first task; wherein the second task is a task corresponding to the background application running at the current moment.
[0108] In an embodiment of the present application, after determining the resource priority of the first task based on the first physiological sign data, the resource allocation device can further perform resource allocation for the first task and the second task based on the resource priority of the first task; wherein the second task is the task corresponding to the background application running at the current moment.
[0109] It can be understood that in an embodiment of the present application, after determining the resource priority of the first task based on the first physiological sign data, the resource priority of the first task can be referred to and combined with the resource priority of the second task to perform resource allocation for the first task and the second task.
[0110] It can be understood that in the embodiments of the present application, resource configuration may include allocation of task processing resources, wherein resource configuration may include but is not limited to allocation of task processing resources such as data processing memory and signal transmission bandwidth.
[0111] Further, in an embodiment of the present application, when resources are configured for the first task and the second task based on the resource priority of the first task, when the resource priority of the first task is higher than the resource priority of the second task, the task processing resource requirement of the first task is determined; based on the task processing resource requirement of the first task, the first task processing resources are allocated to the first task; after the first task processing resources are allocated to the first task, the second task processing resources are allocated to the second task.
[0112] It should be noted that, in the embodiment of the present application, if the resource priority of the first task determined based on the first physiological sign data is higher than the resource priority of the second task, then in the process of resource allocation, the resources of the first task can be tilted, for example, the first resource can be allocated to the first task according to the task processing resource demand of the first task, and then the second resource can be allocated to the second task. Among them, the first resource is the task processing resource demand that meets the first task, and the second resource is the remaining task processing resource allocated on the premise of meeting the task processing resource demand of the first task.
[0113] Exemplarily, in some embodiments, assuming that a pre-constructed mapping relationship between vital sign data and priority is used to determine that the resource priority of the first task corresponding to the first physiological sign data is 3, and the resource priority of the second task is set to a preset priority of 2, at this time, the resource priority of the first task is greater than the resource priority of the second task, so it can be chosen to allocate resources to the first task first to meet the task processing resource requirements of the first task.
[0114] Exemplarily, in some embodiments, assuming that the resource priority of the first task corresponding to the first physiological sign data is determined to be 4 using physiological sign reference data, and the resource priority of the second task is set to a preset priority of 1, at this time, the resource priority of the first task is greater than the resource priority of the second task, so it can be chosen to allocate resources to the first task first to meet the task processing resource requirements of the first task.
[0115] It should be noted that, in the embodiment of the present application, if the resource priority of the first task determined based on the first physiological sign data is lower than the resource priority of the second task, then in the process of resource allocation, the resources of the second task may be tilted, for example, the second resource may be allocated to the second task according to the task processing resource requirement of the second task, and then the first resource may be allocated to the first task. Among them, the second resource is the task processing resource requirement that satisfies the second task, and the first resource is the remaining task processing resource allocated on the premise of satisfying the task processing resource requirement of the second task.
[0116] It should be noted that in an embodiment of the present application, if the resource priority of the first task determined based on the first physiological sign data is equal to the resource priority of the second task, then in the process of resource allocation, you can choose to allocate resources to the first task and the second task respectively in an even distribution manner, or you can choose to execute the corresponding resource allocation strategy based on other relevant task processing parameters of the first task and the second task. This application does not make specific limitations.
[0117] Furthermore, in an embodiment of the present application, after resources are configured for the first task and the second task based on the resource priority of the first task, the third physiological sign data corresponding to the target object can be reacquired; and then the mapping relationship between the sign data and the priority is further updated based on the first physiological sign data and the third physiological sign data.
[0118] It can be understood that in an embodiment of the present application, after resources are allocated for the first task and the second task based on the resource priority of the first task, the third physiological sign data corresponding to the target object can continue to be obtained, and then the first physiological sign data and the third physiological sign data can be compared to analyze the changes in the physical sign state or emotional state of the target object, and then determine whether the allocation method of resources for the first task and the second task based on the resource priority of the first task is accurate and reasonable.
[0119] Exemplarily, in some embodiments, after resources are allocated to the first task based on the resource priority of the first task, if the third physiological sign data is less than the first physiological sign data, it can be considered that the target object's emotions such as tension, anxiety, excitement or fear are alleviated, and therefore it can be determined that the allocation method of resources for the first task and the second task based on the resource priority of the first task is accurate and reasonable.
[0120] Exemplarily, in some embodiments, after resources are preferentially allocated to the first task based on the resource priority of the first task, if the third physiological sign data is greater than the first physiological sign data, it can be considered that the target object's emotions such as tension, anxiety, excitement or fear have not been alleviated but increased, and therefore it can be determined that the allocation method of resources for the first task and the second task based on the resource priority of the first task is not accurate.
[0121] Further, in an embodiment of the present application, when updating the mapping relationship between vital sign data and priority based on the first physiological sign data and the third physiological sign data, if it is determined based on the first physiological sign data and the third physiological sign data that the allocation method of resource configuration for the first task and the second task based on the resource priority of the first task is accurate and reasonable, then it can be chosen to continue to maintain the corresponding relationship between the vital sign data and the priority in the mapping relationship between the vital sign data and the priority; if it is determined based on the first physiological sign data and the third physiological sign data that the allocation method of resource configuration for the first task and the second task based on the resource priority of the first task is unreasonable, then it can be chosen to adjust and modify the corresponding relationship between the vital sign data and the priority in the mapping relationship between the vital sign data and the priority to update the mapping relationship between the vital sign data and the priority.
[0122] That is to say, in an embodiment of the present application, after determining the resource priority of the first task based on the mapping relationship between vital sign data and priority, and using the resource priority of the first task to configure resources, it is possible to continue to collect third physiological sign data that can reflect the changes in physiological characteristics of the target object's current emotions, and then further use the third physiological sign data to iterate and update the mapping relationship between vital sign data and priority.
[0123] To sum up, the resource allocation method proposed in the embodiment of the present application can optimize terminal tasks based on the acquired physiological characteristics (physiological signs data) of the user (target object), ensure that the user obtains the maximum resource allocation in the tasks that need to be completed most (tasks executed by the application), and greatly improve the user experience.
[0124] For example, in some embodiments, for example, if a user needs to use a terminal to watch an important event, the user may perform multitasking operations in the early stage of the event, but as the event progresses, the user's emotions will gradually rise. If the critical moment is missed due to insufficient resource allocation, it will greatly affect the user experience. The resource allocation method proposed in the embodiment of the present application can track and identify user needs in real time, ensuring that the resource allocation during the entire event process is more suitable for the user's usage requirements.
[0125] For example, in some embodiments, users have some temporary needs that are very critical to the users, such as grabbing holiday train tickets, concert tickets for favorite stars, and snapping up important products. These needs are scattered but real for almost every user. If the traditional whitelist solution is used for these important scenarios, it is impossible to achieve resource tilt. The resource allocation method proposed in the embodiment of the present application can accurately track and identify the user's urgent and important needs, and ensure that the terminal can guarantee the user's usage experience with the maximum resources.
[0126] The embodiment of the present application provides a resource configuration method, which obtains the first physiological sign data of the target object corresponding to the first task at the current moment; wherein the first task is the task corresponding to the foreground application running at the current moment; the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data; the resource priority of the first task is determined based on the first physiological sign data; the first task and the second task are resource configured based on the resource priority of the first task; wherein the second task is the task corresponding to the background application running at the current moment. It can be seen that in the embodiment of the present application, the physiological conditions (first physiological sign data) of the target object, such as blood pressure data, heart rate, body temperature, etc., can be monitored in real time during the operation of the first task, so that the resource priority corresponding to the first task can be determined according to the physiological condition of the target object, and the resource configuration of the task resources can be further performed according to the resource priority of the first task, so as to ensure that the tasks with high importance can obtain the maximum resource configuration, greatly improve the flexibility and accuracy of resource configuration, and enhance the intelligence of the terminal.
[0127] Based on the above embodiments, another embodiment of the present application provides a resource configuration method, which can determine the resource priority of a task by utilizing changes in user physiological characteristics, so that resource configuration of task resources can be performed according to the resource priority.
[0128] Furthermore, in the embodiments of the present application, Figure 2 Schematic diagram of the implementation process of the resource configuration method proposed in this application embodiment Figure 2 ,like Figure 2 As shown, the resource configuration method may include the following steps:
[0129] Step 201: Get the whitelist.
[0130] The whitelist may include tasks or applications that allow resource tilting, that is, for the tasks or applications in the whitelist, resource priorities are allowed to be determined, and resource allocation is performed based on the corresponding resource priorities.
[0131] Step 202: Determine a first task currently being executed and first physiological sign data of the target object corresponding to the first task.
[0132] At least one task may be executed at the current moment, which may include tasks of foreground applications running in the foreground at the current moment, such as the first task, and tasks of background applications running in the background at the current moment, such as the second task.
[0133] The target object may be understood as an object that has an interactive relationship with the first task, such as a user who operates and controls the first task.
[0134] The first physiological sign data may be used to determine the physiological condition and state of the target object at the current moment, wherein the first physiological sign data includes but is not limited to at least one of blood pressure data, heart rate data, and body temperature data.
[0135] Step 203: Determine whether the first task belongs to the whitelist.
[0136] If the first task belongs to the whitelist, that is, the whitelist includes the first task, then the resource priority of the first task can be further determined; conversely, if the first task does not belong to the whitelist, that is, the whitelist does not include the first task, then the resource priority of the first task is not determined.
[0137] Therefore, if it is determined that the first task belongs to the whitelist, step 204 is executed; otherwise, step 205 is executed.
[0138] Step 204: Determine the resource priority of the first task according to the mapping relationship between the vital sign data and the priority and the first physiological sign data.
[0139] The mapping relationship between the vital sign data and the priority can be used to determine the resource priority corresponding to the physiological vital sign data. For different physiological vital sign data, the mapping relationship between the vital sign data and the priority can correspond to different mapping relationships, that is, the mapping relationship between the vital sign data and the priority can include a mapping relationship corresponding to one or more physiological vital sign data such as heart rate data, blood pressure data, body temperature data, and the priority.
[0140] The priority corresponding to the first physiological sign data is determined by using the pre-constructed mapping relationship between the vital sign data and the priority, and the priority can be used as the resource priority of the first task.
[0141] Step 206: Allocate resources for the first task according to the resource priority of the first task.
[0142] The resource priority of the first task can be referred to, and the resource priority of the second task can be combined to configure resources for the first task and the second task. The resource configuration may include but is not limited to the allocation of task processing resources such as data processing memory and signal transmission bandwidth.
[0143] Step 205: Allocate resources for the first task in a conventional manner.
[0144] Conventional methods include but are not limited to allocating resources to the first task and the second task respectively in an even distribution manner, or executing corresponding resource allocation strategies according to other relevant task processing parameters of the first task and the second task, and this application does not make specific limitations.
[0145] Furthermore, in the embodiments of the present application, Figure 3Schematic diagram of the implementation process of the resource configuration method proposed in this application embodiment Figure 3 ,like Figure 3 As shown, the resource configuration method may include the following steps:
[0146] Step 301: Determine a first task currently being executed and first physiological sign data of a target object corresponding to the first task.
[0147] Step 302: Determine the resource priority of the first task according to the mapping relationship between the vital sign data and the priority and the first physiological sign data.
[0148] Step 303: Set the resource priority of the second task to a preset priority.
[0149] While using the physiological sign reference data to determine the resource priority of the first task corresponding to the first physiological sign data, the resource priority of the second task can be set to a preset priority. The preset priority can be a predetermined fixed value or can be determined based on the historical priority data corresponding to the second task, which is not specifically limited in this application.
[0150] Step 304: Determine whether the resource priority of the first task is higher than the resource priority of the second task.
[0151] If the resource priority of the first task is higher than that of the second task, it can be determined that the resources of the first task are allowed to be tilted during resource allocation, that is, step 305 is executed; otherwise, it is determined that the resources of the first task are not allowed to be tilted during resource allocation, and step 308 is executed.
[0152] Step 305: Determine the task processing resource requirement of the first task.
[0153] Step 306: Allocate first task processing resources to the first task based on the task processing resource requirement of the first task.
[0154] Step 307: After allocating the first task processing resource to the first task, allocate the second task processing resource to the second task.
[0155] If the resource priority of the first task determined based on the first physiological sign data is higher than the resource priority of the second task, then in the process of resource allocation, the resources of the first task may be tilted, for example, the first resource may be allocated to the first task according to the task processing resource requirement of the first task, and then the second resource may be allocated to the second task. The first resource is the task processing resource requirement that satisfies the first task, and the second resource is the remaining task processing resource allocated on the premise of satisfying the task processing resource requirement of the first task.
[0156] Step 308: Allocate resources for the first task in a conventional manner.
[0157] Step 309: reacquire the third physiological sign data corresponding to the target object.
[0158] After configuring resources for the first task, the third physiological sign data corresponding to the target object may be reacquired.
[0159] Step 310: Update the mapping relationship between the physiological sign data and the priority according to the first physiological sign data and the third physiological sign data.
[0160] If it is determined based on the first physiological sign data and the third physiological sign data that the allocation method of resource configuration for the first task and the second task based on the resource priority of the first task is accurate and reasonable, then you can choose to continue to maintain the corresponding relationship between the sign data and the priority in the mapping relationship between the sign data and the priority; if it is determined based on the first physiological sign data and the third physiological sign data that the allocation method of resource configuration for the first task and the second task based on the resource priority of the first task is unreasonable, then you can choose to adjust and modify the corresponding relationship between the sign data and the priority in the mapping relationship between the sign data and the priority to update the mapping relationship between the sign data and the priority.
[0161] Furthermore, in the embodiments of the present application, Figure 4 Schematic diagram of the implementation process of the resource configuration method proposed in this application embodiment Figure 4 ,like Figure 4 As shown, the resource configuration method may include the following steps:
[0162] Step 401: Determine a first task currently being executed and first physiological sign data of a target object corresponding to the first task.
[0163] Step 402: Determine physiological sign reference data.
[0164] Step 403: determine whether the first physiological sign data and the physiological sign reference data meet preset conditions.
[0165] The preset condition may include but is not limited to one of the following conditions: the difference between the first physiological sign data and the physiological sign reference data is greater than a first value; the ratio between the first physiological sign data and the physiological sign reference data is greater than a second value.
[0166] When the first physiological sign data and the physiological sign reference data meet the preset conditions, it can be determined that it is allowed to tilt the resources of the first task during resource allocation, and then it can be determined that the resource priority of the first task is higher than the resource priority of the second task, and step 404 is executed; otherwise, it is determined that it is not allowed to tilt the resources of the first task during resource allocation, and then it can be determined that the resource priority of the first task is not higher than the resource priority of the second task, and step 405 is executed.
[0167] Step 404: Determine the task processing resource requirement of the first task.
[0168] Step 406: Allocate first task processing resources to the first task based on the task processing resource requirement of the first task.
[0169] Step 407: After allocating the first task processing resource to the first task, allocate the second task processing resource to the second task.
[0170] Step 405: Allocate resources for the first task in a conventional manner.
[0171] To sum up, the resource allocation method proposed in the embodiment of the present application can optimize terminal tasks based on the acquired physiological characteristics (physiological signs data) of the user (target object), ensure that the user obtains the maximum resource allocation in the tasks that need to be completed most (tasks executed by the application), and greatly improve the user experience.
[0172] The embodiment of the present application provides a resource configuration method, which obtains the first physiological sign data of the target object corresponding to the first task at the current moment; wherein the first task is the task corresponding to the foreground application running at the current moment; the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data; the resource priority of the first task is determined based on the first physiological sign data; the first task and the second task are resource configured based on the resource priority of the first task; wherein the second task is the task corresponding to the background application running at the current moment. It can be seen that in the embodiment of the present application, the physiological conditions (first physiological sign data) of the target object, such as blood pressure data, heart rate, body temperature, etc., can be monitored in real time during the operation of the first task, so that the resource priority corresponding to the first task can be determined according to the physiological condition of the target object, and the resource configuration of the task resources can be further performed according to the resource priority of the first task, so as to ensure that the tasks with high importance can obtain the maximum resource configuration, greatly improve the flexibility and accuracy of resource configuration, and enhance the intelligence of the terminal.
[0173] Based on the above embodiments, another embodiment of the present application provides a resource configuration method. In order to provide the user (target object) with the most extreme terminal resource supply during important tasks to ensure that the user achieves the task expectations, the user's current or upcoming tasks are identified according to the user's heart rate or blood pressure changes, and the importance of the user is ranked. Then, task processing resources including data processing memory, signal transmission bandwidth, etc. are allocated according to the ranking, so as to bring the user the most extreme user experience.
[0174] That is to say, the resource configuration method proposed in the embodiment of the present application is a technical solution that uses changes in user physiological characteristics to predict task priorities.
[0175] Furthermore, in an embodiment of the present application, the instantaneous changes of the user's physiological signs, such as heart rate and blood pressure, can be used as a basis for multi-task priority sorting, and then resources are allocated according to the priority sorting.
[0176] For example, in some embodiments, Figure 5 This is a block diagram of the implementation of the resource configuration proposed in the embodiment of the present application, such as Figure 5 As shown, the overall framework of the resource configuration method proposed in the embodiment of the present application may include at least a sensor, a terminal perception module, a terminal decision module, a policy execution layer, and a user physiological characteristics storage module.
[0177] For example, in some embodiments, the main function of the sensor is to collect changes in physiological characteristics that can reflect the user's current emotions. The carrier can be an existing smart watch or a mobile terminal that can measure physiology that has not yet been realized. After capturing the user's current physiological characteristic data, the sensor transmits it to the terminal perception module. Among them, the user's current physiological characteristic data may include but is not limited to real-time heart rate detection data, real-time blood pressure detection data, etc.
[0178] It should be noted that, in the embodiments of the present application, the sensors in the architecture include all devices that can read human physiological characteristics, including chips, smart watches, etc.
[0179] Exemplarily, in some embodiments, the terminal perception module is a container that determines the multi-task sorting factors. In addition to receiving the real-time data of the above-mentioned sensors, it also includes factors affecting the priority, such as the conventional designated task whitelist and user mandatory priority. Under normal circumstances, the terminal perception module needs to collect the sorting factors in real time and pass the sorting factors to the decision module. And after receiving the flag of the decision layer execution layer completing the task, the terminal perception module will enable the sensor to capture the user's vital sign data again.
[0180] Exemplarily, in some embodiments, the terminal decision layer mainly includes a multi-task priority algorithm, which coordinates the allocation of resources including transmission bandwidth, computing resource queue execution priority, etc. among multiple tasks. Currently, the commonly used decision algorithms are mainly priority queues and token bucket strategies or a mixture of the two. This part can adopt specific strategies according to different elements perceived by the terminal. The strategy design of this module should ensure that different priorities are given to tasks based on different physiological signs of users. In addition, the decision module also needs to complete each task executed according to the user's vital signs to verify the effectiveness of the strategy by checking whether the corresponding features fall back, and store the data in the user vital sign storage module;
[0181] For example, in some embodiments, the policy execution layer can execute user tasks in order according to the priority of the decision module. The highest resource allocation is given to the highest priority task. When the decision module identifies an extreme user scenario, the most extreme resource allocation method can be used to ensure that the user task is not delayed in the terminal due to insufficient resources, sorting delays, congestion, etc. When the task is executed, the execution completion signal is returned to the terminal perception module;
[0182] For example, in some embodiments, the user physiological characteristic storage module can store and iterate the task parameters and characteristics of each user to effectively reduce the user's heart rate and blood pressure to generate the corresponding LUT (mapping relationship between vital sign data and priority). The decision module can retrieve historical data from it to determine the mapping between the data collected by the current sensor and the task priority.
[0183] It can be seen that the resource allocation method proposed in the embodiment of the present application makes the terminal device more intelligent. Optimizing terminal tasks according to physiological characteristic curves can ensure that users get the maximum resource allocation in the tasks they need to complete most, greatly improving the user experience.
[0184] In an embodiment of the present application, for example, a user needs to use a terminal to watch an important event. In the early stage of the event, the user is usually relaxed and casual and may perform multi-tasking operations. However, as the event progresses, the user's emotions will gradually rise. If the user misses the key moment due to lag due to insufficient resource allocation, it will greatly affect the user experience. This solution can track and identify user needs in real time to ensure that resource allocation throughout the event process is more suitable for user usage requirements.
[0185] In the embodiments of the present application, for example, some temporary needs of users are very critical to the users, such as grabbing train tickets for holidays, concert tickets for favorite stars, rushing to buy important products, etc. These needs are scattered but real for almost every user. If the traditional whitelist solution is used for these important scenarios, it is impossible to achieve resource tilt, but this solution can accurately track and identify the user's urgent and important needs, ensuring that the terminal can guarantee the user's usage experience with the maximum resources.
[0186] To sum up, the resource allocation method proposed in the embodiment of the present application can optimize terminal tasks based on the acquired physiological characteristics (physiological signs data) of the user (target object), ensure that the user obtains the maximum resource allocation in the tasks that need to be completed most (tasks executed by the application), and greatly improve the user experience.
[0187] The embodiment of the present application provides a resource configuration method, which obtains the first physiological sign data of the target object corresponding to the first task at the current moment; wherein the first task is the task corresponding to the foreground application running at the current moment; the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data; the resource priority of the first task is determined based on the first physiological sign data; the first task and the second task are resource configured based on the resource priority of the first task; wherein the second task is the task corresponding to the background application running at the current moment. It can be seen that in the embodiment of the present application, the physiological conditions (first physiological sign data) of the target object, such as blood pressure data, heart rate, body temperature, etc., can be monitored in real time during the operation of the first task, so that the resource priority corresponding to the first task can be determined according to the physiological condition of the target object, and the resource configuration of the task resources can be further performed according to the resource priority of the first task, so as to ensure that the tasks with high importance can get the maximum resource configuration, greatly improve the flexibility and accuracy of resource configuration, and enhance the intelligence of the terminal.
[0188] Based on the above embodiment, in another embodiment of the present application, Figure 6 This is a schematic diagram of the composition structure of the resource allocation device proposed in the embodiment of the present application, such as Figure 6 As shown, the resource configuration device 110 proposed in the embodiment of the present application may include:
[0189] The acquisition unit 111 is used to acquire first physiological sign data of the target object corresponding to a first task at the current moment; wherein the first task is a task corresponding to the foreground application running at the current moment; and the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data;
[0190] A determining unit 112, configured to determine a resource priority of a first task based on the first physiological sign data;
[0191] The configuration unit 113 is used to perform resource configuration on the first task and the second task based on the resource priority of the first task; wherein the second task is a task corresponding to the background application running at the current moment.
[0192] In the embodiments of the present application, further, Figure 7 This is a schematic diagram of the structure of the computer device proposed in the embodiment of the present application, such as Figure 7As shown, the computer device 120 proposed in the embodiment of the present application may include a processor 1201 , a memory 1202 , a communication interface 1203 , and a bus 1204 for connecting the processor 1201 , the memory 1202 , and the communication interface 1203 .
[0193] In the embodiment of the present application, the processor 1201 can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the function of the processor can also be other, and the embodiment of the present application is not specifically limited. The control device 11 can also include a memory 1202, which can be connected to the processor 1201, wherein the memory 1202 is used to store executable program code, the program code includes computer operation instructions, and the memory 1202 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.
[0194] In the embodiment of the present application, the bus 1204 is used to connect the communication interface 1203, the processor 1201 and the memory 1202, as well as the mutual communication between these devices.
[0195] In practical applications, the memory 1202 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of the above types of memories, and provide instructions and data to the processor 1201.
[0196] Further, in an embodiment of the present application, the processor 1201 obtains first physiological sign data of the target object corresponding to a first task at the current moment; wherein the first task is a task corresponding to a foreground application running at the current moment; the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data; the resource priority of the first task is determined based on the first physiological sign data; resources are configured for the first task and the second task based on the resource priority of the first task; wherein the second task is a task corresponding to a background application running at the current moment.
[0197] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.
[0198] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0199] An embodiment of the present application provides a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, the resource configuration method as described above is implemented.
[0200] Specifically, a program instruction corresponding to a resource configuration method in this embodiment may be stored on a storage medium such as a CD, a hard disk, or a USB flash drive. When the program instruction corresponding to a resource configuration method in the storage medium is read or executed by an electronic device, the following steps are included:
[0201] Acquire first physiological sign data of the target object corresponding to a first task at the current moment; wherein the first task is a task corresponding to a foreground application running at the current moment; and the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data;
[0202] determining a resource priority of a first task based on the first physiological sign data;
[0203] Resources are configured for the first task and the second task based on the resource priority of the first task; wherein the second task is a task corresponding to the background application running at the current moment.
[0204] The embodiment of the present application also provides a computer program product.
[0205] In some embodiments, the computer program product may include a computer program or instructions.
[0206] In some embodiments, the computer program product can be applied to the computer device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the computer device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0207] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0208] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0209] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0210] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0211] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A resource configuration method, characterized in that: The method comprises: Acquire first physiological sign data of the target object corresponding to a first task at the current moment; wherein the first task is a task corresponding to a foreground application running at the current moment; and the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data; determining a resource priority of the first task based on the first physiological sign data; The first task and the second task are resource-configured based on the resource priority of the first task; wherein the second task is a task corresponding to the background application running at the current moment.
2. The method according to claim 1, characterized in that The determining the resource priority of the first task based on the first physiological sign data comprises: Get the whitelist; In a case where the first task belongs to the whitelist, a resource priority of the first task is determined based on the first physiological sign data.
3. The method according to claim 1 or 2, characterized in that: The determining the resource priority of the first task based on the first physiological sign data comprises: Based on the first physiological sign data and a mapping relationship between the sign data and the priority, a resource priority of the first task is determined.
4. The method according to claim 3, characterized in that After configuring resources for the first task and the second task based on the resource priority of the first task, the method further includes: reacquiring third physiological sign data corresponding to the target object; The mapping relationship between the physiological sign data and the priority is updated according to the first physiological sign data and the third physiological sign data.
5. The method according to claim 1 or 2, characterized in that: The determining the resource priority of the first task based on the first physiological sign data comprises: Determine reference data for physiological signs; In a case where the first physiological sign data and the physiological sign reference data meet a preset condition, determining that the resource priority of the first task is higher than the resource priority of the second task; The preset conditions include at least one of the following: The difference between the first physiological sign data and the physiological sign reference data is greater than a first value; A ratio between the first physiological sign data and the physiological sign reference data is greater than a second value.
6. The method according to claim 5, characterized in that The determining of physiological sign reference data includes: Acquire second physiological sign data corresponding to the target object; wherein the second physiological sign data is acquired when at least one task is running in the foreground at any time before the current time; The physiological sign reference data is determined according to the second physiological sign data.
7. The method according to any one of claims 1-2, 4 and 6, characterized in that: The method further comprises: Setting the resource priority of the second task to a preset priority; The configuring resources for the first task and the second task based on the resource priority of the first task includes: In a case where the resource priority of the first task is higher than the resource priority of the second task, determining a task processing resource requirement of the first task; Allocating first task processing resources to the first task based on a task processing resource requirement of the first task; After allocating the first task processing resource to the first task, allocating the second task processing resource to the second task.
8. A resource allocation device, characterized in that: The resource configuration device comprises: an acquisition unit, configured to acquire first physiological sign data of a target object corresponding to a first task at a current moment; wherein the first task is a task corresponding to a foreground application running at the current moment; and the first physiological sign data includes at least one of blood pressure data, heart rate data, and body temperature data; a determining unit, configured to determine a resource priority of the first task based on the first physiological sign data; A configuration unit is used to perform resource configuration on the first task and the second task based on the resource priority of the first task; wherein the second task is a task corresponding to the background application running at the current moment.
9. A computer device, characterized in that: The computer device includes a processor and a memory storing instructions executable by the processor. When the instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.