CN107992334A - A kind of method and terminal of optimization of starting shooting - Google Patents

A kind of method and terminal of optimization of starting shooting Download PDF

Info

Publication number
CN107992334A
CN107992334A CN201610956461.5A CN201610956461A CN107992334A CN 107992334 A CN107992334 A CN 107992334A CN 201610956461 A CN201610956461 A CN 201610956461A CN 107992334 A CN107992334 A CN 107992334A
Authority
CN
China
Prior art keywords
collection
unloading command
target
unloading
terminal
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
CN201610956461.5A
Other languages
Chinese (zh)
Other versions
CN107992334B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610956461.5A priority Critical patent/CN107992334B/en
Publication of CN107992334A publication Critical patent/CN107992334A/en
Application granted granted Critical
Publication of CN107992334B publication Critical patent/CN107992334B/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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of method and terminal of optimization of starting shooting, target process when starting shooting for unloading next time in the process collection of background process to be launched, the process collection updated, the background process started when starting shooting next time is the process collection of renewal, because target process is lacked in the process collection of renewal, so as to reduce the available machine time.Present invention method includes:Obtain the process collection of background process to be launched during this start;Obtain the unloading command to target process in the process collection;The unloading command is performed, unloads the target process, the process collection updated, the process in the process collection of the renewal is activated when starting shooting next time.

Description

