CN101639787B - Method and device for starting application program - Google Patents

Method and device for starting application program Download PDF

Info

Publication number
CN101639787B
CN101639787B CN200910174322.7A CN200910174322A CN101639787B CN 101639787 B CN101639787 B CN 101639787B CN 200910174322 A CN200910174322 A CN 200910174322A CN 101639787 B CN101639787 B CN 101639787B
Authority
CN
China
Prior art keywords
application program
equations
starts
startup
described application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN200910174322.7A
Other languages
Chinese (zh)
Other versions
CN101639787A (en
Inventor
贺彬
古幼鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhu Ruihong
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN200910174322.7A priority Critical patent/CN101639787B/en
Publication of CN101639787A publication Critical patent/CN101639787A/en
Application granted granted Critical
Publication of CN101639787B publication Critical patent/CN101639787B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for starting an application program. In the method, the device for starting the application program after receiving a starting request of an application program to be started determines a condition that the application program is ever started after starting-up; the device for starting the application program selects a second progress copied and established according to a first progress starting the application program to start the application program, wherein the first progress is a progress starting the application program at the last time, and the second progress is loaded with a dynamic library file of the application program. By the scheme of the invention, a plurality of application programs can be started in a short time, especially when a user starts the application program which is ever started again after starting up once, and the dynamic library of the application program does not need to be loaded again, thereby quickening the starting speed of starting the application program again and enhancing the experience degree of the user.

Description

Application program launching method and device
Technical field
The present invention relates to the mobile communication technology field, relate in particular to a kind of application program launching method and device.
Background technology
Portable terminal has welcome smart mobile phone epoch and 3G epoch, and mobile phone only can satisfy the transmission of basic voice call and short message unlike in the past like that function is simple, also needs to support the application of numerous function complexity.High-end smartphones is because its hardware configuration is higher, software systems are also at development, for this reason, many mobile phones are are all researched and developed as the basis take powerful open operating system (such as operating systems such as Windows, Mobile, Linux, Symbian and Android).Say that technically application program is moved at open operating system, generally adopt the mode of dynamic link, to save the storage resources of system, improve extendability and the maintainability of application program.Because mobile phone is subjected to numerous restrictions of the aspects such as cpu performance, memory headroom and performance, external memory space and performance, can not adopt the such powerful hardware configuration of desktop PC.The cellphone subscriber in use, can find that the travelling speed of application program is partially slow compared with desktop PC, thereby reduced the operating experience comfort level, wherein the most obvious aspect is that application program launching speed is slow, the user is after mobile phone interface starts application program, waiting a period of time just can see and the interface of application program just can carry out various operations.
Analyze from the angle of software, the toggle speed of application program relates to application program self and two aspects of cell phone software platform.From application program self, application program mainly is to carry out various initialization operations, the various objects of establishment etc. when starting.Application program should be accelerated these operations as far as possible, reduces unnecessary operation, and perhaps the execution time of reasonable distribution operation, the operation that for example has is carried out on the backstage after can being placed on application program launching.On the other hand, from cell phone software platform aspect, the platform that has has directly been transferred application program (can pass through execv (...) method of calling such as the Linux series platform) by order when starting application program; And the Platform Analysis of doing better all application programs the unloading phase public operation that all will experience, by accelerating these operations, thereby support the Acceleration of starting of all application programs.
To this, some cell phone software platforms have all adopted a kind of thought of pretrigger to solve two above problems.Chinese patent 200810000846.X has proposed the method that a kind of application program of mobile phone starts fast, its basic skills is: the public operation that (1) all will carry out all application programs on the mobile phone when starting the program that is provided by the cell phone software platform is provided finishes, and application program oneself provides an initialization function to finish with oneself again and uses relevant specific start-up operation; (2) the cell phone software platform starts a special program process in advance at running background on the backstage, this application program is carried out the public operation that all application programs all will be carried out when starting, then enter in the event major cycle, the groundwork that it will be done in this major cycle is to wait for the order of accepting application manager, and this process can be called quick startup background process (quicklauncher process); (3) when mobile phone will start a new application program, send the order that starts new application program to the quicklauncher process by application manager; (4) after operating quicklauncher process receives orders, withdraw from the event major cycle, from the order of receiving, obtain the dynamic library file of the application program of needs startup, load this dynamic library file, then obtain initialization function and the execution of this application program from dynamic library file, and then enter new event major cycle, the quicklauncher process has just become the process that can carry out the function of the application program that will start like this, namely the quicklauncher process is become the process of the application program that will start, thereby finished the startup of application program; (5) the cell phone software platform starts again a new quicklauncher process at running background, prepares for starting new application program.
Through a large amount of measured datas is analyzed, find dynamic base loading, create new process and process context be set and in the application start process, spent a lot of times, and these two kinds of operations are all application programs the unloading phase requisite operation.Although method that above-mentioned patent provides has reduced application program creates new process and process context is set when starting time, but do not shorten application program loads dynamic base in start-up course time, particularly after once starting shooting, when again starting some application programs, shorten the time that loads dynamic base, the application program that therefore starts portable terminal also has very large optimization space technically.
Summary of the invention
In view of this, the invention provides a kind of application program launching scheme, in start-up course, can't shorten the problem of the time that loads dynamic base in order to solve application program in the prior art.
According to an aspect of the present invention, provide a kind of application program launching method, be used for adopting the portable terminal of dynamic link mode to start application program.
According to application program launching method of the present invention, comprising:
The application program launching device receives after the startup request of the application program that starts, and determines once to start after start this application program;
This application program of the second process initiation that the application program launching Array selection creates according to the first process replication that starts this application program, wherein, the first process is the last process that starts this application program, has loaded the dynamic library file of this application program in the second process.
Further, starting first in the situation of this application program after the start determining, said method also comprises:
The application program launching device starts in the default first kind selects any one first kind to start process in the process collection, and sends the startup command that starts this application program to first kind startup process, and the indication first kind starts this application program of process initiation.
Preferably, first kind startup process initiation application program comprises:
After first kind startup process receives startup command, improve the priority that the first kind starts process, and resolve the startup command that receives;
The first kind starts process according to the startup command after resolving, and obtains the dynamic library file of application program to be started, and loads dynamic library file, and wherein, dynamic library file comprises the initialize routine of application program;
The first kind starts process replication and creates a new Equations of The Second Kind startup process, and the Equations of The Second Kind startup process that creates is recorded in default Equations of The Second Kind starts in the process collection, wherein, Equations of The Second Kind starts the process number of record Equations of The Second Kind startup process in the process collection and the filename that Equations of The Second Kind starts the application program of process initiation, and filename comprises the path of application program in cell phone system;
First kind startup process is carried out the initialize routine of dynamic library file, is finished, and the priority of recovering first kind startup process is normal priority;
The application program launching device creates with normal priority and starts a new first kind and starts process, and will create new first kind startup process and be recorded in the first kind startup process collection.
Further, the application program launching device judges that whether application program once started, and comprising after start:
Filename according to described application program to be started, the inquiry Equations of The Second Kind start the filename that whether exists in the process collection with above-mentioned application program corresponding Equations of The Second Kind start process, if exist, represent that then this application program once started after start, otherwise, represent that this application program starts first after start.
Further, the above-mentioned application program of application program launching Array selection the second process initiation comprises:
The application program launching device starts at Equations of The Second Kind selects the Equations of The Second Kind corresponding with the filename of this application program to start process as the second process in the process collection;
The application program launching device sends the startup command that starts this application program to the Equations of The Second Kind startup process of selecting, and the indication Equations of The Second Kind starts this application program of process initiation.
Preferably, above-mentioned Equations of The Second Kind startup process initiation application program comprises:
After Equations of The Second Kind startup process receives startup command, improve the priority that Equations of The Second Kind starts process;
Equations of The Second Kind starts process replication and creates a new Equations of The Second Kind startup process, and the new Equations of The Second Kind startup process that will create is recorded in the default Equations of The Second Kind startup process collection, wherein, Equations of The Second Kind starts the process number of record Equations of The Second Kind startup process in the process collection and the filename that Equations of The Second Kind starts the application program of process initiation, and filename comprises the path of application program in cell phone system;
Equations of The Second Kind startup process is carried out the initialize routine that Equations of The Second Kind starts the dynamic library file of process, is finished, and the priority of recovering Equations of The Second Kind startup process is normal priority.
Further, the application program launching device started process or Equations of The Second Kind startup process transmission startup command to the first kind after, said method also comprises: the application program launching device reduced the priority of application program launching device place process.
Further, after the first kind started process initiation application program or Equations of The Second Kind startup process initiation application program, said method also comprises: the application program launching device recovered the priority of application program launching device place process.
Preferably, to start the first kind startup process that process collection comprises be the process with following attribute for the above-mentioned first kind:
Finished the execution of the public operation of all application programs, go forward side by side in the incoming event major cycle, startup command in the startup application program of event major cycle application program launching device medium to be received, after receiving startup command, the initialize routine that only needs to load the dynamic library file of application program to be started and carry out dynamic library file;
The Equations of The Second Kind startup process that Equations of The Second Kind startup process collection comprises is the process with following attribute:
Finished the execution of the public operation of all application programs, loaded the dynamic library file of described application program to be started, go forward side by side in the incoming event major cycle, startup command in the startup application program of event major cycle application program launching device medium to be received, after receiving startup command, only need to carry out the initialize routine of dynamic library file;
Wherein, public operation comprises: load shared library that the operation of all application programs all needs, initialization graphics subsystem, initialization time processing subsystem and initialization use communication subsystem.
According to another aspect of the present invention, provide a kind of application program launching device, be used for adopting the portable terminal of dynamic link mode to start application program.
According to application program launching device of the present invention, comprising: receiver module, arbitration modules, second select module and second to start module, and wherein, receiver module is used for receiving the startup request of application program to be started; Arbitration modules is used for determining whether application program started after start; Second selects module, is used for the second process that selective basis starts the first process replication of application program; Second starts module, is used for the second process initiation application program according to the first process replication that starts application program.
Further, above-mentioned application program launching device also comprises: first selects module, first to start module, wherein, first selects module, be used for determining to start first in the situation of application program any one first kind startup process of selection in default first kind startup process collection after the start; First starts module, is used for sending the startup command that starts application program to first kind startup process, and the indication first kind starts the process initiation application program.
Further, above-mentioned application program launching device also comprises: priority arranges module, for reducing or recover the priority of application program launching device place process.
By above-mentioned at least one scheme of the present invention, can start at short notice a plurality of application programs, particularly when the user starts the application program that once started again after once starting shooting, do not need again to load the dynamic base of this application program, thereby accelerated again to start the toggle speed of this application program, promoted user's Experience Degree.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of writing, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide a further understanding of the present invention, and consists of the part of instructions, is used for together with embodiments of the present invention explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the process flow diagram according to the application program launching method of the embodiment of the invention;
Fig. 2 is the process flow diagram that starts the process initiation application program according to the first kind of the embodiment of the invention;
Fig. 3 is the process flow diagram that starts the process initiation application program according to the Equations of The Second Kind of the embodiment of the invention;
Fig. 4 is according to the quick process flow diagram that starts of the application program of mobile phone of the embodiment of the invention one;
Fig. 5 is the process flow diagram according to the establishment of the embodiment of the invention two and startup first kind quicklauncher process;
Fig. 6 is the process flow diagram according to the establishment of the embodiment of the invention three and startup Equations of The Second Kind quicklauncher process;
Fig. 7 is the process flow diagram that the first kind startup process according to the embodiment of the invention four starts fast;
Fig. 8 is the process flow diagram that the Equations of The Second Kind startup process according to the embodiment of the invention five starts fast;
Fig. 9 is the structural representation according to the application program launching device of the embodiment of the invention.
Embodiment
Functional overview
In embodiments of the present invention, the application program launching device is once starting first or is again starting after the start by judging the application program wait the portable terminal that starts, and selects first kind startup process or Equations of The Second Kind to start the above-mentioned application program of process initiation.If this application program is once starting after the start first, then select the first kind to start this application program of process initiation, only need load the dynamic base of this application program, and carry out the setup code in the dynamic base; If this application program was once starting after the start, then select Equations of The Second Kind to start this application program of process initiation, do not need to load the dynamic base of this application program, only carry out the setup code in the dynamic base, thereby shortened the start-up time of the application program of portable terminal, remedied deficiency of the prior art.
In embodiments of the present invention, the scheme of the startup application program that provides is applicable to adopt the portable terminal of dynamic link mode, comprise mobile phone, PDA, music the portable terminal such as video player, all take the handset starting application program as example, describe concrete startup scheme in detail in the embodiment of the invention.
In the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, is not intended to limit the present invention.
According to the embodiment of the invention, at first provide a kind of method that starts application program.
For realizing the method for the startup application program that the embodiment of the invention provides, need in cell phone system, set in advance two classes and start process collection, be that the first kind starts process collection, Equations of The Second Kind starts process collection, start process collection in above-mentioned two classes of specific implementation process and adopt the process chained list to manage, namely be set to the first kind and start process chained list, Equations of The Second Kind startup process chained list.
The first kind that the first kind starts in the process chained list starts process (quicklauncher process), has following attribute: carried out the public operation that all application programs all will be carried out when starting, go forward side by side in the incoming event major cycle, start the quick startup background process of application command at the medium application-managed device waiting of this major cycle.Analysis by the front as can be known, first kind quicklauncher process possesses the ability that becomes any program process that will start, highly versatile.
The Equations of The Second Kind that Equations of The Second Kind starts in the process chained list starts process (quicklauncher process), have following attribute: and Equations of The Second Kind quicklauncher process is on the basis of first kind quicklauncher process, further loaded the dynamic library file of the application program specific needs that will start, the incoming event major cycle of going forward side by side waits for that application manager sends the process that its startup is notified in order.At this moment, this process is not also carried out the setup code in the application program dynamic library file that will start.When the user reuses identical application program after once starting shooting, the Equations of The Second Kind of platform inquiry Dynamic Maintenance starts the process chained list, if when having the Equations of The Second Kind quicklauncher corresponding with this application program in this chained list, select it also to control the setup code of its direct executive utility dynamic base, can more further shorten start-up time.
Application manager creates simultaneously in cell phone system initialization start-up course and starts the individual first kind of N (N is as natural number) take normal priority and starts process.
Fig. 1 is the process flow diagram according to the application program launching method of the embodiment of the invention, and as shown in Figure 1, the method comprises following flow process (step 102-step 106):
Step 102, application program launching device receive after the startup request of the application program that starts, and judge that this application program is to start first or once started, if start first, then execution in step 104, if once started then execution in step 106.
In concrete implementation process, the application program launching device is according to the filename of application program to be started, the inquiry Equations of The Second Kind starts whether there be the Equations of The Second Kind startup process corresponding with the filename of described application program in the process chained list, if exist, represent that then described application program once started after start, otherwise, represent that described application program starts first after start.
Step 104, application program launching device select any one first kind to start process in default quick startup process chained list, and send the startup command that starts this application program to this first kind startup process, indicate this first kind to start the process initiation application program.
This application program of the second process initiation that step 106, application program launching Array selection create according to the first process replication that starts above-mentioned application program, wherein, the first process is the last process that starts application program, has loaded the dynamic library file of this application program in the second process.
Particularly, the application program launching device selects the Equations of The Second Kind corresponding with the filename of described application program to start process as described the second process in Equations of The Second Kind startup process chained list; The application program launching device sends the startup command that starts application program to this Equations of The Second Kind startup process of selecting, indicates this Equations of The Second Kind to start the process initiation application program.
Further, the application program launching device started process or Equations of The Second Kind startup process transmission startup command to the first kind after, the application program launching device reduced the priority of described application program launching device place process.
The below describes in detail to the flow process that the first kind starts the process initiation application program.
Fig. 2 is the process flow diagram that starts the process initiation application program according to the first kind of the embodiment of the invention, and as shown in Figure 2, the flow process that the first kind starts the process initiation application program comprises (step 202-step 210):
After step 202, first kind startup process receive startup command, improve the priority that the first kind starts process, and resolve the startup command that receives;
Step 204, the first kind start process according to the startup command after resolving, and obtain the dynamic library file of application program to be started, and load this dynamic library file, and wherein, this dynamic library file comprises the initialize routine of application program;
Step 206, the first kind start process replication and create a new Equations of The Second Kind startup process, and the Equations of The Second Kind startup process that creates is recorded in default Equations of The Second Kind starts in the process chained list, wherein, Equations of The Second Kind starts the process number of record Equations of The Second Kind startup process in the process chained list and the filename that Equations of The Second Kind starts the application program of process initiation, and this document name comprises the path of application program in cell phone system;
Particularly, first kind startup process copies new Equations of The Second Kind startup process of establishment according to the attribute of self, when above-mentioned application program startup next time, just can use new this application program of Equations of The Second Kind startup process initiation of this establishment.Because mobile phone resources is limited, in specific implementation process, cell phone system should dispose the maximum quantity that Equations of The Second Kind startup process allows existence, is made as M (M is natural number) at this.Therefore, when if current Equations of The Second Kind startup process number has reached maximum permissible value M, must adopt a kind of replacement policy, this strategy can flexible configuration, for example: LRU strategy (least recently used Replacement Strategy) replaces with new Equations of The Second Kind with least-recently-used old Equations of The Second Kind startup process and starts process.
Step 208, first kind startup process are carried out the initialize routine of above-mentioned dynamic library file, are finished, and the priority of recovering first kind startup process is normal priority;
Step 210, application program launching device create with normal priority and start a new first kind and start process, and will create new first kind startup process and be recorded in the first kind startup process chained list.
Particularly, because after step 208 was finished, the first kind started the process that process has become above-mentioned application program, therefore need to create a new first kind and start process replenishing, and be recorded to the first kind and start in the process chained list.
The below describes in detail to the flow process that Equations of The Second Kind starts the process initiation application program.
Fig. 3 is the process flow diagram that starts the process initiation application program according to the Equations of The Second Kind of the embodiment of the invention, and as shown in Figure 3, the flow process that Equations of The Second Kind starts the process initiation application program comprises (step 302-step 306):
After step 302, Equations of The Second Kind startup process receive startup command, improve the priority that Equations of The Second Kind starts process;
Step 304, the new Equations of The Second Kind startup process of process replication establishment that starts, and the new Equations of The Second Kind startup process that will create is recorded in the default Equations of The Second Kind startup process chained list, wherein, Equations of The Second Kind starts the process number of record Equations of The Second Kind startup process in the process chained list and the filename that Equations of The Second Kind starts the application program of process initiation, and filename comprises the path of application program in cell phone system;
Step 306, Equations of The Second Kind startup process are carried out the initialize routine that Equations of The Second Kind starts the dynamic library file of process, are finished, and the priority of recovering Equations of The Second Kind startup process is normal priority.
Further, after the first kind started process initiation application program or Equations of The Second Kind startup process initiation application program, the application program launching device recovered the priority of application program launching device place process.
Below in conjunction with accompanying drawing, describe the method for the startup application program that the embodiment of the invention provides in detail by specific embodiment.
The application program launching device that provides in the embodiment of the invention can arrange separately, also can arrange with the application manager unification, embodiment in following examples all adopts application program launching device and application manager unification to arrange, so the application manager of mentioning in following examples all has the start-up performance of application program launching device.
Embodiment one
Fig. 4 is that as shown in Figure 4, this flow process may further comprise the steps (step 401-step 414) according to the quick process flow diagram that starts of the application program of mobile phone of the embodiment of the invention one:
Step 401, at the cell phone software platform, quick startup application program is provided;
Application manager in step 402, the cell phone software platform starts simultaneously the individual first kind of N (N is as natural number) take normal priority and starts process, i.e. first kind quicklauncher process in cell phone system initialization start-up course;
Wherein the N value can be by system's flexible configuration.Such as being configured to: the application program number that may start in the start-up time of first kind quicklauncher process self, and N is more than or equal to 2.
After step 403, application manager received the application start request, the request arbitration modules was to choose the first kind or the Equations of The Second Kind quicklauncher process that is fit to the current system state;
In this step, arbitration modules is analyzed the current system running status, and method is described with preamble.
Step 404, the whether first kind quicklauncher process of judging that arbitration modules chooses.If, execution in step 405; Otherwise, execution in step 413;
Step 405, application manager send to the first kind quicklauncher process of selecting and start utility command, the priority of application manager reduction self place process;
After step 406, this first kind quicklauncher process are received startup command, improve self priority, resolve the startup command of receiving;
The dynamic library file that step 407, this first kind quicklauncher process loading application programs need;
Step 408, this first kind quicklauncher process copy according to strategy that to create a new Equations of The Second Kind quicklauncher process for subsequent use;
In this step, concrete implementation strategy such as preamble are described, and for example adopt lru algorithm.Like this, when the user reuses identical application program after once starting shooting, if the arbitration modules of step 403 checks in the quick startup process that exists in the Equations of The Second Kind quicklauncher process chained list for this application program, then enter step 412.
Then the setup code of step 409, this first kind quicklauncher process executive utility dynamic base recovers self priority;
After this step executed, this first kind quicklauncher process had namely become program process, and the startup of application program is finished.
Step 410, application manager start a new first kind quicklauncher process;
In this step, the first kind quicklauncher process that starts in the new quicklauncher Process Synchronization rapid 402 that starts is identical, be used for remedying that quicklauncher process in step 406 loss, thereby have N available first kind quicklauncher process in the assurance system.
The priority of step 411, application manager recovery self place process, the processing of selecting first kind quicklauncher to start application program leaves it at that;
Step 412, application manager send to the Equations of The Second Kind quicklauncher process of selecting and start utility command, the priority of application manager reduction self place process;
After step 413, this Equations of The Second Kind quicklauncher process are received startup command, improve self priority, copy creating a new Equations of The Second Kind quicklauncher process, with for subsequent use;
Then the setup code of step 414, this Equations of The Second Kind quicklauncher process executive utility recovers self priority.Last execution in step 411 allows application manager recover the priority of self place process, and the processing of selecting Equations of The Second Kind quicklauncher to start application program leaves it at that.
Below by specific embodiment, introduce in detail the establishment of mentioning in the step 402 of above-described embodiment one and the step 410 and the idiographic flow that starts first kind quicklauncher process.
Embodiment two
In the present embodiment, adopt (SuSE) Linux OS as example (portable terminal is not limited to adopt (SuSE) Linux OS) take portable terminal, the flow process that creates and start first kind quicklauncher process is introduced.
Fig. 5 is that as shown in Figure 5, this flow process may further comprise the steps (step 501-step 506) according to the process flow diagram of the establishment of the embodiment of the invention two and startup first kind quicklauncher process:
The fork () of step 501, application manager call operation system calls and creates a new subprocess;
The rreturn value that step 502, judgement fork () call, if equal 0, the subprocess that this new establishment is described is exactly that first kind quickluancher will be in the process of this operation, then execution in step 503; If be not equal to 0, explanation is to move execution in step 505 in the former process at application manager place;
Step 503, application manager arrange process running environment for the first kind quickiuancher process that will move, process, close such as the signal for this process setting operation system and unnecessary inherit the system resource of getting off and the system resource of opening needs for this process etc. from parent process;
Step 504, in subprocess execv (...) function of call operation system, carry out the code of first kind quicklauncher application program, the processing that application manager starts first kind quicklauncher process leaves it at that;
Step 505, application manager just call the subprocess sign ID that returns to fork () and are recorded in the ID chained list of the first kind quicklauncher process of himself safeguarding, the content of each node in this chained list has represented current available first kind quicklauncher process in the system;
Step 506, application manager continue other processing.
Particularly, when starting in system, application manager need to repeat above flow process N time.
Below by specific embodiment, introduce in detail the establishment of mentioning in the step 408 of above-described embodiment one and the step 413 and the idiographic flow that starts Equations of The Second Kind quicklauncher process.
Embodiment three
In the present embodiment, adopt (SuSE) Linux OS as example (portable terminal is not limited to adopt (SuSE) Linux OS) take portable terminal, the flow process that creates and start Equations of The Second Kind quicklauncher process is introduced.
Fig. 6 is that as shown in Figure 6, this flow process may further comprise the steps (step 601-step 603) according to the process flow diagram of the establishment of the embodiment of the invention three and startup Equations of The Second Kind quicklauncher process:
Step 601, create new subprocess by the first kind quicklauncher process at current place or Equations of The Second Kind quicklauncher process transfer fork ();
The rreturn value that step 602, judgement fork () call, if equal 0, the subprocess that this new establishment is described is exactly that Equations of The Second Kind quickluancher will be in the process of this operation, processing leaves it at that; If be not equal to 0, explanation is to move in the former process at first kind quicklauncher process or Equations of The Second Kind quicklauncher process place, changes step 603 over to;
The title (containing application program in the cell phone system absolute path) of step 603, notice application manager bundle process ID and the application program that will start is recorded in the Equations of The Second Kind quicklauncher chained list of application manager.
Below in conjunction with specific embodiment, introduce in detail the first kind from the angle of process and start the fast idiographic flow of startup of process, Equations of The Second Kind startup process.
Embodiment four
Fig. 7 is the process flow diagram that the first kind startup process according to the embodiment of the invention four starts fast, and as shown in Figure 7, this flow process may further comprise the steps (step 701-step 709):
Step 701, first kind quicklauncher process load in all platforms all application programs operations all needs the shared library used;
Step 702, the system that all will use all application programs carry out initialization.For example, the initialization in graphics subsystem storehouse, event handling subsystem library, application communication subsystem storehouse etc.;
Step 703, enter the event major cycle, in this circulation, wait for the application start order that application manager sends over;
Step 704, after this first kind quicklauncher process is received startup command, improve self priority, withdraw from the event major cycle, namely no longer receive and process other outside event;
Step 705, this first kind quicklauncher process are resolved startup command;
Step 706, this first kind quicklauncher process load corresponding application program dynamic base according to the analysis result of startup command;
Step 707, this first kind quicklauncher process copy the new first kind quicklauncher process corresponding with it that creates according to strategy;
Step 708, this first kind quicklauncher process are carried out the application initializes code in the application program dynamic base that loads, and then recover self priority;
Step 709, this first kind quicklauncher process enter the event major cycle again, because the application initializes function has re-started setting to the execution environment of this application according to oneself needs, therefore, in the event major cycle that enters specifically, to the reception of event with to process all be that flow process according to the logic of new application has been processed, be the process that original first kind qulckiauncher process has become the function of finishing new application, new application process namely.
Embodiment five
Fig. 8 is the process flow diagram that the Equations of The Second Kind startup process according to the embodiment of the invention five starts fast, and as shown in Figure 8, this flow process may further comprise the steps (step 801-step 805):
Step 801, this Equations of The Second Kind quicklauncher process are being created laggard incoming event major cycle, wait for the startup utility command that application manager sends in this circulation;
Step 802, after this Equations of The Second Kind quicklauncher process is received startup command, improve self priority, withdraw from the event major cycle, namely no longer receive and process other outside event;
Step 803, this Equations of The Second Kind quicklauncher copy and create a new Equations of The Second Kind quicklauncher process, with for subsequent use;
The setup code of step 804, this Equations of The Second Kind quicklauncher process executive utility recovers self process priority;
Step 805, this Equations of The Second Kind quicklauncher process enter the event major cycle again.
According to the embodiment of the invention, a kind of application program launching device also is provided, be used for adopting the portable terminal of dynamic link mode to start application program.
Fig. 9 is the structural representation of following according to the application program launching device of the embodiment of the invention, as shown in Figure 9, this device comprises: receiver module 91, arbitration modules 92, second select module 93 and second to start module 94, wherein, receiver module 91 is used for receiving the startup request of application program to be started; Arbitration modules 92 is used for determining whether application program started after start; Second selects module 93, is used for the second process that selective basis starts the first process replication of application program; Second starts module 94, is used for the second process initiation application program according to the first process replication that starts application program.
Preferably, application program launching device according to the embodiment of the invention also comprises: first selects module 95, first to start module 96, wherein, first selects module 95, be used for determining to start first in the situation of application program any one first kind startup process of selection in default first kind startup process collection after the start; First starts module 96, is used for sending the startup command that starts application program to described first kind startup process, and the indication first kind starts the process initiation application program.
Preferably, also comprise according to the application program launching device of the embodiment of the invention: priority arranges module 97, for reducing or recover the priority of application program launching device place process.
As mentioned above, the technical scheme that provides by the embodiment of the invention, can find out that a plurality of first kind start process or Equations of The Second Kind starts the existence of process in system, can both find the available first kind to start process or Equations of The Second Kind startup process when having guaranteed a plurality of application program of quick startup, thereby make each application program start process or fast startup of Equations of The Second Kind startup process realization by the first kind, particularly when the user reuses the application program that once started after once starting shooting, can obtain to start first this and use faster toggle speed.Start in the startup command process of process or Equations of The Second Kind startup process processing application manager in the first kind in addition, assurance moves with high priority, thereby make the start-up course of each application program without disturbance, avoided because the application program launching process that the impact of other event causes in the system is slack-off.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. an application program launching method is used for adopting the portable terminal of dynamic link mode to start application program, it is characterized in that, comprising:
The application program launching device receives after the startup request of the described application program that starts, and determines once to start after start described application program;
The described application program of the second process initiation that described application program launching Array selection creates according to the first process replication that starts described application program, wherein, described the first process is the last process that starts described application program, has loaded the dynamic library file of described application program in described the second process.
2. method according to claim 1 is characterized in that, is starting first after the start in the situation of described application program determining, described method also comprises:
Described application program launching device starts in the default first kind selects any one first kind to start process in the process collection, and send the startup command that starts described application program to described first kind startup process, indicate the described first kind to start the described application program of process initiation, wherein, the described first kind of selection starts process as described the first process.
3. method according to claim 2 is characterized in that, the described first kind starts the described application program of process initiation and comprises:
After described first kind startup process receives described startup command, improve the priority that the described first kind starts process, and resolve the described startup command that receives;
The described first kind starts process according to the described startup command after resolving, and obtains the dynamic library file of described application program to be started, and loads described dynamic library file, and wherein, described dynamic library file comprises the initialize routine of described application program;
The described first kind starts process replication and creates a new Equations of The Second Kind startup process, and the described Equations of The Second Kind startup process that will create is recorded in the default Equations of The Second Kind startup process collection, wherein, the described Equations of The Second Kind that creates starts process as described the second process, described Equations of The Second Kind starts the process number of record Equations of The Second Kind startup process in the process collection and the filename that Equations of The Second Kind starts the application program of process initiation, and described filename comprises the path of described application program in cell phone system;
Described first kind startup process is carried out the described initialize routine of described dynamic library file, is finished, and the priority of recovering described first kind startup process is normal priority;
Described application program launching device creates with normal priority and starts a new first kind and starts process, and will create new described first kind startup process and be recorded in the described first kind startup process collection.
4. method according to claim 3 is characterized in that, described application program launching device judges that whether described application program once started, and comprising after start:
Filename according to described application program to be started, the inquiry Equations of The Second Kind start the filename that whether exists in the process collection with described application program corresponding Equations of The Second Kind start process, if exist, represent that then described application program once started after start, otherwise, represent that described application program starts first after start.
5. method according to claim 4 is characterized in that, the described application program of described the second process initiation of described application program launching Array selection comprises:
Described application program launching device starts at described Equations of The Second Kind selects the Equations of The Second Kind corresponding with the filename of described application program to start process as described the second process in the process collection;
Described application program launching device sends the startup command that starts described application program to the described Equations of The Second Kind startup process of selecting, and indicates described Equations of The Second Kind to start the described application program of process initiation.
6. method according to claim 5 is characterized in that, described Equations of The Second Kind starts the described application program of process initiation and comprises:
After described Equations of The Second Kind startup process receives described startup command, improve the priority that described Equations of The Second Kind starts process;
Described Equations of The Second Kind starts process replication and creates a new Equations of The Second Kind startup process, and the described new Equations of The Second Kind startup process that will create is recorded in the default Equations of The Second Kind startup process collection, wherein, described Equations of The Second Kind starts the process number of record Equations of The Second Kind startup process in the process collection and the filename that Equations of The Second Kind starts the application program of process initiation, and described filename comprises the path of described application program in cell phone system;
Described Equations of The Second Kind startup process is carried out the initialize routine that described Equations of The Second Kind starts the dynamic library file of process, is finished, and the priority of recovering described Equations of The Second Kind startup process is normal priority.
7. method according to claim 6 is characterized in that, the application program launching device started process or described Equations of The Second Kind startup process transmission startup command to the described first kind after, described method also comprised:
Described application program launching device reduces the priority of described application program launching device place process.
8. method according to claim 7 is characterized in that, after the first kind started the described application program of process initiation or the described application program of Equations of The Second Kind startup process initiation, described method also comprised:
Described application program launching device recovers the priority of described application program launching device place process.
9. each described method in 8 according to claim 3 is characterized in that,
The first kind startup process that described first kind startup process collection comprises is the process with following attribute: finished the execution of the public operation of all application programs, go forward side by side in the incoming event major cycle, in the medium startup command of waiting to receive the described application program of startup of described application program launching device of described event major cycle, after receiving described startup command, the initialize routine that only needs to load the dynamic library file of described application program to be started and carry out described dynamic library file;
The Equations of The Second Kind startup process that described Equations of The Second Kind startup process collection comprises is the process with following attribute:
Finished the execution of the public operation of all described application programs, loaded the dynamic library file of described application program to be started, go forward side by side in the incoming event major cycle, in the medium startup command of waiting to receive the described application program of startup of described application program launching device of described event major cycle, after receiving described startup command, only need to carry out the initialize routine of described dynamic library file;
Wherein, described public operation comprises: load shared library that all described application programs operations all need, initialization graphics subsystem, initialization time processing subsystem and initialization use communication subsystem.
10. an application program launching device is used for adopting the portable terminal of dynamic link mode to start application program, it is characterized in that described device comprises:
Receiver module is used for receiving the startup request of described application program to be started;
Arbitration modules is used for determining whether described application program started after start;
Second selects module, is used for the second process that selective basis starts the first process replication of described application program;
Second starts module, is used for the described application program of the second process initiation according to the first process replication that starts described application program;
Wherein, described the first process is the last process that starts described application program, has loaded the dynamic library file of described application program in described the second process.
11. application program launching device according to claim 10 is characterized in that, described application program launching device also comprises:
First selects module, be used for starting first after the start in the situation of described application program determining, start any one first kind startup process of selection in the process collection in the default first kind, wherein, the described first kind of selection starts process as described the first process;
First starts module, is used for sending the startup command that starts described application program to described first kind startup process, indicates the described first kind to start the described application program of process initiation.
12. application program launching device according to claim 11 is characterized in that, described application program launching device also comprises:
Priority arranges module, for reducing or recover the priority of described application program launching device place process.
CN200910174322.7A 2009-09-07 2009-09-07 Method and device for starting application program Expired - Fee Related CN101639787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910174322.7A CN101639787B (en) 2009-09-07 2009-09-07 Method and device for starting application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910174322.7A CN101639787B (en) 2009-09-07 2009-09-07 Method and device for starting application program

Publications (2)

Publication Number Publication Date
CN101639787A CN101639787A (en) 2010-02-03
CN101639787B true CN101639787B (en) 2013-02-27

Family

ID=41614780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910174322.7A Expired - Fee Related CN101639787B (en) 2009-09-07 2009-09-07 Method and device for starting application program

Country Status (1)

Country Link
CN (1) CN101639787B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888619A (en) * 2014-04-16 2014-06-25 青岛海信电子设备股份有限公司 Message processing method and system thereof

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789999B (en) * 2010-02-09 2014-04-30 中兴通讯股份有限公司 Method and device for scene management and backup restoration of mobile terminal
CN101882092B (en) * 2010-05-11 2013-06-05 中兴通讯股份有限公司 Management method and device for application program
CN102495737B (en) * 2011-10-18 2014-05-07 青岛海信移动通信技术股份有限公司 Method and device for manufacturing user terminal partition as well as user terminal
EP2746936A4 (en) 2011-10-24 2015-03-11 Huawei Tech Co Ltd Method and system for starting application in linux container
CN102591770B (en) * 2011-12-27 2016-06-29 北京奇虎科技有限公司 A kind of intended application starts time detecting method and apparatus
CN103853575B (en) * 2012-12-06 2017-08-22 腾讯科技(深圳)有限公司 The collocation method and device of intelligent terminal application program management
CN104077151B (en) * 2013-03-26 2017-11-24 联想(北京)有限公司 The method and electronic equipment of fast start network application
CN104572137B (en) * 2013-10-10 2019-09-27 南京中兴软件有限责任公司 A kind of implementation method and device of NM client Acceleration of starting
CN104735030B (en) * 2013-12-23 2019-04-16 广州华多网络科技有限公司 Using open method, device and system
CN103927207B (en) * 2014-04-10 2017-07-25 安一恒通(北京)科技有限公司 software acceleration method and device
CN105389174A (en) * 2014-09-04 2016-03-09 Tcl集团股份有限公司 Application program acceleration starting method and system based on mobile operating system
CN105488386B (en) * 2014-10-13 2020-05-05 腾讯科技(深圳)有限公司 Protection method of iOS terminal and terminal
CN107193577B (en) 2016-03-15 2021-08-03 斑马智行网络(香港)有限公司 Application starting method and device and intelligent terminal
CN105893087A (en) * 2016-03-30 2016-08-24 珠海市魅族科技有限公司 Application program starting method and device
CN108958824A (en) * 2017-05-18 2018-12-07 龙芯中科技术有限公司 Starting method, apparatus, electronic equipment and the storage medium of application program
CN109144596B (en) * 2017-06-16 2020-09-18 腾讯科技(深圳)有限公司 Quick starting method, device, terminal, server and system
CN110007981B (en) * 2019-02-28 2021-12-24 Oppo广东移动通信有限公司 Method and device for starting application program, electronic equipment and medium
CN110162345B (en) * 2019-05-05 2022-02-18 网宿科技股份有限公司 Application program access method and device and storage medium
CN110750284B (en) * 2019-10-15 2023-03-28 Oppo(重庆)智能科技有限公司 Application quick starting method, terminal and computer readable storage medium
CN110990075B (en) * 2019-11-18 2023-08-29 北京小米移动软件有限公司 Method, device, equipment and storage medium for starting fast application
CN112825538B (en) * 2019-11-20 2022-04-12 Oppo(重庆)智能科技有限公司 Application starting method and device, terminal equipment and storage medium
CN111142955B (en) * 2019-12-31 2021-07-16 联想(北京)有限公司 Information processing method and device
CN117632074A (en) * 2022-08-16 2024-03-01 华为技术有限公司 Audio data processing method, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801831A (en) * 2004-12-30 2006-07-12 上海贝豪通讯电子有限公司 Method for increasing handset starting response speed
CN101222709A (en) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 Fast starting method of mobile phone application program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801831A (en) * 2004-12-30 2006-07-12 上海贝豪通讯电子有限公司 Method for increasing handset starting response speed
CN101222709A (en) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 Fast starting method of mobile phone application program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888619A (en) * 2014-04-16 2014-06-25 青岛海信电子设备股份有限公司 Message processing method and system thereof
CN103888619B (en) * 2014-04-16 2016-03-23 青岛海信电子设备股份有限公司 A kind of message treatment method and system thereof

Also Published As

Publication number Publication date
CN101639787A (en) 2010-02-03

Similar Documents

Publication Publication Date Title
CN101639787B (en) Method and device for starting application program
CN101222709B (en) Fast starting method of mobile phone application program
US7484220B2 (en) Method, software and apparatus for using application state history information when re-launching applications
KR101255382B1 (en) Operating-system-friendly bootloader
CN100481009C (en) System, device and method for transitioning to a virtual machine monitor based upon the privilege level of guest software
US20140208328A1 (en) Method for terminal acceleration, terminal and storage medium
CN102027453B (en) System and method for optimizing interrupt processing in virtualized environments
CN108121594B (en) Process management method and device
CN102981906A (en) Application program background process management method and device
CN102567136A (en) Backup and recovery method of computer system, device and computer system
EP1227397A2 (en) SIM manager API
JP2010272076A (en) Multiprocessor system
CN101924820A (en) A kind of method for downloading software, system and portable terminal
CN101826034A (en) Language switching method and device in Linux system
CN101169737A (en) Task switching control method and computer system
CN104714839A (en) Method and device for controlling life cycle of processes
CN101799772A (en) Kernel dispatching method, kernel backup method and multi-core processor
CN106155842B (en) A kind of data migration method and device
CN110399168A (en) Majority according to disk storage server system start method, device and equipment
CN102122249B (en) Java application program starting method and Java application program starting device
KR101118111B1 (en) Mobile communication terminal and booting method thereof
CN114327660A (en) External memory initialization method based on FPGA
CN109189562B (en) Method and device for controlling process operation
KR101518111B1 (en) Anti-malware system and data processing method thereof
CN106997294A (en) Odex document generating methods and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20170906

Address after: Fugou County town of Zhoukou Bian gang of 461321 cities in Henan Province in the west of the village in the village administrative camp

Patentee after: Zhu Ruihong

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Patentee before: ZTE Corporation

TR01 Transfer of patent right
CB03 Change of inventor or designer information

Inventor after: Zhu Ruihong

Inventor before: He Bin

Inventor before: Gu Youpeng

CB03 Change of inventor or designer information
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130227

Termination date: 20190907

CF01 Termination of patent right due to non-payment of annual fee