Process scheduling method and device, electronic device, and storage medium

By scheduling the main process and network communication processes to a high priority execution sequence in the foreground of the application, the business delay problem caused by the low priority of network communication processes is solved, and the success rate and interaction efficiency of services such as grabbing red envelopes and orders is improved. .

CN112783623BActive Publication Date: 2024-11-05BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110057506.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-15
Publication Date
2024-11-05
Estimated Expiration
2041-01-15

AI Technical Summary

Technical Problem

In the prior art, network communication processes are regarded as having low priority, resulting in services with high requirements for network communications that may lead to millisecond delays during execution, resulting in failure of service execution, such as failure to succeed when grabbing red envelopes or orders.

Method used

When the application is in the foreground, the main process is scheduled to an execution sequence with a higher priority, and the network communication process is scheduled to an execution sequence with a priority of no lower than the main process to improve network communication efficiency and interaction efficiency.

Benefits of technology

By increasing the priority of network communication processes, the execution success rate of services with high requirements for network communication is significantly improved, especially in scenarios such as grabbing red envelopes or orders, user operations and device interaction can be quickly completed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112783623B_ABST
    Figure CN112783623B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a process scheduling method and device, electronic device, and storage medium. The method includes: when the application is in the foreground, scheduling the main process of the application from the default execution sequence to a first execution sequence with a priority higher than the default execution sequence; when the application includes a network communication process, scheduling the network communication process to a second execution sequence; the priority of the second execution sequence is not lower than the priority of the first execution sequence. The method can schedule the network communication process corresponding to the application to an execution sequence with a higher priority when the application is in the foreground, thereby enabling the user to quickly execute services with higher network communication requirements when operating the application in the foreground.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computers, and in particular to a process scheduling method and device, an electronic device, and a storage medium. Background Art

[0002] Most applications in electronic devices need to be connected to the Internet to interact with other devices. These applications usually need to include at least one network communication process to complete the above-mentioned operations of interacting with other devices.

[0003] In the related art, the network communication process is regarded as a type of process with relatively low execution efficiency requirements, and is therefore designed to be executed in an execution sequence with a lower priority.

[0004] However, in actual applications, in addition to services that do not require high network communication, such as sending messages, there are also services that require high network communication. For example, for the red envelope grabbing service in a group or the order grabbing service for takeaway drivers, a millisecond delay may cause the service execution to fail. Summary of the invention

[0005] The present disclosure provides a process scheduling method and device, an electronic device, and a storage medium, which can schedule the network communication process corresponding to the application to an execution sequence with a higher priority when the application is in the foreground, thereby quickly executing services with higher network communication requirements.

[0006] According to a first aspect of the present disclosure, a process scheduling method is provided, comprising:

[0007] When the application is in the foreground, scheduling the main process of the application from the default execution sequence to a first execution sequence with a priority higher than the default execution sequence;

[0008] In the case where the application includes a network communication process, the network communication process is scheduled to a second execution sequence; the priority of the second execution sequence is not lower than the priority of the first execution sequence.

[0009] According to a second aspect of the present disclosure, a process scheduling device is provided, comprising:

[0010] A first process scheduling unit, when the application is in the foreground, schedules the main process of the application from the default execution sequence to a first execution sequence with a priority higher than the default execution sequence;

[0011] The second process scheduling unit schedules the network communication process to a second execution sequence when the application includes the network communication process; the priority of the second execution sequence is not lower than the priority of the first execution sequence.

[0012] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0013] processor;

[0014] a memory for storing processor-executable instructions;

[0015] The processor implements the method as described in the first aspect by running the executable instructions.

[0016] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the method described in the first aspect are implemented.

[0017] In the technical solution disclosed in the present invention, the processes included in the application can be scheduled based on the current state of the application. Specifically, when it is detected that the application is in the foreground, in addition to scheduling the main process of the application to an execution sequence with a higher priority, the network communication process included in the application is also scheduled to an execution sequence with a priority not lower than the execution sequence where the main process is located.

