Process management method, terminal and computer readable storage medium
A process management and process technology, applied in computing, program control design, multi-program device, etc., can solve problems such as terminal freezes, and achieve the effect of avoiding terminal freezes, improving application startup speed, and improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] like figure 1 As shown, the process management method provided by the embodiment of the present invention includes:
[0029] S101. After the system service is started, an empty public process is created, and the state of the public process is initialized.
[0030] Specifically, after the system is started, the system service process starts various system service components, and after the system service is started, an empty public process is created and the state of the public process is initialized.
[0031] see figure 2 , initializing the state of the common process further includes:
[0032] S201, setting the priority of the public process to be equal to the priority of the system service process;
[0033] S202. Set the security context of the public process as an untrusted application type;
[0034] S203. Initialize the application package name list, application priority queue and process information structure running in the common process.
[0035] Specificall...
Embodiment 2
[0041] like Figure 4 As shown, a permission verification method provided by an embodiment of the present invention includes:
[0042] S401. The application component calls the API;
[0043] Specifically, the application component invokes the system API (Application Programming Interface, application programming interface), and the calling method includes obtaining the main thread object, and the client agent invokes its interface schedule command to notify the common process to load and start the application component. After the public process receives the schedule command, it loads and runs the application component.
[0044] S402. The API obtains the user identifier of the caller's current process;
[0045] S403. Determine whether the user ID is a dedicated user ID of the public process, if yes, execute step S404, otherwise execute step S405;
[0046] S404. Obtain the user ID of the application to which the currently running component belongs, perform permission verificati...
Embodiment 3
[0052] like Figure 5 As shown, a method for updating an application priority queue provided by an embodiment of the present invention includes:
[0053] S501. Run the application component in a public process;
[0054] S502. Determine whether the application to which the current running component belongs has become the foreground, if so, execute step S503, otherwise execute step S504;
[0055] S503. Directly move the application belonging to the currently running component to the head of the application priority queue, and go to step S505;
[0056] S504. Search the head of the priority queue for the first non-foreground application, and move the application to which the currently running component belongs to before the first non-foreground application;
[0057] S505. End updating the application priority queue.
[0058] Specifically, in the application priority queue in the public process, the applications are sorted according to the frequency of use, the head is the most ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