A kind of method and terminal of optimization of starting shooting
Technical field
The present invention relates to computer realm, more particularly to a kind of method and terminal of optimization of starting shooting.
Background technology
Computer(computer)Computer is commonly called as, is a kind of modern electronic computer device for supercomputing, Ke Yijin Row numerical computations, and logical calculated can be carried out, also there is store-memory.It is that can be run according to program, automatic, high speed Handle the modernization intelligent electronic device of mass data.
MacOSX is a set of operating system run on Apple Macintosh series computer.Mac systems are to be based on Unix The graphical user interface of kernel, by Apple Inc.'s self-developing.In recent years, due to its remarkable performance, outstanding interface and User experience, Apple Computers gradually rise in occupation rate of market, and the utilization rate of MacOSX is constantly soaring.Mac systems are from start The step of being established to user environment be:
(1)Mac firmwares activate, and initialize hardware, load BootX guiding devices;
(2)Boot is guided;
(3)Load kernel and kernel extensions(kext);
(4)Kernel starts launchd processes;
(5)Launchd processes start Daemon according to system configuration;
(6)The foundation and login of user environment;
(7)Launchd processes are configured according to user environment, start Agent.
During start, the time of cost for user, or some length, in the prior art, in order to subtract The time started shooting less, can be configured some processes, i.e., remove what start logged among system is set or program is set Option.But but this method it is to the covering surface of startup item very low, consumer process can only be directed to carry out cancelling start item and set Put;This method can not disable and unload some useless to user, time-consuming cost source background process.
The content of the invention
An embodiment of the present invention provides a kind of method and terminal of optimization of starting shooting, wait to open when starting shooting for unloading next time Target process in the process collection of dynamic background process, the process collection updated, the backstage started when starting shooting next time Process is the process collection of renewal, because having lacked target process in the process collection of renewal, so as to reduce the available machine time.
In view of this, first aspect of the embodiment of the present invention provides a kind of method for optimization of starting shooting, and can include:
Obtain the process collection of background process to be launched during this start;
Obtain the unloading command to target process in the process collection;
The unloading command is performed, unloads the target process, the process collection updated, in the process collection of the renewal Process is activated when starting shooting next time.
Second aspect of the embodiment of the present invention provides a kind of terminal, can include:
First acquisition module, the process collection of background process to be launched during for obtaining this start;
Second acquisition module, for obtaining the unloading command to target process in the process collection;
Unload module, for performing the unloading command, unloads the target process, the process collection updated, the renewal Process collection in process next time start shooting when be activated.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
In embodiments of the present invention, terminal obtains the process collection of background process to be launched during this start;Obtain again pair The unloading command of target process in the process collection;The unloading command is performed, the target process is unloaded, is updated Process collection, the process in the process collection of the renewal are activated when starting shooting next time.In the process of this terminal operating In, the target process on some backstages can be unloaded, then, the terminal is during next time starts shooting, because having lacked some targets Process is run, before time of start is opposite for, can be fast so that, reduce the available machine time.
Brief description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to institute in embodiment and description of the prior art Attached drawing to be used is needed to be briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the schematic diagram that the application program provided in the embodiment of the present invention is provided with " being opened when logging in ";
Fig. 2 be provided in the embodiment of the present invention remove the schematic diagram of entry in system setting;
Fig. 3 be the embodiment of the present invention in start shooting optimization method one embodiment schematic diagram;
Fig. 4(a)The schematic diagram of the configuration file of the system finger daemon provided for administrator in the embodiment of the present invention;
Fig. 4(b)To input a schematic diagram of unloading command in the embodiment of the present invention;
Fig. 5 is one embodiment schematic diagram of terminal in the embodiment of the present invention;
Fig. 6 is another embodiment schematic diagram of terminal in the embodiment of the present invention;
Fig. 7 is another embodiment schematic diagram of terminal in the embodiment of the present invention;
Fig. 8 is another embodiment schematic diagram of terminal in the embodiment of the present invention;
Fig. 9 is another embodiment schematic diagram of terminal in the embodiment of the present invention.
Embodiment
An embodiment of the present invention provides a kind of method and terminal of optimization of starting shooting, wait to open when starting shooting for unloading next time Target process in the process collection of dynamic background process, the process collection updated, the backstage started when starting shooting next time Process is the process collection of renewal, because having lacked target process in the process collection of renewal, so as to reduce the available machine time.
In order to make those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Attached drawing, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work, should all belong to the model that the present invention protects Enclose.
21 century is the society of an information rapid development, and information-based development speed is getting faster, and people are for network Demand it is also increasing, daily life, working and learning all generate respectively because the influence of network is received The change of kind various kinds, the development of network make various information breach the limitation of region and widely propagate.
MacOSX is a set of operating system run on Apple Macintosh series computer.Mac systems are to be based on Unix The graphical user interface of kernel, by Apple Inc.'s self-developing.In recent years, due to its remarkable performance, outstanding interface and User experience, Apple Computers gradually rise in occupation rate of market, and the utilization rate of MacOSX is constantly soaring.
First some terms being likely to occur in the embodiment of the present invention are done with a simple illustration, it is as follows:
Launchd:General process manager under Mac systems, is the process on a resident backstage.
Daemon:Refer to being performed in Mac system backgrounds for task, the direct manipulation of user will not be subject to, carried for front end applications For functional service, coordinate the access to resource.
Agent:Refer to being performed under Mac system user contexts for task, user resources can be accessed, with Daemon function classes Seemingly, functional service is provided for front end, coordinates the access to resource.
In the prior art, if user is during Mac computers use, if being set to some Mac computers application programs The option that have selected " being opened when logging in " is put, as shown in Figure 1, then, user can be by this option to removing, in Mac electricity This application program would not be run during brain start next time, can be used for reducing the time of Mac computers start.Alternatively, Setting to some application programs have selected the option of " being opened when logging in ", and user can remove login among system is set , i.e., by scratching out before project, if as shown in Fig. 2, not selected iTunesHelper application programs, RTX application programs, Foxmail application programs and enterprise's cloud disk application program, then, Mac computers would not start these during start should With program, therefore, it is possible to reduce the available machine time of Mac computers.
The prior art is easy to operate, and Mac customer is familiar.But the technology is very low to the covering surface of startup item, only It can cancel there is provided the application program of startup item.I.e. this method is commonly available to the application that user setting crosses " being opened during login " Program, user want, not in starting up's application program, to be about to " opening when logging in " this option certainly and remove, to user without With, but take cost source system process or third party develop background process can not generally cancel, therefore, Mac computers Available machine time need to be reduced.
The main object of the present invention is optimization Mac system start-up times, accelerates starting up speed.Use is started to from Mac systems The foundation of family environment is divided into series of steps, as follows, optimizes any one among these steps, can reach optimization The purpose of system start-up time.The present invention will start with from the Launchd processes among start step, useless to user by unloading Daemon processes and Agent processes, time of Launchd process initiations Daemon and Agent is reduced, so as to reduce Mac systems The startup time of system.
Mac systems from start established to user environment the step of be:
(1)Mac firmwares activate, and initialize hardware, load BootX guiding devices;
(2)Boot is guided;
(3)Load kernel and kernel extensions(kext);
(4)Kernel starts launchd processes;
(5)Launchd processes start Daemon according to system configuration;
(6)The foundation of user environment and log in;
(7)Launchd processes are configured according to user environment, start Agent.
What technical solution of the present invention was optimized is step(5)Launchd processes start Daemon and step according to system configuration Suddenly(7)Launchd processes are configured according to user environment, start Agent.
Launchd is system-level process, for managing the Daemon and Agent in Mac systems.Launchd can not be straight Receiving is asked and called, it is necessary to be operated by launchctl orders.The present invention is exactly using launchctl orders, according to need Will, unwanted background process on specific computer is unloaded so as to achieve the purpose that to improve starting up speed.
Technical solution of the present invention is described further by way of examples below, as shown in figure 3, real for the present invention One embodiment schematic diagram of the method for optimization of starting shooting in example is applied, including:
301st, the process collection of background process to be launched during this start is obtained;
Executive agent in embodiments of the present invention can be terminal, and terminal can include being mounted with MacOSX operating systems Computer(Desktop computer, notebook).Here illustrated by taking notebook as an example, notebook is already powered on, in work shape State, if user wants to unload some background process, then, inquiry operation first is carried out to notebook, notebook can obtain this and open The process collection of background process to be launched during machine.It is to be understood that obtain here this start when background process to be launched process Set, it is generally the case that have 5 as the catalogue where the process collection that Launchd is managed, as described in Table 1:
Table 1
302nd, the halt instruction to target process is obtained;
In embodiments of the present invention, to unload some target process, first stop some target process, i.e., first obtain to this The halt instruction of target process in process collection.Refer to above, Launchd is system-level process, can not directly be visited Ask and call, it is necessary to be operated by launchctl orders.So halt instruction here can essentially be referred to as Launchctl stop are instructed.
Exemplary, in practical applications, launchctl orders have following 4 kinds, as described in Table 2:
launchctl load com.katiewang.mydaemond.plist Loading
launchctl unload com.katiewang.mydaemond.plist Unloading
launchctl start com.katiewang.mydaemond.plist Start
launchctl stop com.katiewang.mydaemond.plist Stop
Table 2
Such as launchctl unload com.katiewang.mydaemond.plist in table, represent and use Launchctl orders unload the background process of entitled mydaemond;
Launchctl stop com.katiewang.mydaemond.plist, are represented and are stopped using launchctl orders The only background process of entitled mydaemond;
Launchctl stop com.katiewang.mydaemond.plist, are represented and are stopped using launchctl orders The only background process of entitled mydaemond;
Launchctl load com.katiewang.mydaemond.plist, are represented and are added using launchctl orders Carry the background process of entitled mydaemond;
Launchctl start com.katiewang.mydaemond.plist, are represented and are opened using launchctl orders Move the background process of entitled mydaemond.
It should be noted that com.katiewang.mydaemond.plist represents the background process in launched mesh Configuration file under record, and content of the configuration file under launched catalogues as shown in above-mentioned table 1, details are not described herein again.
303rd, halt instruction is performed, stops target process;
In embodiments of the present invention, after notebook obtains the halt instruction to target process in the process collection, notes Operating system in this performs halt instruction, stops target process.It is to be understood that it is not necessary step to stop target process, stop Only instruction can directly stop the background process on the Mac computers of operation, i.e., step 302 and 303 is optional step.
304th, the unloading command to target process in process collection is obtained;
In embodiments of the present invention, computer obtains the unloading command to target process in process collection;It is it is to be understood that actual It is below several possible implementations in:
(1)When determining to start shooting next time after the process collection of process to be launched, method further includes:Display is started shooting next time When process to be launched process collection;The unloading command to target process in process collection is obtained, can be included:By showing boundary Face receives user for the unloading command that process is chosen in the process collection of process to be launched.
(2)The unloading command to target process in process collection is obtained, including:According in the process collection of process to be launched The significance level of each process, determines to allow the process being unloaded;Unloading command is generated for the process for allowing to be unloaded.
It should be noted that(1)It is that user selects the target to be unloaded according to the demand of itself in this implementation Process, the unloading command that computer can be by the operation of display interface reception user to generate.I.e. user starts in Mac systems " terminal .app " application programs, into and check the catalogue of above-mentioned background process configuration file, determined according to user's use habit The background process set unloaded is needed, unloading operation, notebook generation unloading command are performed to the target process to be unloaded, and hold The row unloading command;(2)In this implementation, be similar computer house keeper as client, can be wide by software business man The priority of each process in the process collection of process to be launched is determined after general investigation, priority can less than the process of preset threshold value To be determined as allowing the process being unloaded, then for the process generation unloading command for allowing to be unloaded.I.e. by software business man according to rear The investigation of platform process and user's use habit, determine the background process set of suitable user's unloading, encapsulate unloading command and perform, It is the mode operated by software instead of user's manual input commands.
The a kind of of above-mentioned offer is the implementation for automatically obtaining and performing unloading command, and one kind is user according to itself need Ask and carry out operation generation and perform the implementation of unloading command, for an embodiment of the present invention provides feasibility.
305th, according to unloading command, unload target process, the process collection updated, in the process collection of renewal into Journey is activated when starting shooting next time.
In embodiments of the present invention, after notebook is obtained to the unloading command of target process in process collection, according to unloading Load instructs, unloading target process, the process collection updated, the quilt when starting shooting next time of the process in the process collection of renewal Start.It is to be understood that in unloading command practical application here, launchctl unloading commands can be referred to as.
In an optional implementation manner, unloading command is performed, unloads target process, including:When matching somebody with somebody for target process When putting the background process that file is located under system directory, authority is increased to unloading command by changing unloading command;Perform increase Unloading command after authority, unloads target process.
Exemplary, on the basis of shown in above-mentioned table 1, open catalogue/Library/LaunchDaemons/, observable The configuration file of the system finger daemon provided to administrator, such as Fig. 4(a)It is shown.It is off-loadable using above-mentioned launchctl orders The process that need not start with system, such as com.google.keystone.daemon.plist, this is the automatic of Google The Daemon of upgrade service, then, the unloading command of acquisition is:launchctl unload Com.google.keystone.daemon.plist, computer is according to launchctl unload Com.google.keystone.daemon.plist is instructed, and unloads com.google.keystone.daemon.plist.
Further, when operating system catalogue(Non-user catalogue, with "/" in the form provided in the embodiment of the present invention For the catalogue of prefix)When, it is necessary to before ordering plus sudo orders lift authority.Using the catalogue of "~" prefix as User Catalog.Such as: Com.apple.metadata.mds.plist is system process, to unload the process, common launchctl unloading commands For:Launchctl unload com.apple.metadata.mds.plist, because operation is system-level catalogue, To modify to the unloading command, before plus sudo orders lift authority, amended unloading command is:sudo Launchctl unload com.apple.metadata.mds.plist, further according to the sudo launchctl unload Com.apple.metadata.mds.plist is unloaded.
Illustrate some common services that random start is not required below, user or start assistant, computer house keeper etc. are so Software, can according to circumstances stop or unload it is following these service, as shown in table 3:
Table 3
In embodiments of the present invention, the process collection of process to be launched computer determines to start shooting next time when;Obtain into The unloading command of target process in Cheng Jihe;According to unloading command, target process, the process collection updated, renewal are unloaded Process collection in process next time start shooting when be activated.During this computer is run, it can unload The target process on backstage, then, the computer is during next time starts shooting, because having lacked the operation of some target process, start Time it is opposite before for, can be fast so that, improve start speed, reduce the available machine time.
In practical applications, technical solution of the present invention can optimize the startup time of Mac systems, especially older to type, The family expenses Mac computers that function focuses on are especially pronounced, enhance usage experience.Carried out below by taking a practical application scene as an example Illustrate, readily appreciate technical solution of the present invention.
Xiao Li is a paperwork personnel, his Apple Computers have been used 2 years, because economic cause, temporarily also cannot The computer renewed.But work must normally be done, and sometimes computer compares card, and starting up speed is especially slow, every time more than one Minute, although Xiao Li also has eliminates the process of some starting up in system setting, but it is not have to have some processes There are much use, mainly the process under some system directories, cannot cancel in system setting.
The present computer of Xiao Li is to be in open state, he uses technical solution of the present invention, first opens such as above-mentioned table 1 or table Catalogue in 3 where background process configuration file, Xiao Li determine which process unloaded according to these background process of display, Assuming that the product automatic updating function that google companies provide is not required in Xiao Li, can be unloaded by the present invention program, Xiao Li's Operating method is " to input order in terminal .app " applications, the unloading command of input is:launchctl unload com.google.keystone.agent.plist.Such as Fig. 4(b)It is shown, a schematic diagram of unloading command is inputted for Xiao Li, Come into force automatically during this unloading command start next time of Xiao Li's input.
The process of Xiao Li's unloading is more, then, the speed of start is faster, and the time of start also accordingly reduces.If some Process imprudence unloads, and can also input loading instruction in the terminal, this loading instruction is automatic when starting shooting next time Come into force.I.e. in practical applications, the background process of unloading can recover at any time.
Such as start shooting to the softwares of some management computers assistant, computer house keeper software of the method for this programme has important reality Existing meaning.Such as certain computer house keeper can collect cost approach, the mode automatic running launchctl orders of program are used, it is only necessary to User is allowed to select which project to need to unload, mouse is clicked on and can complete to optimize.
The method optimized above to the start in the embodiment of the present invention is described, below to being carried in the embodiment of the present invention The terminal of confession is specifically described.As shown in figure 5, be one embodiment schematic diagram of terminal in the embodiment of the present invention, including:
First acquisition module 501, the process collection of background process to be launched during for obtaining this start;
Second acquisition module 502, for obtaining the unloading command to target process in process collection;
Unload module 503, for performing unloading command, unloads target process, the process collection updated, renewal into Process in Cheng Jihe is activated when starting shooting next time.
Optionally, in some embodiments of the invention, on the basis of shown in Fig. 5, as shown in fig. 6, real for the present invention Apply another embodiment schematic diagram of terminal in example, Unload module 503, including:
Unit 5031 is changed, for when the configuration file of target process is located under system directory, referring to by changing unloading Order increases authority to unloading command;
Unloading unit 5032, for performing the unloading command after increasing authority, unloads target process.
Optionally, in some embodiments of the invention, on the basis of shown in Fig. 5, as shown in fig. 7, real for the present invention Another embodiment schematic diagram of terminal in example is applied,
Second acquisition module 502, is additionally operable to obtain the halt instruction to target process;
Terminal further includes:Stopping modular 504, for performing halt instruction, stops target process.
Optionally, in some embodiments of the invention, on the basis of shown in Fig. 5, as shown in figure 8, real for the present invention Another embodiment schematic diagram of terminal in example is applied, terminal further includes:
Display module 505, the process collection of process to be launched when starting shooting for showing next time;
Second acquisition module 502, specifically for receiving process collection of the user for process to be launched by display interface The unloading command of middle chosen process.
Optionally, in some embodiments of the invention,
Second acquisition module 502, specifically for the significance level of each process in the process collection according to process to be launched, really Surely the process being unloaded is allowed;Unloading command is generated for the process for allowing to be unloaded.
The embodiment of the present invention additionally provides another terminal, as shown in figure 9, for convenience of description, illustrate only and this hair The bright relevant part of embodiment, particular technique details do not disclose, refer to present invention method part.The terminal can be with Terminal realization is integrated in, is connected by wired communication interface or wireless communication interface with terminal.
Fig. 9 is illustrated that the block diagram with the relevant part-structure of terminal provided in an embodiment of the present invention.With reference to figure 9, terminal Including:Radio frequency(Radio Frequency, RF)Circuit 910, memory 920, input unit 930, display unit 940, sensor 950th, voicefrequency circuit 960, Wireless Fidelity(Wireless fidelity, WiFi)Module 970, processor 980 and power supply 990 Deng component.It will be understood by those skilled in the art that the restriction of the terminal structure shown in Fig. 9 not structure paired terminal, can wrap Include than illustrating more or fewer components, either combine some components or different components arrangement.
Each component parts of terminal is specifically introduced with reference to Fig. 9:
RF circuits 910 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, handled to processor 980;In addition, the data sending of uplink will be designed to base station.In general, RF circuits 910 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier(Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 910 can also be communicated by wireless communication with network and other equipment. Above-mentioned wireless communication can use any communication standard or agreement, include but not limited to global system for mobile communications(Global System of Mobile communication, GSM), general packet radio service(General Packet Radio Service, GPRS), CDMA(Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access,WCDMA), Long Term Evolution(Long Term Evolution, LTE), Email, Short Message Service(Short Messaging Service, SMS)Deng.
Memory 920 can be used for storage software program and module, and processor 980 is stored in memory 920 by operation Software program and module, so as to perform various function application and the data processing of terminal.Memory 920 can mainly include Storing program area and storage data field, wherein, storing program area can storage program area, the application journey needed at least one function Sequence(Such as sound-playing function, image player function etc.)Deng;Storage data field can be stored uses what is created according to terminal Data(Such as voice data, phone directory etc.)Deng., can be with addition, memory 920 can include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Input unit 930 can be used for the numeral or character information for receiving input, and produce with the user setting of terminal with And the key signals input that function control is related.Specifically, input unit 930 may include that contact panel 931 and other inputs are set Standby 932.Contact panel 931, also referred to as touch-screen, collect user on it or neighbouring touch operation(For example user uses The operation of any suitable object such as finger, stylus or annex on contact panel 931 or near contact panel 931), and root Corresponding attachment device is driven according to formula set in advance.Optionally, contact panel 931 may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinates, then processor 980 is given, and the order that processor 980 is sent can be received and performed.Furthermore, it is possible to using electricity The polytypes such as resistive, condenser type, infrared ray and surface acoustic wave realize contact panel 931.Except contact panel 931, input Unit 930 can also include other input equipments 932.Specifically, other input equipments 932 can include but is not limited to secondary or physical bond Disk, function key(Such as volume control button, switch key etc.), trace ball, mouse, the one or more in operation lever etc..
Display unit 940 is various available for the information and terminal for showing by information input by user or being supplied to user Menu.Display unit 940 may include display panel 941, optionally, can use liquid crystal display(Liquid Crystal Display, LCD), Organic Light Emitting Diode(Organic Light-Emitting Diode,OLED)Configured etc. form aobvious Show panel 941.Further, contact panel 931 can cover display panel 941, when contact panel 931 detect it is on it or attached After near touch operation, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 according to touch event Type corresponding visual output is provided on display panel 941.Although in fig.9, contact panel 931 and display panel 941 It is the component independent as two to realize the input of terminal and input function, but in some embodiments it is possible to by touch-control Panel 931 and display panel 941 are integrated and that realizes terminal output and input function.
Terminal may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 941, proximity sensor can close display panel 941 when terminal is moved in one's ear And/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions(Generally three axis)Acceleration Size, size and the direction of gravity, the application available for identification terminal posture are can detect that when static(For example horizontal/vertical screen is cut Change, associated interactive is applied, magnetometer pose calibrating), Vibration identification correlation function(Such as pedometer, percussion)Deng;As for end The other sensors such as the gyroscope that can also configure, barometer, hygrometer, thermometer, infrared ray sensor are held, it is no longer superfluous herein State.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the audio interface between user and terminal.Audio-frequency electric The transformed electric signal of the voice data received can be transferred to loudspeaker 961, sound is converted to by loudspeaker 961 by road 960 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 Voice data is changed to, then after voice data output processor 980 is handled, through RF circuits 910 to be sent to such as another terminal, Or voice data is exported to memory 920 further to handle.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronics postal by WiFi module 970 Part, browse webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 9 is shown WiFi module 970, but it is understood that, it is simultaneously not belonging to must be configured into for terminal, can not change as needed completely Become in the essential scope of invention and omit.
Processor 980 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to Cross operation or perform the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data, perform the various functions and processing data of terminal, so as to carry out integral monitoring to terminal.Optionally, processor 980 can wrap Include one or more processing units;Preferably, processor 980 can integrate application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly handled with processor, modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Terminal further includes the power supply 990 to all parts power supply(Such as battery), it is preferred that power supply can pass through power supply pipe Reason system and processor 980 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.
Although being not shown, terminal can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, the processor 980 included by the terminal also has following functions:When obtaining this start The process collection of background process to be launched;Execution unloading command, unloading target process, the process collection updated, renewal Process in process collection is activated when starting shooting next time.
Input unit 930 included by the terminal also has following functions:Target process in process collection is unloaded in acquisition Carry instruction.
Optionally, in some embodiments of the invention, processor 980 also has following functions:When matching somebody with somebody for target process When putting file and being located under system directory, authority is increased to unloading command by changing unloading command;Perform unloading after increase authority Instruction is carried, unloads target process.
Optionally, in some embodiments of the invention, input unit 930 also has following functions:Obtain to target into The halt instruction of journey;
Processor 980 also has following functions:Halt instruction is performed, stops target process.
Optionally, in some embodiments of the invention, processor 980 also has following functions:Display is started shooting next time When process to be launched process collection;By display interface receive user for process to be launched process collection in choose into The unloading command of journey.
Optionally, in some embodiments of the invention, processor 980 also has following functions:According to process to be launched Process collection in each process significance level, determine to allow the process being unloaded;Unloaded for the process generation for allowing to be unloaded Carry instruction.
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, details are not described herein.
In several embodiments provided herein, 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 Division, is only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing 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 mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit Close or communicate to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple In network unit.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 present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products Embody, which is stored in a storage medium, including some instructions are used so that a computer Equipment(Can be personal computer, server, or network equipment etc.)Perform the complete of each embodiment the method for the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding State the technical solution described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical solution.

Claims (10)

  1. A kind of 1. method for optimization of starting shooting, it is characterised in that including:
    Obtain the process collection of background process to be launched during this start;
    Obtain the unloading command to target process in the process collection;
    The unloading command is performed, unloads the target process, the process collection updated, in the process collection of the renewal Process next time start shooting when be activated.
  2. 2. according to the method described in claim 1, it is characterized in that, according to the unloading command, the target process is unloaded, is wrapped Include:
    When the configuration file of the target process is located under system directory, the unloading is referred to by changing the unloading command Order increase authority;
    The unloading command after increase authority is performed, unloads the target process.
  3. 3. method according to claim 1 or 2, it is characterised in that the method further includes:
    Obtain the halt instruction to the target process;
    The halt instruction is performed, stops the target process.
  4. 4. method according to claim 1 or 2, it is characterised in that described to determine process to be launched during start next time After process collection, the method further includes:
    The process collection of process to be launched when starting shooting described in display next time;
    The unloading command obtained to target process in the process collection, including:
    User is received for the unloading command that process is chosen in the process collection of the process to be launched by display interface.
  5. 5. method according to claim 1 or 2, it is characterised in that the acquisition is to target process in the process collection Unloading command, including:
    According to the significance level of each process in the process collection of the process to be launched, determine to allow the process being unloaded;
    Unloading command is generated for the process for allowing to be unloaded.
  6. A kind of 6. terminal, it is characterised in that including:
    First acquisition module, the process collection of background process to be launched during for obtaining this start;
    Second acquisition module, for obtaining the unloading command to target process in the process collection;
    Unload module, for performing the unloading command, unloads the target process, the process collection updated, it is described more Process in new process collection is activated when starting shooting next time.
  7. 7. terminal according to claim 6, it is characterised in that the Unload module, including:
    Unit is changed, for when the configuration file of the target process is located under system directory, referring to by changing the unloading Order increases authority to the unloading command;
    Unloading unit, for performing the unloading command after increasing authority, unloads the target process.
  8. 8. the terminal according to claim 6 or 7, it is characterised in that
    Second acquisition module, is additionally operable to obtain the halt instruction to the target process;
    The terminal further includes:
    Stopping modular, for performing the halt instruction, stops the target process.
  9. 9. the terminal according to claim 6 or 7, it is characterised in that the terminal further includes:
    Display module, for show it is described start shooting next time when process to be launched process collection;
    Second acquisition module, specifically for receiving process collection of the user for the process to be launched by display interface The unloading command of middle chosen process.
  10. 10. the terminal according to claim 6 or 7, it is characterised in that
    Second acquisition module, specifically for the significance level of each process in the process collection according to the process to be launched, Determine to allow the process being unloaded;Unloading command is generated for the process for allowing to be unloaded.
CN201610956461.5A 2016-10-27 2016-10-27 Startup optimization method and terminal Active CN107992334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610956461.5A CN107992334B (en) 2016-10-27 2016-10-27 Startup optimization method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610956461.5A CN107992334B (en) 2016-10-27 2016-10-27 Startup optimization method and terminal

Publications (2)

Publication Number Publication Date
CN107992334A true CN107992334A (en) 2018-05-04
CN107992334B CN107992334B (en) 2021-06-01

Family

ID=62028452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610956461.5A Active CN107992334B (en) 2016-10-27 2016-10-27 Startup optimization method and terminal

Country Status (1)

Country Link
CN (1) CN107992334B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163150A (en) * 2010-02-24 2011-08-24 腾讯科技(深圳)有限公司 System starting method and apparatus
CN102981863A (en) * 2011-09-07 2013-03-20 奇智软件(北京)有限公司 Management method and device of starting up projects
CN103150248A (en) * 2013-03-22 2013-06-12 腾讯科技(深圳)有限公司 Method and device for measuring and calculating startup time consumption
CN103345408A (en) * 2013-06-26 2013-10-09 深圳市金立通信设备有限公司 Terminal starting-up accelerating method and terminal
CN105094280A (en) * 2015-07-07 2015-11-25 北京奇虎科技有限公司 Method, apparatus and system for improving standby performance of intelligent terminal
CN105468480A (en) * 2014-08-13 2016-04-06 腾讯科技(深圳)有限公司 Startup management method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163150A (en) * 2010-02-24 2011-08-24 腾讯科技(深圳)有限公司 System starting method and apparatus
CN102981863A (en) * 2011-09-07 2013-03-20 奇智软件(北京)有限公司 Management method and device of starting up projects
CN103150248A (en) * 2013-03-22 2013-06-12 腾讯科技(深圳)有限公司 Method and device for measuring and calculating startup time consumption
CN103345408A (en) * 2013-06-26 2013-10-09 深圳市金立通信设备有限公司 Terminal starting-up accelerating method and terminal
CN105468480A (en) * 2014-08-13 2016-04-06 腾讯科技(深圳)有限公司 Startup management method and device
CN105094280A (en) * 2015-07-07 2015-11-25 北京奇虎科技有限公司 Method, apparatus and system for improving standby performance of intelligent terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MAC电报: "轻松管理Mac OS X的开机启动项", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/73C3CE28DEE1A1E50343D9F8.HTML》 *
龙铳让刃_662: "Mac OS启动服务优化高级篇(转)", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_54447C900101B47X.HTML》 *

Also Published As

Publication number Publication date
CN107992334B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN105278937B (en) A kind of method and device showing pop-up box message
US10186244B2 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
CN107329985B (en) Page collection method and device and mobile terminal
CN106227588A (en) The creation method of a kind of multi-instance object, device and mobile terminal
CN103631625B (en) A kind of method of data acquisition, user terminal, server and system
CN103473163A (en) Application program detection method and device
CN106843868B (en) Multi-account login method and device and mobile terminal
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN107832375A (en) Control method, terminal and the server that picture is shown
CN108090345A (en) Linux system external command performs method and device
CN106506815A (en) A kind of application enables method and relevant device
WO2021114357A1 (en) Application program optimization method, apparatus, storage medium, and electronic device
CN104966205A (en) Object draw-off method and apparatus
CN104424203A (en) Method and system for viewing photo sharing state in mobile device
CN104123210A (en) Method, device and system for testing performance of browser
CN106484615B (en) The method and apparatus of record log
US20200125369A1 (en) Method, device, and terminal for accelerating startup of application
CN105653394A (en) Data backup method and device
CN108132844A (en) Plug-in download method and device
CN104951324A (en) Method and device for acquiring application calling relation table
CN105302589A (en) Method and apparatus for acquiring uninstallation information
CN103729283A (en) System log output method and device and terminal device
CN107943687B (en) Equipment sharing method, device, server and storage medium
CN106055615A (en) Method, device and system for obtaining music information
CN106933626B (en) Application association method and device

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