[0018] It should be understood that when the application is in the foreground, it means that the application is being operated or is about to be operated, and it is necessary to enable the application to respond quickly based on the user's operation. Therefore, the main process of the application is scheduled to a higher priority execution sequence to meet the instant response of the above application to the user's operation. Correspondingly, the application is being operated or is about to be operated, which means that the user is likely to need to interact with other devices through the application. At this time, scheduling the network communication process in the application to a higher priority execution sequence can greatly improve the efficiency of interaction with other devices. Especially in scenarios where users are grabbing red envelopes, grabbing orders, etc., which have extremely high requirements for interaction efficiency, the success rate of users grabbing red envelopes or grabbing orders can be greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0020] Figure 1 is a flow chart of a process scheduling method shown in an exemplary embodiment of the present disclosure;

[0021] Figure 2is a flowchart of another process scheduling method shown in an exemplary embodiment of the present disclosure;

[0022] Figure 3 is a block diagram of a process scheduling device shown in an exemplary embodiment of the present disclosure;

[0023] Figure 4 is a block diagram of another process scheduling device shown in an exemplary embodiment of the present disclosure;

[0024] Figure 5 It is a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0026] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0027] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0028] Most applications in electronic devices need to be connected to the Internet to interact with other devices. These applications usually need to include at least one network communication process to complete the above-mentioned operations of interacting with other devices.

[0029] In the related art, the network communication process is regarded as a type of process with relatively low execution efficiency requirements, and is therefore designed to be executed in an execution sequence with a lower priority.

[0030] However, in actual applications, in addition to services that do not require high network communication, such as sending messages, there are also services that require high network communication. For example, for the red envelope grabbing service in a group or the order grabbing service for takeaway drivers, a millisecond delay may cause the service execution to fail.

[0031] It can be seen from this that when executing tasks such as grabbing red envelopes or grabbing orders, if the execution method in the relevant technology is still used, it is very likely that the red envelopes or orders will not be grabbed because the network communication process is executed in a lower priority execution sequence.

[0032] To this end, the present disclosure proposes a process scheduling method to avoid the problem in the related art that the execution success rate of services with high network communication requirements is low due to the execution of network communication processes in a sequence with lower priority.

[0033] Figure 1 A process scheduling method is shown as an exemplary embodiment of the present disclosure. Figure 1 As shown, the method may include the following steps:

[0034] Step 102: When the application is in the foreground, the main process of the application is scheduled from the default execution sequence to a first execution sequence having a higher priority than the default execution sequence.

[0035] The execution subject of the technical solution of the present disclosure may be any type of electronic device, for example, the electronic device may be a mobile terminal such as a smart phone or a tablet computer, or may be a fixed terminal such as a smart TV or a PC (personal computer). It should be understood that any electronic device that can install an application program containing a network communication process and enable the application program to be displayed in the foreground may be used as the electronic device in the present disclosure, and which type of electronic device is used as the execution subject of the technical solution of the present disclosure may be determined by those skilled in the art according to actual needs, and the present disclosure does not limit this.

[0036] From the above introduction, it can be seen that in the related technology, the network communication process is regarded as a type of process that does not require high network communication, so it is usually designed to be executed in a lower priority execution sequence. The reason why the network communication process is considered to have low requirements for network communication is that the related technology only considers that the network communication process is used for services such as message sending and voice communication that do not require particularly high network communication. It should be understood that for services such as message sending and voice communication, a delay of several milliseconds or even seconds will not have much impact. However, with the continuous increase in user business needs, a large number of services with extremely high requirements for network communication have emerged. For example, the red envelope snatching business that often appears in the group of instant application programs, a millisecond delay will affect the result of the red envelope snatching; for another example, with the increasingly fierce competition in the food delivery industry, food delivery drivers need to snatch orders on the application program in order to obtain the dispatching task, and the same millisecond delay will affect the result of the order snatching.

[0037] Step 104: When the application includes a network communication process, the network communication process is scheduled to a second execution sequence; the priority of the second execution sequence is not lower than the priority of the first execution sequence.

[0038] Based on the above reasons, the present invention no longer simply places the network communication process of the application in an execution sequence with a lower priority, but schedules the execution sequence of the network communication process according to the status of the application, so as to improve the quality of network communication in a timely manner, thereby improving the execution success rate of the above-mentioned services with higher requirements for network communication.

[0039] Specifically, the present disclosure can monitor whether an application is in the foreground. When it is determined that the application is in the foreground, on the one hand, the main program of the application can be scheduled from the default execution sequence to a first execution sequence with a priority higher than the default execution sequence; on the other hand, if the application includes a network communication process, the network communication process can be further adjusted to a second execution sequence with a priority not lower than the first execution sequence.

