CN103955388B - The cold start-up method and device of client - Google Patents

The cold start-up method and device of client Download PDF

Info

Publication number
CN103955388B
CN103955388B CN201410177921.5A CN201410177921A CN103955388B CN 103955388 B CN103955388 B CN 103955388B CN 201410177921 A CN201410177921 A CN 201410177921A CN 103955388 B CN103955388 B CN 103955388B
Authority
CN
China
Prior art keywords
client
threads
frameworks
executable file
page
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.)
Active
Application number
CN201410177921.5A
Other languages
Chinese (zh)
Other versions
CN103955388A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410177921.5A priority Critical patent/CN103955388B/en
Publication of CN103955388A publication Critical patent/CN103955388A/en
Application granted granted Critical
Publication of CN103955388B publication Critical patent/CN103955388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of cold start-up method and device of client.The embodiment of the present invention is after the startup order for starting the client in terminal is received, by using UI threads, show the UI frameworks of the client, and then utilize I/O threads, the first executable file with the startup page correlation function of the client in the UI frameworks is read from the storage device of the terminal, make it possible to utilize the UI threads, run first executable file, because the Cold Start of client dependent on single thread is simply no longer that UI threads are operated, but be that UI threads and I/O thread parallels are operated using multithreading, make it possible to avoid in the prior art due to the executable file required for cold start-up it is more caused by utilize UI threads, the problem of executable file being successively read required for cold start-up and the longer time run, so as to improve the cold start speed of client.

Description

