Application starting method and electronic equipment

An electronic device and application startup technology, applied in the direction of program loading/starting, program control design, electrical digital data processing, etc. Effect

Active Publication Date: 2021-03-19
HONOR DEVICE CO LTD
View PDF11 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

During the cold start process, the mobile phone needs to create the application process of the application, execute the main function in the main thread (ActivityThread) of the application process, and load the class (class) file of the applicat

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Application starting method and electronic equipment
  • Application starting method and electronic equipment
  • Application starting method and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to clearly illustrate an application startup method provided by the embodiments of the present application, some concepts that may appear in subsequent embodiments are first explained.

[0042] A process is a running activity of an application on a data set, and is a basic unit for resource allocation and scheduling by an operating system (such as an Android system). Each process will occupy a piece of memory space, and the application program runs on the operating system in the form of one or more processes to achieve corresponding functions.

[0043] A thread is an entity of a process, which is a basic unit smaller than a process that can run independently. A thread can share all the resources owned by the process with other threads belonging to the same process. A thread can create and cancel another thread, and multiple threads in the same process can execute in parallel.

[0044] Object lock is a mechanism to ensure that only one thread accesses a method...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an application starting method and electronic equipment, relates to the technical field of terminals, and aims to shorten the starting time consumed by cold starting of an application and improve the use experience of a user when the application is opened. The method comprises the steps that a system service process in the electronic equipment obtains a starting message of afirst application; in response to the starting message, the system service process sends a creation request of an application process to a daemon process, and the creation request comprises application information of the first application; in response to the creation request, the daemon process creates an application process for the first application, and the application process comprises a firstthread and a second thread; wherein the application process executes the first thread and the second thread in parallel, the first thread executes initialization of a main thread of the first application, and the second thread creates a first class loader according to the application information to load a class file of the first application; and the application process starts to run the code of the first application.

Description

technical field [0001] The present application relates to the technical field of terminals, and in particular to an application starting method and an electronic device. Background technique [0002] Various applications (Applications, APPs) installed in electronic devices such as mobile phones have been widely used in daily life of users. Taking a mobile phone as an example, the period of time from when the user clicks the start icon of the application to when the first frame of the application is displayed after the mobile phone runs the code of the application can be called the start-up time of the application. The speed of start-up time directly affects the user experience of the application, and is also one of the important indicators for evaluating the performance of the mobile phone. [0003] When the application starts, if there is no process of the application in the background of the mobile phone, the mobile phone system needs to recreate a new process and assign ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/445
CPCG06F9/44505G06F9/4401G06F9/44521G06F9/4881
Inventor 孙文涌任玉林韩风程飞飞
Owner HONOR DEVICE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products