[0040] It should be understood that when the application is not in the foreground, for example, when it is running in the background, it means that the user has not operated the application, and the application does not need to respond immediately based on the user's operation. At this time, the main process of the application can be executed in the default execution sequence with a lower priority. When the application is in the foreground, it means that the user needs to operate on the application, and the application needs to respond immediately to the user's operation. At this time, the main process of the application can be scheduled from the above-mentioned default execution sequence to the first execution sequence with a higher priority than the default execution sequence to improve the response speed of the application. It is not difficult to understand that the main program executed in the first execution sequence can enable the application to respond immediately to the user's operation, which is obviously an execution sequence with a higher priority. Imagine that if the first execution sequence is not an execution sequence with a higher priority, it is impossible to respond immediately to the user's operation. For example, when the user slides up and down a certain session page, if the priority of the first execution sequence is not high, the session page cannot slide with the finger. It can be seen that the first execution sequence must be an execution sequence with a higher priority (when the main process is executed in it, the application's response speed to user operations is usually in milliseconds). On this basis, the present disclosure further schedules the network communication process included in the application to a second execution sequence whose priority is not lower than that of the first execution sequence, which means that the priority of the execution sequence in which the network communication process is located is consistent with or higher than that of the execution sequence in which the main process is located. In other words, the execution of the network communication process in the second sequence can greatly improve the quality of network communication, thereby improving the success rate of business execution in services such as red envelope snatching.

[0041] In the present disclosure, scheduling the network communication process included in the application to the second execution sequence having a priority not lower than the first execution sequence can be achieved by writing the identifier of the network communication process into the file node used to store the process in the second execution sequence.

[0042] In the present disclosure, the main process of an application is used to enable the application to run normally, and is mainly used to display the interactive interface of the application to respond instantly according to the user's operation.

[0043] In the present disclosure, the type of a process can be determined based on the name of the process. Specifically, the names of the processes corresponding to the application can be determined first; then it is determined whether the names of the processes contain identification information related to network communication. If the name of any process contains identification information related to network communication, then the process can be determined as a network communication process included in the application.

[0044] For example, assuming that the name of a process is com.tencent.mm.push, in which push is identification information related to the network communication process, the process can be determined as a network communication process and then added to the second execution sequence.

[0045] In the present disclosure, the priority of the execution sequence may be determined by different factors in different situations.

[0046] In one case, the priority of an execution sequence may be related to the called processor core. Specifically, the performance of a processor core called by an execution sequence with a relatively higher priority is better than the performance of a processor core called by an execution sequence with a relatively lower priority. Taking the above-mentioned default execution sequence, the first execution sequence, and the second execution sequence as examples (here the priority of the second execution sequence is higher than the priority of the first execution sequence), the performance of the processor core called by the second execution sequence is better than the performance of the processor core called by the first execution sequence; and the performance of the processor core called by the first execution sequence is better than the performance of the processor core called by the second execution sequence.

[0047] In another case, the priority of the execution sequence may be related to the execution order of the processes included therein. Specifically, a process in an execution sequence with a relatively higher priority is executed earlier than a process in an execution sequence with a relatively lower priority. Taking the above-mentioned default execution sequence, the first execution sequence, and the second execution sequence as an example (here the priority of the second execution sequence is higher than the priority of the first execution sequence), when there are processes in all three, the processes included in the second execution sequence are executed first, followed by the processes included in the first execution sequence, and finally the processes included in the default execution sequence.

[0048] In another case, the execution sequence with a relatively higher priority not only calls a processor core with better performance than the processor core called by the execution sequence with a relatively lower priority, but also the processes contained therein are executed earlier than the processes in the execution sequence with a relatively lower priority.

[0049] Of course, the above examples are only illustrative, and it should be understood that the aspects in which the priority of the execution sequence is reflected can be determined by those skilled in the art according to actual conditions, and the present disclosure does not limit this.

[0050] It should be stated that the performance of the processor core called by the execution sequence in the present disclosure may depend on the number of processor cores called by the execution sequence, or on the performance of a single processor core called. Still taking the above-mentioned default execution sequence, the first execution sequence and the second execution sequence as examples (here the priority of the second execution sequence is higher than the priority of the first execution sequence) as examples: if it depends on the performance of a single processor core, then the processor core called by the second execution sequence may be the processor core with the best performance, such as the traditional super-large core; the processor core called by the first execution sequence may be a processor core with medium performance, such as the traditional large core; the processor core called by the default execution sequence may be a processor core with poor performance, such as the traditional small core; if it depends on the number of processor cores called, then when the second execution sequence calls three processor cores, the first execution sequence may call two processor cores, and the default execution sequence may call one processor core.

[0051] Of course, the performance of the processor core called by the execution sequence can also be related to the number of processor cores called and the performance of a single processor core. For example, in actual applications, a top-app execution sequence is usually pre-built in memory, which can usually call 1 super core and 3 large cores; a foreground execution sequence and a background execution sequence are also built, where the foreground execution sequence can usually call 3 large cores, while the background execution sequence can only call 3 small cores.

[0052] In the present disclosure, when it is determined that the application includes a network communication process, the execution efficiency of the network communication can be improved by switching the processor or the core in the processor related to the second execution sequence to a performance enhancement mode, thereby improving the quality of network communication services. For example, the processor can be switched to a performance enhancement mode by modifying the value related to the processor frequency in the node file storing the processor frequency to a higher value. A similar method is also applicable to the core in the processor related to the second execution sequence.

[0053] Since the purpose of the present disclosure to schedule the network communication process to the second execution sequence is to improve the quality of network communication, the present disclosure can also further determine whether the network communication process is used to execute a high communication requirement service when it is determined that the network communication process is included in the application. When it is determined that the network communication process is used to execute a high communication requirement service, the network communication process can be scheduled to the second execution sequence. Among them, the high communication requirement service refers to: a service that has high requirements for network communication quality, and its execution success rate is usually positively correlated with the network communication quality. For example, the high communication requirement service can be the above-mentioned red envelope grabbing service and order grabbing service.

[0054] The network communication quality in the present disclosure can be measured from multiple dimensions. For example, the network communication quality can only represent the network transmission speed. In this case, the execution success rate of the above-mentioned high communication requirement services is positively correlated with the network transmission speed; for another example, based on the network transmission speed, the network communication quality is also related to the stability of the network.

[0055] It should be understood that different execution sequences usually have different priorities. Therefore, when the second execution sequence has the same priority as the first execution sequence, the second execution sequence and the first execution sequence may be the same execution sequence. For example, following the example of the top-app execution sequence, if the main process of the application is scheduled to the top-app execution sequence, then the network communication process of the application may also be scheduled to the top-app execution sequence.

[0056] It can be seen from the above technical solution that the present disclosure can schedule the main process of the application to an execution sequence with a higher priority when the application is in the foreground, so that the application can respond immediately to the user's operation. Wherein, when the application also includes a network communication process, the network communication process is further scheduled to an execution sequence with a priority not lower than the execution sequence in which the main process is located, so that the network communication process can also be executed in an execution sequence with a higher priority. Obviously, since the network communication process is in an execution sequence with a higher priority, the network communication quality of the application is also greatly improved. When there is a high communication requirement service in the application that needs to be executed, the high communication requirement service can be quickly executed. For example, when the high communication requirement service is a red envelope snatching service, an instruction to snatch the red envelope can be quickly sent to the server to improve the success rate of the red envelope snatching.

[0057] Furthermore, the present disclosure can further confirm whether the network communication process in the application is used to execute the above-mentioned high communication requirement business, and only when it is determined to be used to execute the high communication requirement business, the network communication process will be scheduled to a higher priority execution sequence. This can effectively avoid the problem of scheduling the network communication process to a higher priority execution sequence when the network communication process is not used to execute the high communication requirement business, thereby occupying high-performance processing resources.

[0058] The technical solution of the present disclosure is introduced below by way of specific embodiments.

[0059] Figure 2 FIG. 1 is a flow chart of another process scheduling method shown in an exemplary embodiment of the present disclosure. Figure 2 As shown, the method comprises the following steps:

[0060] Step 201, create several execution sequences in the memory.

[0061] In this embodiment, several execution sequences may be created in the memory in advance. Specifically, these execution sequences may be created when the electronic device is started.

[0062] For example, execution sequences A, B, and C may be created.

[0063] Step 202: setting priorities for a number of execution sequences.

[0064] In this embodiment, priorities may be further set for the created execution sequences. For example, the priorities of the execution sequences A, B, and C may be set to 1, 2, and 3.

[0065] Assume that the electronic device in this embodiment is equipped with an 8-core processor, which includes 1 super-large core, 3 large cores and 4 small cores. Then, in this process, it is also necessary to configure the processor cores that can be scheduled by each execution sequence. For example, execution sequence A can be configured to: schedule 1 super-large core and 2 large cores; execution sequence B can be configured to: schedule 1 large core and 2 small cores; execution sequence C can be configured to: schedule 2 small cores. Obviously, under this configuration, the total performance of the processor cores that can be called by execution sequence A is better than that of execution sequence B, and the total performance of the processor cores that can be called by execution sequence B is better than that of execution sequence C.

[0066] In this step, it is also possible to further set the execution sequence of each process contained in any application under different conditions. For example, for the main process of instant messaging application Y, it can be set as follows: if instant messaging application Y is in the foreground, it is scheduled to execution sequence A; if instant messaging application Y is in the background, it is scheduled to execution sequence B.

[0067] It should be noted that step 201 and step 202 can be executed at any time before the application is started, for example, they can be executed when the electronic device is started as described above; for another example, they can be created and configured in the memory before the electronic device leaves the factory.

[0068] Step 203, determine whether the application is in the foreground; if so, execute step 204, otherwise, execute step 206.

[0069] In this embodiment, after any application is started, its main process can be scheduled to different execution sequences according to the situation in which it is in.

[0070] Still taking the instant messaging application Y as an example, if the instant messaging application Y is currently in the foreground, it can be scheduled to the execution sequence A; if the instant messaging application Y is currently in the background, it can be scheduled to the execution sequence B.

[0071] Step 204: Schedule the main process of the application from the default execution sequence to the first execution sequence.

[0072] Continuing with the above example, for instant messaging application Y, execution sequence B is the default execution sequence, and execution sequence A is the first execution sequence.

[0073] Step 205: Schedule the network communication process of the application program from the default execution sequence to the second execution sequence.

[0074] Continuing with the above example, since there is no execution sequence with a higher priority than execution sequence A, the network process of instant messaging application Y can also be scheduled to execution sequence A. This situation is the situation where the priorities of the first execution sequence and the second execution sequence are the same. At this time, the first execution sequence and the second execution sequence are the same execution sequence.

[0075] It should be understood that if the current user grabs a red envelope in any group in instant messaging application Y, since the network communication process of instant messaging application Y is in a higher priority execution sequence, it can interact with other devices more quickly. For example, it can send red envelope grabbing instructions to the remote server of instant messaging application Y more quickly based on user operations, thereby making it more likely for the user to grab a red envelope.

[0076] Step 206, schedule the main process to the default execution sequence.

[0077] It can be seen from the above technical scheme that through the technical scheme of the present invention, when the application is in the foreground, the network communication process of the application can also be scheduled to an execution sequence with a higher priority, so that the present invention can interact with other devices more quickly, thereby improving the execution success rate of services such as grabbing red envelopes that have high requirements for network communication quality.

[0078] Figure 3 is a block diagram of a process scheduling device shown in an exemplary embodiment of the present disclosure. Figure 3 The device includes a first process scheduling unit 301 and a second process scheduling unit 302.

[0079] The first process scheduling unit 301 is configured to schedule the main process of the application from the default execution sequence to a first execution sequence having a higher priority than the default execution sequence when the application is in the foreground;

[0080] The second process scheduling unit 302 is configured to schedule the network communication process to a second execution sequence when the application includes the network communication process; the priority of the second execution sequence is not lower than the priority of the first execution sequence.

[0081] Optionally, the main process is used to display a user interaction interface of the application.

[0082] Optionally, the second process execution unit 302 is further configured to:

[0083] When it is determined that the application includes a network communication process and the network communication process is used to complete a service with high communication requirements, scheduling the network communication process to a second execution sequence;

[0084] The execution success rate of the high communication requirement service is positively correlated with the network communication quality.

[0085] Optionally, the high communication requirement service includes at least one of the following:

[0086] Red envelope distribution business and order grabbing business.

[0087] Optional,

[0088] The performance of a processor core executing a sequence call with a relatively higher priority is better than the performance of a processor core executing a sequence call with a relatively lower priority; and / or,

[0089] Processes in the execution sequence with relatively higher priorities are executed earlier than processes in the execution sequence with relatively lower priorities.

[0090] like Figure 4 As shown, Figure 4 is a block diagram of another process scheduling device shown in an exemplary embodiment of the present disclosure. Figure 3 On the basis of the illustrated embodiment, it further includes: a determining unit 303 and a switching unit 304 .

[0091] Optionally, also include:

[0092] The determining unit 303 is configured to determine the names of each process corresponding to the application; when it is determined that the name of any process contains identification information related to network communication, determine the any process as a network communication process included in the application.

[0093] Optional,

[0094] The switching unit 304 is configured to switch the processor or the core in the processor related to the second execution sequence to a performance enhancement mode when it is determined that the application includes a network communication process.

[0095] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0096] Accordingly, the present disclosure also provides a process scheduling device, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to implement a process scheduling method as described in any of the above embodiments, for example, the method may include: when the application is in the foreground, scheduling the main process of the application from a default execution sequence to a first execution sequence whose priority is higher than the default execution sequence; when the application includes a network communication process, scheduling the network communication process to a second execution sequence; the priority of the second execution sequence is not lower than the priority of the first execution sequence.