The cold start-up method and device of client
【Technical field】
The present invention relates to the cold start-up method and device of the start-up technique of client, more particularly to a kind of client.
【Background technology】
With the development of the communication technology, terminal has been increasingly becoming the essential communications and entertainment instrument of consumer.In order to Various application programs can be installed by meeting in consumer demand, terminal, such as browser.These application program institutes Corresponding client, it is when running for the first time after starting up of terminal, to utilize user interface (User to carry out cold start-up Interface, UI) thread, the executable file required for cold start-up is successively read, and run.
However, because the executable file required for cold start-up is more so that utilize UI threads, be successively read cold start-up institute The executable file that the needs and time run is longer.So, the cold start speed that result in client is slower.
【The content of the invention】
The many aspects of the present invention provide a kind of cold start-up method and device of client, are opened to improve the cold of client Dynamic speed.
An aspect of of the present present invention there is provided a kind of cold start-up method of client, including:
Receive the startup order for starting the client in terminal;
Using UI threads, show the UI frameworks of the client;
Using I/O threads, the startup with the client in the UI frameworks is read from the storage device of the terminal First executable file of page correlation function;
Using the UI threads, first executable file is run.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the utilization UI After thread, the UI frameworks for showing the client, in addition to:
Start the message loop of the UI threads.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the client Homepage, the new labels page of the client or client last time of the startup page including client when being closed The page being not turned off.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the utilization I/O Thread, reads the with the startup page correlation function of the client in the UI frameworks from the storage device of the terminal After one executable file, in addition to:
Using the UI threads, the startup from the storage device reading UI frameworks of the terminal with the client Second executable file of the unrelated function of the page;
Using the UI threads, second executable file is run.
Another aspect of the present invention there is provided a kind of cold-starting device of client, including:
Receiving unit, starts the startup order of the client in terminal for receiving;
Frame unit, for utilizing UI threads, shows the UI frameworks of the client;
Reading unit, for utilize I/O threads, read from the storage device of the terminal in the UI frameworks with it is described First executable file of the startup page correlation function of client;
Running unit, for utilizing the UI threads, runs first executable file.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the framework list Member, is additionally operable to
Start the message loop of the UI threads.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the client Homepage, the new labels page of the client or client last time of the startup page including client when being closed The page being not turned off.
Aspect as described above and any possible implementation, it is further provided a kind of implementation,
The reading unit, is additionally operable to
Using the UI threads, the startup from the storage device reading UI frameworks of the terminal with the client Second executable file of the unrelated function of the page;
The running unit, is additionally operable to
Using the UI threads, second executable file is run.
As shown from the above technical solution, the embodiment of the present invention receive start terminal on client startup order it Afterwards, by using UI threads, show the UI frameworks of the client, and then utilize I/O threads, from the storage device of the terminal Middle the first executable file read in the UI frameworks with the startup page correlation function of the client, enabling utilize The UI threads, run first executable file, because the Cold Start of client no longer simply depends on single thread That is UI threads are operated, but are that UI threads and I/O thread parallels are operated using multithreading, enabling avoided existing In technology due to the executable file required for cold start-up it is more caused by utilize UI threads, be successively read required for cold start-up Executable file and run time it is longer the problem of, so as to improve the cold start speed of client.
In addition, the technical scheme provided using the present invention, because the Cold Start of client is no longer simply dependent on single Thread is that UI threads are operated, but is that UI threads and I/O thread parallels are operated using multithreading so that client Cold start speed increases, therefore, it is possible to effectively improve the utilization rate of terminal.
In addition, the technical scheme provided using the present invention, because the Cold Start of client is no longer simply dependent on single Thread is that UI threads are operated, and stuck phenomenon occurs therefore, it is possible to be prevented effectively from the Cold Start of client.
In addition, the technical scheme provided using the present invention, because the Cold Start of client is no longer simply dependent on single Thread is that UI threads are operated, but is that UI threads and I/O thread parallels are operated using multithreading, therefore, it is possible to have Effect improves the resource utilization of terminal.
In addition, the technical scheme provided using the present invention, after showing completion in the UI frameworks of client, starts institute State the message loop of UI threads so that user's operation can be responded without waiting for the longer time, therefore, it is possible to effectively improve visitor The operating efficiency at family end.
【Brief description of the drawings】
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are some realities of the present invention Example is applied, for those of ordinary skill in the art, without having to pay creative labor, can also be attached according to these Figure obtains other accompanying drawings.
The schematic flow sheet of the cold start-up method for the client that Fig. 1 provides for one embodiment of the invention;
The structural representation of the cold-starting device for the client that Fig. 2 provides for another embodiment of the present invention.
【Embodiment】
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The whole other embodiments obtained under the premise of creative work is not made, belong to the scope of protection of the invention.
It is understood that the page involved in the present invention, can be based on HTML (HyperText Markup Language, HTML) webpage (Web Page) write, it is referred to as Web page.
It should be noted that terminal involved in the embodiment of the present invention can include but is not limited to mobile phone, individual digital Assistant (Personal Digital Assistant, PDA), wireless handheld device, wireless networking sheet, PC, portable electricity Brain, PC (Personal Computer, PC), MP3 player, MP4 players etc..
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, represents there may be Three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, these three situations of individualism B.Separately Outside, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
The schematic flow sheet of the cold start-up method for the client that Fig. 1 provides for one embodiment of the invention, as shown in Figure 1.
101st, the startup order for starting the client in terminal is received.
102nd, using UI threads, the UI frameworks of the client are showed.
Specifically, UI threads, can also be referred to as main thread, all features that should have with a thread, for example, having One thread function and thread identification (ID) etc..Wherein, a kind of special pair can be created in the thread function of UI threads As being forms object, meanwhile, also it is responsible for creating the various controls on forms object in the lump, these forms objects and control are just constituted The UI frameworks of client.
103rd, using input/output (Input/Output, I/O) thread, institute is read from the storage device of the terminal State the first executable file with the startup page correlation function of the client in UI frameworks.
Wherein, the storage device of the terminal can be the hard disk of computer, or can also be the internal memory of mobile phone, this implementation Example is to this without limiting.
Specifically, an I/O thread can be started in addition, using the I/O threads, read from the storage device of the terminal Take the first executable file with the startup page correlation function of the client in the UI frameworks.
Alternatively, in a possible implementation of the present embodiment, the startup page of the client can include But being not limited to the homepage of the client, the new labels page of the client or the client last time is not turned off when being closed The page, the present embodiment is to this without being particularly limited to.
Wherein, the page, can be compiled based on HTML (HyperText Markup Language, HTML) The webpage (Web Page) write, is referred to as Web page.Web page can include One display block of HTML (HyperText Markup Language, HTML) label composition, the referred to as page Element, for example, word, label, hyperlink, button, input frame, combobox etc..
Alternatively, in a possible implementation of the present embodiment, work(related to the startup page of the client Can, can be UI frameworks main logic, for example, the page furbishing function of UI frameworks, UI frameworks the page stop function and Address field display function of UI frameworks etc., the present embodiment is to this without being particularly limited to.
104th, using the UI threads, first executable file is run.
It should be noted that 101~104 executive agent can be starter, in the client that can be located locally, To carry out the offline startup or online startup of client.
It is understood that the client can be mounted in the application program in terminal, for example, browser etc., only Will can realize user business demand objective reality form can, the present embodiment is to this without being particularly limited to.
So, after the startup order for starting the client in terminal is received, by using UI threads, the visitor is showed The UI frameworks at family end, so utilize I/O threads, read from the storage device of the terminal in the UI frameworks with the client First executable file of the startup page correlation function at end, enabling utilize the UI threads, operation described first can be held Compose a piece of writing part, because the Cold Start of client dependent on single thread is simply no longer that UI threads are operated, but utilization is more Thread is that UI threads and I/O thread parallels are operated, enabling avoid in the prior art due to required for cold start-up can Perform file it is more caused by utilize UI threads, the executable file being successively read required for cold start-up and time for running compared with Long the problem of, so as to improve the cold start speed of client.
Alternatively, in a possible implementation of the present embodiment, in 102, starter can specifically be utilized UI threads, read in the UI frameworks from the storage device of the terminal and to show operation correlation function with the UI frameworks Executable file, then, using the UI threads, run in the UI frameworks read to the framework to show operation related The executable file of function.Wherein, with the basic logic for showing operation correlation function, being UI frameworks of the UI frameworks, For example, configuration information of the size of the UI frameworks, position, and UI elements etc., the present embodiment is to this without being particularly limited to.
Alternatively, in a possible implementation of the present embodiment, after 102, starter can also enter one Step starts the message loop of the UI threads, is operated with responding the user for being currently able to support.For example, the minimum behaviour of UI frameworks User's operation such as position of work, the maximum operation of UI frameworks and mobile UI frameworks.
Specifically, a piece of news can be taken out from the message queue corresponding to UI threads every time, then according to message institute Comprising information, forward it to specific forms object, the forms procedure function corresponding to this forms object be called, with locate Manage these message.The related content that may refer to the message loop of UI threads in the prior art is described in detail, here is omitted.
So, after due to showing completion in the UI frameworks of client, the message loop of the UI threads is started so that nothing User's operation can be responded by needing to wait for the longer time, therefore, it is possible to effectively improve the operating efficiency of client.
Alternatively, in a possible implementation of the present embodiment, starter is finished after 103, starts Performing 104 method has a lot.For example, I/O threads send notification event to UI threads, to notify executable file to read Finish, UI threads are received after notification event, that is, start to perform corresponding operating, that is, run first executable file;Or, For another example I/O threads set overall identification, finished to represent that executable file is read, UI threads detect the overall identification, Start to perform corresponding operating, that is, run first executable file, the present embodiment is to this without being particularly limited to.
So far, it is believed that the Cold Start of client is basically completed, user can utilize the client of terminal operating The operation with the startup page correlation function of the client is performed, for example, the startup page is browsed, or, for another example starting page Clickable hyperlinks etc. in face.
Alternatively, in a possible implementation of the present embodiment, after 103, starter can also enter one Step utilizes the UI threads, from the storage device of the terminal read the UI frameworks in the startup page of the client without The second executable file of function is closed, and then, the UI threads are recycled, second executable file is run.
Specifically, function unrelated with the startup page of the client, can be the secondary logic of UI frameworks, for example, UI Some additional functions of framework etc., the present embodiment is to this without being particularly limited to.
In the present embodiment, after the startup order for starting the client in terminal is received, by using UI threads, show The UI frameworks of the client, so utilize I/O threads, read from the storage device of the terminal in the UI frameworks with institute State the first executable file of the startup page correlation function of client, enabling utilize the UI threads, run described the One executable file, because the Cold Start of client dependent on single thread is simply no longer that UI threads are operated, but It is that UI threads and I/O thread parallels are operated using multithreading, enabling avoid in the prior art due to needed for cold start-up UI threads are utilized caused by the executable file wanted is more, the executable file that is successively read required for cold start-up is simultaneously run The problem of time is longer, so as to improve the cold start speed of client.
In addition, the technical scheme provided using the present invention, because the Cold Start of client is no longer simply dependent on single Thread is that UI threads are operated, but is that UI threads and I/O thread parallels are operated using multithreading so that client Cold start speed increases, therefore, it is possible to effectively improve the utilization rate of terminal.
In addition, the technical scheme provided using the present invention, because the Cold Start of client is no longer simply dependent on single Thread is that UI threads are operated, and stuck phenomenon occurs therefore, it is possible to be prevented effectively from the Cold Start of client.
In addition, the technical scheme provided using the present invention, because the Cold Start of client is no longer simply dependent on single Thread is that UI threads are operated, but is that UI threads and I/O thread parallels are operated using multithreading, therefore, it is possible to have Effect improves the resource utilization of terminal.
In addition, the technical scheme provided using the present invention, after showing completion in the UI frameworks of client, starts institute State the message loop of UI threads so that user's operation can be responded without waiting for the longer time, therefore, it is possible to effectively improve visitor The operating efficiency at family end.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
The structural representation of the cold-starting device for the client that Fig. 2 provides for another embodiment of the present invention, as shown in Figure 2. It is single that the cold-starting device of the client of the present embodiment can include receiving unit 21, frame unit 22, reading unit 23 and operation Member 24.Wherein,
Receiving unit 21, starts the startup order of the client in terminal for receiving.
Frame unit 22, for utilizing UI threads, shows the UI frameworks of the client.
Specifically, UI threads, can also be referred to as main thread, all features that should have with a thread, for example, having One thread function and thread identification (ID) etc..Wherein, a kind of special pair can be created in the thread function of UI threads As being forms object, meanwhile, also it is responsible for creating the various controls on forms object in the lump, these forms objects and control are just constituted The UI frameworks of client.
Reading unit 23, for utilize I/O threads, read from the storage device of the terminal in the UI frameworks with institute State the first executable file of the startup page correlation function of client.
Wherein, the storage device of the terminal can be the hard disk of computer, or can also be the internal memory of mobile phone, this implementation Example is to this without limiting.
Specifically, the reading unit 23 can start an I/O thread in addition, using the I/O threads, from the terminal Storage device in read in the UI frameworks with the client startup page correlation function the first executable file.
Alternatively, in a possible implementation of the present embodiment, the startup page of the client can include But being not limited to the homepage of the client, the new labels page of the client or the client last time is not turned off when being closed The page, the present embodiment is to this without being particularly limited to.
Wherein, the page, can be compiled based on HTML (HyperText Markup Language, HTML) The webpage (Web Page) write, is referred to as Web page.Web page can include One display block of HTML (HyperText Markup Language, HTML) label composition, the referred to as page Element, for example, word, label, hyperlink, button, input frame, combobox etc..
Alternatively, in a possible implementation of the present embodiment, work(related to the startup page of the client Can, can be UI frameworks main logic, for example, the page furbishing function of UI frameworks, UI frameworks the page stop function and Address field display function of UI frameworks etc., the present embodiment is to this without being particularly limited to.
Running unit 24, for utilizing the UI threads, runs first executable file.
It should be noted that the cold-starting device for the client that the present embodiment is provided, the client that can be located locally In, to carry out the offline startup or online startup of client.
It is understood that the client can be mounted in the application program in terminal, for example, browser etc., only Will can realize user business demand objective reality form can, the present embodiment is to this without being particularly limited to.
So, after receiving unit receives the startup order for starting the client in terminal, utilized by frame unit UI threads, show the UI frameworks of the client, and then utilize I/O threads by reading unit, from the storage device of the terminal Middle the first executable file read in the UI frameworks with the startup page correlation function of the client so that running unit The UI threads can be utilized, first executable file is run, because the Cold Start of client is no longer simply relied on It is that UI threads are operated in single thread, but is that UI threads and I/O thread parallels are operated using multithreading, enabling Avoid in the prior art due to the executable file required for cold start-up it is more caused by utilize UI threads, be successively read cold open The problem of time moved required executable file and run is longer, so as to improve the cold start speed of client.
Alternatively, in a possible implementation of the present embodiment, the frame unit 22 can specifically utilize UI Thread, read from the storage device of the terminal in the UI frameworks with the UI frameworks show operation correlation function can File is performed, then, using the UI threads, runs in the UI frameworks read and to show the related work(of operation to the framework The executable file of energy.Wherein, with the basic logic for showing operation correlation function, being UI frameworks of the UI frameworks, example Such as, configuration information of the size of the UI frameworks, position, and UI elements etc., the present embodiment is to this without being particularly limited to.
Alternatively, in a possible implementation of the present embodiment, the frame unit 22 can also be used further In the message loop for starting the UI threads, operated with responding the user for being currently able to support.For example, the minimum behaviour of UI frameworks User's operation such as position of work, the maximum operation of UI frameworks and mobile UI frameworks.
Specifically, a piece of news is taken out from the message queue corresponding to UI threads every time, is then included according to message Information, forward it to specific forms object, the forms procedure function corresponding to this forms object be called, to handle this A little message.The related content that may refer to the message loop of UI threads in the prior art is described in detail, here is omitted.
So, because the frame unit 22 is after the UI frameworks of client show completion, the UI threads are started Message loop so that user's operation can be responded without waiting for the longer time, therefore, it is possible to effectively improve the operation of client Efficiency.
Alternatively, in a possible implementation of the present embodiment, reading unit 23 is finished respective operations, fortune The method that row unit 24 starts to perform respective operations has a lot.For example, I/O threads send notification event to UI threads, to notify Executable file is read and finished, and UI threads are received after notification event, that is, is started to perform corresponding operating, that is, run described first Executable file;Or, for another example I/O threads set overall identification, finished to represent that executable file is read, UI threads The overall identification is detected, that is, starts to perform corresponding operating, that is, runs first executable file, the present embodiment does not enter to this Row is particularly limited to.
So far, it is believed that the Cold Start of client is basically completed, user can utilize the client of terminal operating The operation with the startup page correlation function of the client is performed, for example, the startup page is browsed, or, for another example starting page Clickable hyperlinks etc. in face.
Alternatively, in a possible implementation of the present embodiment, the reading unit 23 can also be used further In utilizing the UI threads, from the storage device of the terminal read the UI frameworks in the startup page of the client without Close the second executable file of function;Correspondingly, the running unit 24, then can be used for utilizing the UI threads, run institute State the second executable file.
Specifically, function unrelated with the startup page of the client, can be the secondary logic of UI frameworks, for example, UI Some additional functions of framework etc., the present embodiment is to this without being particularly limited to.
In the present embodiment, received in receiving unit after the startup order for starting the client in terminal, pass through framework list Member utilizes UI threads, shows the UI frameworks of the client, and then utilizes I/O threads by reading unit, from depositing for the terminal The first executable file with the startup page correlation function of the client in the UI frameworks is read in storage equipment so that fortune Row unit can utilize the UI threads, run first executable file, due to client Cold Start no longer only It is to rely on the i.e. UI threads of single thread to be operated, but is that UI threads and I/O thread parallels are operated using multithreading, makes Can avoid in the prior art due to the executable file required for cold start-up it is more caused by utilize UI threads, read successively The problem of time for taking the executable file required for cold start-up and running is longer, so as to improve the cold start-up speed of client Degree.
In addition, the technical scheme provided using the present invention, because the Cold Start of client is no longer simply dependent on single Thread is that UI threads are operated, but is that UI threads and I/O thread parallels are operated using multithreading so that client Cold start speed increases, therefore, it is possible to effectively improve the utilization rate of terminal.
In addition, the technical scheme provided using the present invention, because the Cold Start of client is no longer simply dependent on single Thread is that UI threads are operated, and stuck phenomenon occurs therefore, it is possible to be prevented effectively from the Cold Start of client.
In addition, the technical scheme provided using the present invention, because the Cold Start of client is no longer simply dependent on single Thread is that UI threads are operated, but is that UI threads and I/O thread parallels are operated using multithreading, therefore, it is possible to have Effect improves the resource utilization of terminal.
In addition, the technical scheme provided using the present invention, after showing completion in the UI frameworks of client, starts institute State the message loop of UI threads so that user's operation can be responded without waiting for the longer time, therefore, it is possible to effectively improve visitor The operating efficiency at family end.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, such as multiple units or component Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces Close or communicate to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are to cause a computer Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention each The part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various Can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (6)

1. a kind of cold start-up method of client, it is characterised in that including:
Receive the startup order for starting the client in terminal;
Using UI threads, show the UI frameworks of the client;
Using I/O threads, the startup page with the client in the UI frameworks is read from the storage device of the terminal First executable file of correlation function;
Using the UI threads, first executable file is run;
After the utilization UI threads, the UI frameworks for showing the client, in addition to:
Start the message loop of the UI threads.
2. according to the method described in claim 1, it is characterised in that the page that starts of the client includes the client The page that homepage, the new labels page of the client or the client last time are not turned off when being closed.
3. the method according to claim 1~2 any claim, it is characterised in that the utilization I/O threads, from institute Read in the storage device for stating terminal in the UI frameworks with the client startup page correlation function first can perform After file, in addition to:
Using the UI threads, the startup page from the storage device reading UI frameworks of the terminal with the client Second executable file of unrelated function;
Using the UI threads, second executable file is run.
4. a kind of cold-starting device of client, it is characterised in that including:
Receiving unit, starts the startup order of the client in terminal for receiving;
Frame unit, for utilizing UI threads, shows the UI frameworks of the client;
Reading unit, for utilize I/O threads, read from the storage device of the terminal in the UI frameworks with the client First executable file of the startup page correlation function at end;
Running unit, for utilizing the UI threads, runs first executable file;
The frame unit, is additionally operable to
Start the message loop of the UI threads.
5. device according to claim 4, it is characterised in that the page that starts of the client includes the client The page that homepage, the new labels page of the client or the client last time are not turned off when being closed.
6. the device according to claim 4~5 any claim, it is characterised in that
The reading unit, is additionally operable to
Using the UI threads, the startup page from the storage device reading UI frameworks of the terminal with the client Second executable file of unrelated function;
The running unit, is additionally operable to
Using the UI threads, second executable file is run.
CN201410177921.5A 2014-04-29 2014-04-29 The cold start-up method and device of client Active CN103955388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410177921.5A CN103955388B (en) 2014-04-29 2014-04-29 The cold start-up method and device of client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410177921.5A CN103955388B (en) 2014-04-29 2014-04-29 The cold start-up method and device of client

Publications (2)

Publication Number Publication Date
CN103955388A CN103955388A (en) 2014-07-30
CN103955388B true CN103955388B (en) 2017-09-12

Family

ID=51332664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410177921.5A Active CN103955388B (en) 2014-04-29 2014-04-29 The cold start-up method and device of client

Country Status (1)

Country Link
CN (1) CN103955388B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445617B (en) * 2016-10-13 2020-08-04 武汉斗鱼网络科技有限公司 Android-based application cold start optimization method and system
CN112612543A (en) * 2020-12-22 2021-04-06 努比亚技术有限公司 Application cold start method, mobile terminal and computer storage medium
CN115145647A (en) * 2021-03-30 2022-10-04 华为技术有限公司 Component loading method of application program and related device
CN112988281B (en) * 2021-04-25 2021-08-03 浙江口碑网络技术有限公司 Application starting method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6393605B1 (en) * 1998-11-18 2002-05-21 Siebel Systems, Inc. Apparatus and system for efficient delivery and deployment of an application
CN102027454A (en) * 2008-05-13 2011-04-20 谷歌公司 Multi-process browser architecture
CN103345405A (en) * 2013-06-09 2013-10-09 贝壳网际(北京)安全技术有限公司 Application program starting method and device and client
CN103412949A (en) * 2013-08-28 2013-11-27 贝壳网际(北京)安全技术有限公司 Updating method and device of browser navigation page and client
CN103699403A (en) * 2013-12-03 2014-04-02 青岛海尔软件有限公司 Display method of installed applications for Android platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6393605B1 (en) * 1998-11-18 2002-05-21 Siebel Systems, Inc. Apparatus and system for efficient delivery and deployment of an application
CN102027454A (en) * 2008-05-13 2011-04-20 谷歌公司 Multi-process browser architecture
CN103345405A (en) * 2013-06-09 2013-10-09 贝壳网际(北京)安全技术有限公司 Application program starting method and device and client
CN103412949A (en) * 2013-08-28 2013-11-27 贝壳网际(北京)安全技术有限公司 Updating method and device of browser navigation page and client
CN103699403A (en) * 2013-12-03 2014-04-02 青岛海尔软件有限公司 Display method of installed applications for Android platform

Also Published As

Publication number Publication date
CN103955388A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN103718161B (en) WEB application architectural framework
CN110890970B (en) Method and device for creating group, storage medium and electronic equipment
CN101122921B (en) Method forming tree-shaped display structure based on ajax and html
CN103853761A (en) Method and device for displaying and adding comments of webpage content
CN103955388B (en) The cold start-up method and device of client
US11327984B2 (en) Computerized systems and methods for query expansion using displayed objects
CN110807650A (en) New financial product user invitation method and system
CN106897155A (en) A kind of method for showing interface and device
CN103377212B (en) The method of a kind of Voice command browser action, system and browser
WO2014154033A1 (en) Method and apparatus for extracting web page content
CN112631910A (en) Front-end testing method and device, computer equipment and storage medium
CN108847229A (en) A kind of information interacting method and terminal based on voice assistant
CN108874915A (en) Method of Knowledge Organization, system, electronic equipment and storage medium
CN104216646A (en) Method and device for creating application program based on gesture
CN110806822B (en) Electronic book interaction method, computing device and computer storage medium
CN111178937B (en) User rewarding method and device for application, electronic equipment and readable storage medium
CN106657653A (en) Information processing method and device
CN104714713B (en) A kind of page interactive approach and page management device
CN112286485B (en) Method and device for controlling application through voice, electronic equipment and storage medium
CN103677488A (en) Artificial intelligence user interface
CN107193562A (en) A kind of image processing method and device
CN102779076B (en) The method and apparatus of interprocess communication in a kind of browser
KR101349700B1 (en) Method for messaging service, storage medium recording program and device therefor
CN106326476B (en) Information processing method and device
CN112199135A (en) Information guiding method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant