CN106844033A - One kind application quick start method and terminal - Google Patents

One kind application quick start method and terminal Download PDF

Info

Publication number
CN106844033A
CN106844033A CN201710059130.6A CN201710059130A CN106844033A CN 106844033 A CN106844033 A CN 106844033A CN 201710059130 A CN201710059130 A CN 201710059130A CN 106844033 A CN106844033 A CN 106844033A
Authority
CN
China
Prior art keywords
application
resource
idling
pool
starting
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.)
Granted
Application number
CN201710059130.6A
Other languages
Chinese (zh)
Other versions
CN106844033B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710059130.6A priority Critical patent/CN106844033B/en
Publication of CN106844033A publication Critical patent/CN106844033A/en
Application granted granted Critical
Publication of CN106844033B publication Critical patent/CN106844033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses one kind application quick start method and terminal, the method includes:Process pool is pre-build, the process pool includes host process and some idling-resource processes;When getting using order is started, the idling-resource course allocation transferred in process pool starts the corresponding application of order to application, to start the application.The present invention by setting up the process pool including some idling-resource processes when terminal system starts in advance, it is directly using the idling-resource process in distribution process pool when application starts, the time of newly-built process during using cold start-up is saved, is greatly accelerated using the speed for starting.

Description

One kind application quick start method and terminal
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of application quick start method and terminal.
Background technology
With the popularity rate more and more higher of smart mobile phone, daily life is also more and more tightr combined with mobile phone. The embedded device very high for this kind of personal use frequency of mobile phone, people are also more next to the requirement of real-time that its system is responded It is higher.On the other hand, as a kind of popular consumer goods, it does not have specific usage scenario, so high without image of Buddha requirement of real-time Other industrial equipments equally optimized for special scenes.Optimization currently for handset capability is one of mobile phone industry Pain spot and difficult point, are also Ge Jia manufacturers all problem demanding prompt solutions.
The Starting mode of current Android applications can be divided into two kinds:Cold start-up and thermal starting;Cold start-up refers to the of application One-shot, system needs to create a new process, and loading application operation on startup for it when starting using first time When the resource such as the class libraries that needs;Thermal starting refers to, using backstage has been temporarily stored in, when user again taps on this to apply, to apply Directly front stage operation is scheduled for from backstage.Using cold start-up due to process to be created and loading resource, toggle speed is general It is all slow;Compared to cold start-up, thermal starting does not create the process of process and loading resource, so using the speed of thermal starting Degree is significantly larger than cold start-up.
The content of the invention
It is a primary object of the present invention to propose a kind of application quick start method and terminal, it is intended to solve existing Time universal long problem when android terminal starts application for the first time.
To achieve the above object, one kind application quick start method that the present invention is provided, comprises the following steps:
Start pre-builds process pool, and the process pool includes host process and some idling-resource processes;
When getting using order is started, an idling-resource course allocation in process pool is transferred to the application, Start application.
Further, the idling-resource course allocation transferred in process pool gives the application, starts application bag Include:Getting during using starting order, transferring the host process of process pool, host process by process selection algorithms selection one of them Idle resource process, and resource process execution will be distributed to using startup task.
When further, using foreground is exited, history frequency of use or the time of the application are checked, if history uses frequency It is conventional that rate or time mark the application in the first setting range, then, otherwise marks the application to be commonly used for non-;
It is marked as non-conventional background application and is stored in memory compression area according to setting compressed value compression.
Further, in the step is marked as non-conventional background application and is stored according to setting compressed value compression Deposit after compressional zone, methods described also includes:When receiving the order for starting and being applied by compression, decompression contracts and starts the application.
Further, the history frequency of use or time be apply the last time start after start number of times or use Total duration.
Additionally, to achieve the above object, the present invention also proposes one kind application device for rapidly starting, including:
Process pool creating unit, for pre-building process pool, the process pool includes host process and some idle moneys Originating process;
Execution unit, for when getting using order is started, transferring the idling-resource process point in process pool Applied described in dispensing, start application.
Further, the execution unit is further arranged to:Getting during using starting order, transferring the master of process pool Process, host process will distribute to this by the one of idling-resource process of process selection algorithms selection using startup task Resource process is performed.
Further, also include:
Application class indexing unit, for when foreground is exited in application, checking history frequency of use or the time of the application, If it is conventional that history frequency of use or time in the first setting range, mark the application, it is non-otherwise to mark the application It is conventional;And
Applied compression unit, in being marked as non-conventional background application and being stored according to setting compressed value compression Deposit compressional zone.
Further, also include:
Decompression unit, when starting the order by compression application for receiving, decompression contracts and starts the application.
Further, also include:The history frequency of use or time be apply the last time start after start time Number or the total duration for using.
Application quick start method proposed by the present invention and terminal, master is included by creating one when starting up of terminal starts The process pool of process and some idling-resource processes, when application is started for the first time, by an idling-resource in process pool Course allocation gives the application for being performed startup, so that being greatly speeded up using the speed for starting.When foreground is exited in application, pass through Whether the history use time of application or frequency identification application are non-conventional, and non-conventional applied compression, it is to avoid power consumption and Committed memory, can also be started faster using when being again started up.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram of a kind of optional mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of schematic flow sheet of the storage processing method of terminal applies that the embodiment of the present invention one is provided;
Fig. 4 is the schematic flow sheet of the storage processing method of another terminal applies that the embodiment of the present invention two is provided;
Fig. 5 is a kind of structural representation of the storage processing unit of terminal applies that the embodiment of the present invention three is provided;
Fig. 6 is the structural representation of the storage processing unit of another terminal applies that the embodiment of the present invention four is provided;
Fig. 7 is the logical model of various embodiments of the present invention process pool.
Fig. 8 is various embodiments of the present invention system framework figure.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for being conducive to explanation of the invention, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of a kind of optional mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups for showing Part.More or less component can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of DMB (DMB) The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiver module 111 can receive signal and broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 is calculated and comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, so as to according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended using three for calculating the method for position and temporal information Star and the position that is calculated by using other satellite correction and the error of temporal information.Additionally, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121 Microphone 1220, the static map that 121 pairs, camera is obtained in Video Capture pattern or image capture mode by image capture apparatus The view data of piece or video is processed.Picture frame after treatment may be displayed on display unit 151.At camera 121 Picture frame after reason can be stored in memory 160 (or other storage mediums) or carried out via wireless communication unit 110 Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (voice data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be by Such acoustic processing is voice data.Audio (voice) data after treatment can be changed in the case of telephone calling model For the form that can be sent to mobile communication base station via mobile communication module 112 is exported.Microphone 122 can implement all kinds Noise eliminate (or suppress) algorithm eliminating (or suppression) in the noise for receiving and producing during sending audio signal or Person disturbs.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape State), the presence or absence of the contact (that is, touch input) of the position of mobile terminal 1 00, user for mobile terminal 1 00, mobile terminal The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opened or closed.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of the external device (ED) and input that will be received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or can serve as allowing the various command signals being input into from base to pass through it It is transferred to the path of mobile terminal.Be can serve as recognizing that mobile terminal is from the various command signals or electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 can serve as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired implementation method, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used to detect touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output and be notified to mobile terminal 1 00 with by event.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can in a different manner provide output with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating Output is provided, when calling, message or some other entrance communication (incoming communication) are received, alarm list Unit 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even if When in pocket of the mobile phone of user in user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program for the treatment and control operation performed by controller 180 etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memory with by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and treatment.In addition, controller 180 can be included for reproducing (or playback) many matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or can be structured as and control Device processed 180 is separated.Controller 180 can be with execution pattern identifying processing, the handwriting input that will be performed on the touchscreen or figure Piece draws input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Appropriate electric power needed for part and component.
Various implementation methods described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, implementation method described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such implementation method can be implemented in controller 180. For software implementation, the implementation method of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any appropriate programming language Implement, software code can be stored in memory 160 and performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operated.
The communication system that mobile terminal wherein of the invention can be operated is described referring now to Fig. 2.
Such communication system can use different air interface and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base station (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. If any one in the interface that back haul link can be known according to Ganji is constructed, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersects can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed It is multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to broadcsting transmitter (BT) 295 mobile terminal operated in system 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals At least one of 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to be believed with obtaining desired positioning Breath.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use other of the position of mobile terminal can be tracked Technology.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
Used as a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti- Processed in specific BS270 to link signal.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, the inventive method each embodiment is proposed.
Embodiment one
The embodiment of the present invention one provides one kind application quick start method, as shown in figure 3, comprising the following steps:
S101, start pre-builds process pool, and the process pool includes host process and some idling-resource processes;
When android terminal is started shooting system start, if system start during set up one include host process and The process pool of dry idling-resource process, the idling-resource process in process pool waits application call, and the logical model of process pool is such as Shown in Fig. 7.
The process pool includes host process and some resource processes;The host process is used to manage and scheduling resource process, When task arrives, host process is assigned the task to by the one of idle resource process of process selection algorithms selection The resource process is performed, and process selection algorithm can be process selection algorithm of the prior art;After the completion of task, host process In being responsible for reclaiming the process and putting it to process pool;Resource process is responsible for performing the specific tasks that host process is distributed to.
S102, when getting using order is started, transfers an idling-resource course allocation in process pool to described Using startup application.
When user first switches on an APP to apply, system is received using the order for starting, and as shown in Figure 8 should With A, using B, using any applications of C.System is received using after the order for starting c, and the host process a in calling process pond, master enters A resource process of the journey in process selection algorithms selection resource pool b is used to perform application startup.This part is in system layer Realize.
In the process pool of Android system, each resource process is an android process for sky, it is only necessary to plus Carrying specific application resource and code library can just be run, and entering for free time is directly obtained from process pool because application starts Journey, without a newly-built process, then assigns the task to the process, and system dynamic allocation of resources band is avoided in the process The time overhead for coming, so accelerates the startup time of application.When APP operations are finished, the process can be recycled to process again Pond, waits scheduling next time to use.
The application quick start method of implementation above, some idling-resource processes are included by being set up when system starts Process pool, when application is activated, directly the supply of distribution idling-resource process starts, when can be using newly-built process is saved Between, greatly accelerate using the speed of cold start-up.
Embodiment two
The embodiment of the present invention two provides one kind application quick start method, as shown in figure 4, comprising the following steps:
S201, start pre-builds process pool, and the process pool includes host process and some idling-resource processes;
S202, when getting using order is started, transfers an idling-resource course allocation in process pool to described Using startup application.
S203, during using exiting foreground, checks history frequency of use or the time of the application, if history frequency of use or It is conventional that time marks the application in the first setting range, then, otherwise marks the application to be commonly used for non-;
What is be activated can usually should be used by switching between foreground and backstage, and using after being switched to backstage, have When can switch back again quickly, do not use for a long time then sometimes, thus when application be switched to backstage and do not close when, application Not only the committed memory useful space, can also expend electric power.History use time or frequency by counting terminal applies of the invention The history such as rate or use time, association process uses data, the history to form database purchase in terminal using data.
The history use time of application refers to the summation of the use time after the last start of terminal;Or with 24 hours The use time summation of each application in latter nearest a day is activated for unit record application;The history frequency of use of application refers to Using the number of times being activated after the last start of terminal;Or recorded in units of 24 hours in nearest one day using being activated Number of times.Refer to the union using daily use time segment using use time;When association process refers to that the application is used, meeting Other application or process that association is used, association process can include multiple.
When application is from foreground platform switching backward, accesses user behavior data storehouse and check that the history of the application uses number According to --- history frequency of use or time, if frequency of use or time, in the first setting range, it is normal to mark the application With it is non-conventional otherwise to mark the application.First setting range is default use duration or frequency of use, and this is default to use Duration or frequency of use represent the application as use time is more long or frequency of usage is higher in the terminal.Certainly, first setting Scope can also be the duration or frequency range that after terminal self study, are set automatically with certain ordering rule and selection rule.
Can also further class indication be carried out to non-conventional application, for example, non-conventional application is further divided into It is more common and be of little use, that is, the second setting range of duration or frequency less than the first setting range is set, set duration or frequency Less than the 3rd setting range of the second setting range, the history use time or frequency detected when application is exited into foreground are in The application of the second setting range will be in labeled as more common using the history use time or frequency that are detected when exiting foreground The application of the 3rd setting range is labeled as being of little use.
For example shown in following table:
S204, is marked as non-conventional background application and is stored in memory compression area according to setting compressed value compression.
It is identified as the application being of little use, is temporarily stored into waste memory source and consuming electric power in internal memory for a long time rather, will It is marked as the application that is of little use and is compressed according to setting compressed value processing and being stored in the compressional zone of internal memory.
The compressed value can also automatically set for terminal according to application service condition, and the mode of setting is as follows:
The compression weights symbol COMPRESS_EXPECTATION of application represents that COMPRESS_EXPECTATION is represented Using the probability compressed, span is 0-100, and value is more big, and the probability compressed is bigger.According to the difference of application type, Different compression weights can be set to different types of application, it is specific as shown in the table:
Each is as follows using the computational methods of specific COMPRESS_EXPECTATION values:
Criterion first according to application type calculates the TYPE values of the current application;
It is worth the final TPYE values of the application then in conjunction with history TYPE, computing formula is as follows:
TYPE=history TYPE values × current TPYE value × 0.7 of 0.3+, TPYE values need round numbers;
After having calculated the TPYE values of application, show that this should with the corresponding form of COMPRESS_EXPECTATION according to TYPE COMPRESS_EXPECTATION values.
When the application kept in internal memory is too many, the application recovery of compression can be exited according to certain priority rule, Effectively utilized for other application with releasing memory.
S205, when receiving the order for starting and being applied by compression, decompression contracts and starts the application.
Whether terminal receives the instruction for starting application, checks the application on backstage, and if applied in backstage, then checking should With whether being compressed, if using being compressed, performing and being contractd startup using decompression;If, on backstage, performed using not cold Start;Cold start-up refers to start the first time of application, and system needs to create a new process for it when starting using first time, And the resources such as the class libraries needed during application operation are loaded on startup;If using being uncompressed, performing thermal starting.Thermal starting Refer to, using backstage has been temporarily stored in, when user again taps on this to apply, to be transported using directly foreground is scheduled for from backstage OK.
The application quick start method of implementation above, not only when application starts for the first time by idling-resource in process pool Course allocation accelerates toggle speed, and also the non-conventional application that some have been turned on is stored by compress mode, save internal memory and Power consumption.A kind of startup temperature is realized during these non-conventional applications are called again from backstage to foreground, starts speed Degree is faster than cold start-up.
Embodiment three
Third embodiment of the invention provides one kind application device for rapidly starting, as shown in figure 5, including:Process pool creates single Unit 10, execution unit 20.
Process pool creating unit 10, process pool is pre-build for starting shooting, and the process pool includes host process and some Idling-resource process.
When android terminal is started shooting, system starts, and during system starts, process pool creating unit 10 sets up one The individual resource pool b including host process a and some idling-resource processes, the idling-resource process in resource pool waits application call, The logical model of process pool is as shown in Figure 7.
The process pool includes host process and resource process;The host process be used for manage and scheduling resource process, when appoint When business arrives, host process assigns the task to the money by the one of idle resource process of process selection algorithms selection Originating process is performed, and process selection algorithm can be process selection algorithm of the prior art;After the completion of task, host process is responsible for In reclaiming the process and putting it to process pool;Resource process is responsible for performing the specific tasks that host process is distributed to.
Execution unit 20, for when getting using order is started, transferring an idling-resource process in process pool The application is distributed to, starts application.
When user first switches on an APP to apply, system is received using the order for starting, and execution unit 20 is direct The process of free time is obtained from process pool, without a newly-built process, the process is then assigned the task to, In the process pool of Android system, each resource process is an android process for sky, it is only necessary to which loading specifically should Can just be run with resource and code library, the time overhead that system dynamic allocation of resources brings be avoided in the process, so Accelerate the startup time of application.When APP operations are finished, the process can be recycled to process pool again, wait tune next time Degree is used.
The application device for rapidly starting of implementation above, some idling-resource processes are included by being set up when system starts Process pool, when application is activated, directly the supply of distribution idling-resource process starts, when can be using newly-built process is saved Between, so greatly accelerating using the speed of cold start-up.
Example IV
Fourth embodiment of the invention provides one kind application device for rapidly starting, as shown in fig. 6, including:Process pool creates single Unit 10, execution unit 20, application class indexing unit 30, applied compression unit 40, decompression unit 50.
Wherein, process pool creating unit 10 and execution unit 20 are identical with embodiment three, will not be described here.
Application class indexing unit 30, for application exit foreground when, check the application history frequency of use or when Between, if it is conventional that history frequency of use or time in the first setting range, mark the application, otherwise mark the application to be It is non-conventional.
What is be activated can usually should be used by switching between foreground and backstage, and using after being switched to backstage, have When can switch back again quickly, do not use for a long time then sometimes, thus when application be switched to backstage and do not close when, application Not only the committed memory useful space, can also expend electric power.History use time or frequency by counting terminal applies of the invention The history such as rate or use time, association process uses data, the history to form database purchase in terminal using data.
The history use time of application refers to the summation of the use time after the last start of terminal;Or with 24 hours The use time summation of each application in latter nearest a day is activated for unit record application;The history frequency of use of application refers to Using the number of times being activated after the last start of terminal;Or recorded in units of 24 hours in nearest one day using being activated Number of times.Refer to the union using daily use time segment using use time;When association process refers to that the application is used, meeting Other application or process that association is used, association process can include multiple.
When application is from foreground platform switching backward, accesses user behavior data storehouse and check that the history of the application uses number According to --- history frequency of use or time, if frequency of use or time are in the first setting range, application class indexing unit It is conventional that 30 mark the application, and the otherwise mark of application class indexing unit 30 application is non-conventional.First setting range is Default use duration or frequency of use, when the default use duration or frequency of use represent the application to be used in the terminal Between more long or frequency of usage it is higher.Certainly, first setting range can also be for after terminal self study, with certain ordering rule With the automatic duration for setting of selection rule or frequency range.
Can also further class indication be carried out to non-conventional application, for example, non-conventional application is further divided into It is more common and be of little use, that is, the second setting range of duration or frequency less than the first setting range is set, set duration or frequency Less than the 3rd setting range of the second setting range, the history use time or frequency detected when application is exited into foreground are in The application of the second setting range will be in labeled as more common using the history use time or frequency that are detected when exiting foreground The application of the 3rd setting range is labeled as being of little use.
For example shown in following table:
Applied compression unit 40, for being marked as non-conventional background application and being stored according to setting compressed value compression Memory compression area.
It is identified as the application being of little use, is temporarily stored into waste memory source and consuming electric power in internal memory for a long time rather, should The application that is of little use being marked as with compression unit 40, the pressure that processes and be stored in internal memory is compressed according to setting compressed value In contracting area.
The compressed value can also automatically set for terminal according to application service condition, and the mode of setting is as follows:
The compression weights symbol COMPRESS_EXPECTATION of application represents that COMPRESS_EXPECTATION is represented Using the probability compressed, span is 0-100, and value is more big, and the probability compressed is bigger.According to the difference of application type, Different compression weights can be set to different types of application, it is specific as shown in the table:
Each is as follows using the computational methods of specific COMPRESS_EXPECTATION values:
Criterion first according to application type calculates the TYPE values of the current application;
It is worth the final TPYE values of the application then in conjunction with history TYPE, computing formula is as follows:
TYPE=history TYPE values × current TPYE value × 0.7 of 0.3+, TPYE values need round numbers;
After having calculated the TPYE values of application, show that this should with the corresponding form of COMPRESS_EXPECTATION according to TYPE COMPRESS_EXPECTATION values.
When the application kept in internal memory is too many, the application recovery of compression can be exited according to certain priority rule, Effectively utilized for other application with releasing memory.
Decompression unit 50, when starting the order by compression application for receiving, decompression contracts and starts the application.
Whether terminal receives the instruction for starting application, check using on backstage, if applied in backstage, then checks application Whether compressed, if using being compressed, being performed by decompression unit 50 and being contractd startup using decompression;If using not rear Platform, then perform cold start-up;Cold start-up refers to start the first time of application, and system needs to create one for it when starting using first time Individual new process, and the resources such as the class libraries needed during application operation are loaded on startup;If using being uncompressed, performing heat Start.Thermal starting refers to using being temporarily stored in backstage, when user again taps on this to apply, using directly being adjusted from backstage Spend front stage operation.
The application device for rapidly starting of implementation above, not only when application starts for the first time by idling-resource in process pool Course allocation accelerates toggle speed, and also the non-conventional application that some have been turned on is stored by compress mode, save internal memory and Power consumption.A kind of startup temperature is realized during these non-conventional applications are called again from backstage to foreground, starts speed Degree is faster than cold start-up.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. one kind application quick start method, it is characterised in that including:
Process pool is pre-build, the process pool includes host process and some idling-resource processes;
When getting using order is started, the idling-resource course allocation transferred in the process pool is opened to the application It is dynamic to order corresponding application, to start the application.
2. application quick start method according to claim 1, it is characterised in that:It is described transfer in the process pool one Individual idling-resource course allocation starts the corresponding application of order to the application, is included with starting the application:
The host process in the process pool is transferred, host process passes through the one of idling-resource process of process selection algorithms selection, And resource process execution will be distributed to using startup task.
3. application quick start method according to claim 1, it is characterised in that it is described pre-build process pool after, Methods described also includes:
When foreground is exited in application, history frequency of use or the time of the application are checked, if history frequency of use or time exist In first setting range, then it is conventional to mark the application, otherwise marks the application to be commonly used for non-;
It is marked as non-conventional background application and is stored in memory compression area according to setting compressed value compression.
4. application quick start method according to claim 3, it is characterised in that described according to setting compressed value compression quilt Labeled as non-conventional background application and it is stored in after memory compression area, methods described also includes:
When the order for starting and being applied by compression is received, then decompression contracts and starts the application.
5. application quick start method according to claim 3, it is characterised in that the history frequency of use or time is Apply the number of times for starting or the total duration for using after the last time start.
6. a kind of terminal, it is characterised in that including:
Process pool creating unit, process pool is pre-build for starting shooting, and the process pool includes host process and some idling-resources Process;
Execution unit, for when getting using order is started, transfer an idling-resource course allocation in process pool to The application, starts application.
7. terminal according to claim 6, it is characterised in that:The execution unit is further arranged to:Get application When starting order, the host process of process pool is transferred, host process passes through the one of idling-resource process of process selection algorithms selection, And resource process execution will be distributed to using startup task.
8. terminal according to claim 6, it is characterised in that:Also include
Application class indexing unit, for when foreground is exited in application, checking history frequency of use or the time of the application, if It is conventional that history frequency of use or time mark the application in the first setting range, then, otherwise marks the application to be commonly used for non-; And
Applied compression unit, for being marked as non-conventional background application and being stored in internal memory pressure according to setting compressed value compression Contracting area.
9. terminal according to claim 8, it is characterised in that also include:
Decompression unit, when starting the order by compression application for receiving, decompression contracts and starts the application.
10. terminal according to claim 8, it is characterised in that also include:The history frequency of use or time are application The number of times for starting or the total duration for using after the last time start.
CN201710059130.6A 2017-01-23 2017-01-23 Application quick starting method and terminal Active CN106844033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710059130.6A CN106844033B (en) 2017-01-23 2017-01-23 Application quick starting method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710059130.6A CN106844033B (en) 2017-01-23 2017-01-23 Application quick starting method and terminal

Publications (2)

Publication Number Publication Date
CN106844033A true CN106844033A (en) 2017-06-13
CN106844033B CN106844033B (en) 2020-07-28

Family

ID=59121398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710059130.6A Active CN106844033B (en) 2017-01-23 2017-01-23 Application quick starting method and terminal

Country Status (1)

Country Link
CN (1) CN106844033B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391241A (en) * 2017-06-22 2017-11-24 努比亚技术有限公司 Using quick start method, terminal and computer-readable recording medium
CN107704321A (en) * 2017-09-30 2018-02-16 北京元心科技有限公司 Memory allocation method and device and terminal equipment
CN109347894A (en) * 2018-08-10 2019-02-15 锐捷网络股份有限公司 Manage method, manager, equipment and the medium of FastCGI process
WO2019071610A1 (en) * 2017-10-13 2019-04-18 华为技术有限公司 Method and apparatus for compressing and decompressing memory occupied by processor
CN109885340A (en) * 2019-01-10 2019-06-14 北京字节跳动网络技术有限公司 A kind of application program cold start-up accelerated method, device, electronic equipment
CN110162345A (en) * 2019-05-05 2019-08-23 网宿科技股份有限公司 A kind of application program access method, device and storage medium
WO2021027700A1 (en) * 2019-08-15 2021-02-18 华为技术有限公司 Application program starting method and apparatus, terminal device and readable storage medium
CN114357210A (en) * 2021-12-17 2022-04-15 浙江仁欣环科院有限责任公司 Unmanned aerial vehicle system for pipe network early warning sewage dynamic supervision and using method thereof
CN114489842A (en) * 2022-01-17 2022-05-13 重庆长安汽车股份有限公司 Android platform-based acceleration application starting method
CN116302209A (en) * 2023-05-15 2023-06-23 阿里云计算有限公司 Method for accelerating starting of application process, distributed system, node and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222709A (en) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 Fast starting method of mobile phone application program
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
US9400558B2 (en) * 2009-03-18 2016-07-26 HJ Laboratories, LLC Providing an elevated and texturized display in an electronic device
CN105893087A (en) * 2016-03-30 2016-08-24 珠海市魅族科技有限公司 Application program starting method and device
CN106095561A (en) * 2016-06-24 2016-11-09 宇龙计算机通信科技(深圳)有限公司 Freeze the management method of application, the managing device freezing application and terminal
CN106201708A (en) * 2016-06-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 The freezing method of application program, the freezing plant of application program and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222709A (en) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 Fast starting method of mobile phone application program
US9400558B2 (en) * 2009-03-18 2016-07-26 HJ Laboratories, LLC Providing an elevated and texturized display in an electronic device
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN105893087A (en) * 2016-03-30 2016-08-24 珠海市魅族科技有限公司 Application program starting method and device
CN106095561A (en) * 2016-06-24 2016-11-09 宇龙计算机通信科技(深圳)有限公司 Freeze the management method of application, the managing device freezing application and terminal
CN106201708A (en) * 2016-06-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 The freezing method of application program, the freezing plant of application program and terminal

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391241A (en) * 2017-06-22 2017-11-24 努比亚技术有限公司 Using quick start method, terminal and computer-readable recording medium
CN107704321A (en) * 2017-09-30 2018-02-16 北京元心科技有限公司 Memory allocation method and device and terminal equipment
WO2019071610A1 (en) * 2017-10-13 2019-04-18 华为技术有限公司 Method and apparatus for compressing and decompressing memory occupied by processor
CN109347894A (en) * 2018-08-10 2019-02-15 锐捷网络股份有限公司 Manage method, manager, equipment and the medium of FastCGI process
CN109885340A (en) * 2019-01-10 2019-06-14 北京字节跳动网络技术有限公司 A kind of application program cold start-up accelerated method, device, electronic equipment
CN110162345B (en) * 2019-05-05 2022-02-18 网宿科技股份有限公司 Application program access method and device and storage medium
CN110162345A (en) * 2019-05-05 2019-08-23 网宿科技股份有限公司 A kind of application program access method, device and storage medium
WO2021027700A1 (en) * 2019-08-15 2021-02-18 华为技术有限公司 Application program starting method and apparatus, terminal device and readable storage medium
CN114357210A (en) * 2021-12-17 2022-04-15 浙江仁欣环科院有限责任公司 Unmanned aerial vehicle system for pipe network early warning sewage dynamic supervision and using method thereof
CN114357210B (en) * 2021-12-17 2023-04-07 浙江仁欣环科院有限责任公司 Unmanned aerial vehicle system for pipe network early warning sewage dynamic supervision and using method thereof
CN114489842A (en) * 2022-01-17 2022-05-13 重庆长安汽车股份有限公司 Android platform-based acceleration application starting method
CN116302209A (en) * 2023-05-15 2023-06-23 阿里云计算有限公司 Method for accelerating starting of application process, distributed system, node and storage medium
CN116302209B (en) * 2023-05-15 2023-08-04 阿里云计算有限公司 Method for accelerating starting of application process, distributed system, node and storage medium

Also Published As

Publication number Publication date
CN106844033B (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN106844033A (en) One kind application quick start method and terminal
CN106572302B (en) A kind of image information processing method and equipment
CN105718027B (en) The management method and mobile terminal of background application
CN106648811A (en) Method for starting application of terminal and terminal
CN106843450A (en) The storage processing method and device of a kind of terminal applies
CN106844032A (en) The storage processing method and device of a kind of terminal applies
CN104735255B (en) Multi-screen display method and system
CN106803860A (en) The storage processing method and device of a kind of terminal applies
CN104731512B (en) The method, apparatus and terminal that picture is shared
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN105764085A (en) Abnormal electricity consumption detection method and terminal
CN106126065A (en) A kind of mobile terminal and double screen method for information display thereof
CN106909681A (en) A kind of information processing method and its device
CN105245938A (en) Device and method for playing multimedia files
CN106528576A (en) Page search method and system, and terminal
CN104866095B (en) Mobile terminal and its desktop management method and apparatus
CN106445830A (en) Application program running environment detection method and mobile terminal
CN106095464A (en) A kind of method and device of the seamless operation of application program
CN106528236A (en) Memory acceleration white list configuration method and device
CN106658470A (en) Master card setting device and method
CN106960046A (en) Picture recommendation method and terminal
CN106790994A (en) The triggering method and mobile terminal of control
CN106790785A (en) A kind of mobile terminal charging structure and mobile terminal
CN106547674A (en) A kind of fingerprint input method, device and terminal
CN106161790A (en) A kind of mobile terminal and control method thereof

Legal Events

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