[0097] Accordingly, the present disclosure also provides an electronic device, which includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for implementing a process scheduling method as described in any of the above embodiments. For example, the method may include: when an application is in the foreground, scheduling the main process of the application from a default execution sequence to a first execution sequence whose priority is higher than the default execution sequence; when the application includes a network communication process, scheduling the network communication process to a second execution sequence; the priority of the second execution sequence is not lower than the priority of the first execution sequence.

[0098] Figure 5 1 is a block diagram of an apparatus 500 for implementing a process scheduling method according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0099] Reference Figure 5, the device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0100] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0101] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device 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 memory, flash memory, magnetic disk or optical disk.

[0102] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.

[0103] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0104] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0105] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0106] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0107] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR (New Radio) or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also 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 technologies.

[0108] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0109] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by the processor 520 of the device 500 to perform the above method. 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 disk, an optical data storage device, etc.

[0110] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0111] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

[0112] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.

Claims

1. A process scheduling method, characterized in that: include: When the application is in the foreground, scheduling the main process of the application from the default execution sequence to a first execution sequence with a priority higher than the default execution sequence; In the case where the application includes a network communication process, scheduling the network communication process to the second execution sequence includes: in the case where it is determined that the application includes a network communication process and the network communication process is used to complete a service with high communication requirements, scheduling the network communication process to the second execution sequence; The priority of the second execution sequence is not lower than the priority of the first execution sequence, and the execution success rate of the high communication requirement service is positively correlated with the network communication quality.

2. The method according to claim 1, characterized in that: The main process is used to display the user interaction interface of the application.

3. The method according to claim 1, characterized in that Also includes: Determine the names of each process corresponding to the application; When it is determined that the name of any process contains identification information related to network communication, the any process is determined as a network communication process included in the application.

4. The method according to claim 1, characterized in that Also includes: When it is determined that the application includes a network communication process, the processor or a core in the processor associated with the second execution sequence is switched to a performance enhancement mode.

5. The method according to claim 4, characterized in that The high communication requirement service includes at least one of the following: Red envelope distribution business and order grabbing business.

6. The method according to claim 1, characterized in that The performance of a processor core executing a sequence call with a relatively higher priority is better than the performance of a processor core executing a sequence call with a relatively lower priority; and / or, Processes in the execution sequence with relatively higher priorities are executed earlier than processes in the execution sequence with relatively lower priorities.

7. A process scheduling device, characterized in that: include: A first process scheduling unit, when the application is in the foreground, schedules the main process of the application from the default execution sequence to a first execution sequence with a priority higher than the default execution sequence; The second process scheduling unit, when the application includes a network communication process, schedules the network communication process to the second execution sequence, comprising: when it is determined that the application includes a network communication process and the network communication process is used to complete a service with high communication requirements, scheduling the network communication process to the second execution sequence; The priority of the second execution sequence is not lower than the priority of the first execution sequence, and the execution success rate of the high communication requirement service is positively correlated with the network communication quality.

8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 6 by running the executable instructions.

9. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.