Disclosure of Invention
In view of this, the technical problem to be solved by the present invention is to provide a management method and apparatus based on startup items, which adjust the startup sequence or time of the startup items, so as to delay the startup of the startup items occupying more system resources or unnecessarily, and at the same time, ensure that the essential startup items are started normally and preferentially, without affecting the stability of the system operation, shorten the time from the system startup to the computer use of the user, and directly feel that the system startup is faster and the user experience is very good.
In order to solve the technical problem, the invention discloses a management method based on a startup item, which comprises the following steps: acquiring starting item setting when the operating system is started; adjusting the startup item settings causes one or more of the startup items to be delayed in startup.
Further, adjusting the launch item settings includes the following policies: the method comprises the steps that after the starting item settings of each terminal are collected and counted by a cloud server, starting items with the starting duration exceeding a threshold, starting items causing operating system abnormity and starting items stably related to an operating system are analyzed, so that the priority of each starting item is obtained, and the one or more starting items to be started in a delayed mode at present are determined; accepting a user indication to determine the one or more starting items to be delayed for starting; or, determining the one or more starting items to be started in a delayed manner according to the monitored resource occupation condition during system starting.
Further, reading a configuration file of a starting item in an operating system to acquire the setting of the starting item when the operating system is started; and/or scanning a plug-in registration file in the operating system to acquire a starting item setting for calling the starting plug-in when the operating system is started.
Further, the starting item of the delayed starting does not include a starting item essential for maintaining the system to operate.
Further, when the setting of the starting items is adjusted, the delay time of the one or more starting items is set so that the one or more starting items start at the expected time.
Further, when the setting of the startup items is adjusted, the startup sequence among the startup items is adjusted by setting the delay time of each startup item so as to delay the startup of the one or more startup items.
In order to solve the above technical problem, the present invention also discloses a management device based on the startup item, including: the acquisition module is used for acquiring the starting item setting when the operating system is started; and the setting module is used for adjusting the setting of the starting items to enable one or more starting items to be started in a delayed mode.
Further, the triggering module is used for determining the one or more starting items to be started in a delayed manner according to the starting item priorities obtained by collecting, counting and analyzing the starting item settings of each terminal by the cloud server; the one or more starting items are also used for accepting a user instruction to determine to delay starting; and the method is also used for determining the one or more starting items to be started in a delayed manner according to the monitored resource occupation condition during system starting.
Further, the obtaining module is further configured to read a configuration file of a boot item in an operating system to obtain a setting of the boot item when the operating system is started, and/or scan a registration file of a plug-in the operating system to obtain a setting of the boot item when the operating system is started and the plug-in is called.
Further, the setting module, the delayed start-up item, does not include a start-up item essential to maintain system operation.
Further, the setting module is further configured to set a delay time of the one or more startup items to enable the one or more startup items to be started at a desired time, and/or adjust a starting sequence between the startup items to enable the one or more startup items to be started with a delay by setting a delay time of each startup item.
Compared with the prior scheme, the invention has the following technical effects:
1) the time from system startup to computer use is shortened for the user, the system startup is directly felt to be faster, and the user experience is very good;
2) while the user experience is ensured, because deep operation generally does not exist when the user just starts to operate, the delayed starting of the starting item does not influence the use of the user;
3) the part of the starting item which is started first can ensure that the system runs stably, and the starting item is finally and completely started to ensure that the system function is not weakened.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided in conjunction with the drawings and examples, so that how to implement the technical means for solving the technical problems and achieving the technical effects of the present invention can be fully understood and implemented.
The core concept of the invention is that: acquiring starting item setting when the operating system is started; adjusting the startup item settings causes one or more of the startup items to be delayed in startup.
The following describes the scenario and design intent of the present invention.
When the number of the startup items is large and there are a large number of startup items consuming system resources, it may be considered to adjust the startup sequence or time of the startup items at this time.
The startup items are divided into a startup item essential for system operation and other startup items, and the other startup items may include a startup item which is not essential but important, a startup item preferred by a user, and the like. The startup items essential for system operation are started when the system is started, other startup items can be set according to a strategy, the startup items consuming more system resources or startup item programs which cannot be used immediately after the system startup user finishes login are started in a delayed mode, and the startup items are started in the background while the user starts to operate after logging in the desktop.
Because deep operation generally cannot exist when a user just starts to operate, other startup items started later in the startup items cannot influence the use of the user, meanwhile, the essential startup items started first in the startup items can ensure that the system runs stably, all the startup items are finally and completely started, the function of the system is not weakened, the time from the startup of the system to the use of a computer by the user is shortened, the system is started quickly in direct feel, and the user experience is very good.
The overall embodiment of the present invention will be described below with reference to an example. As shown in fig. 1, the following operations are performed:
step 100, acquiring a starting item setting when the operating system is started;
reading a configuration file of a starting item in an operating system to acquire the setting of the starting item when the operating system is started; and/or scanning a plug-in registration file in an operating system to acquire a starting item setting for calling a starting plug-in when the operating system is started;
step 200, adjusting the setting of the starting items to enable one or more starting items to be started in a delayed mode; the starting item of the delayed starting does not comprise a starting item essential for maintaining the system to run;
generally speaking, it is reasonable to have the startup item started while the user starts to operate after logging on the desktop, and it is also a delay target of the present invention, and such startup is generally performed in the background, and the user experience is better while the user use is not affected.
In step 200, adjusting the setting of the start item may include one or more of the following policies:
1) the cloud server collects and counts the starting item settings of each terminal, analyzes and obtains which starting items occupy longer starting time (exceed a threshold), which starting items cause operating system abnormity and which starting items are preferentially started to be beneficial to operating system stability by integrating the setting modes or setting habits of most terminal users, finally determines the priority of each starting item, and determines one or more starting items needing delayed starting on the current local terminal according to the priority locally so as to automatically adjust the starting settings of the starting items and prompt the user;
2) for some advanced users with a certain professional foundation, the starting setting of the starting item can be customized by the user: firstly, locally displaying the starting item settings to a user, receiving a user instruction, and determining one or more starting items needing to be started in a delaying manner by user definition so as to automatically adjust the starting settings of the starting items;
3) when the resource occupation exceeds a threshold when the system is monitored to be started, determining one or more starting items needing delayed starting, automatically adjusting one or more starting items with larger resource occupation in other starting items except the starting items essential for maintaining the system to be started into delayed starting and prompting a user so as to enable the starting item setting to be effective when the system is started next time;
or, when it is monitored that the resource occupation exceeds a threshold when the system is started, determining one or more starting items needing delayed starting, closing one or more starting items with larger resource occupation in other starting items except the starting items essential for maintaining the system operation, automatically adjusting the starting items to delayed starting and prompting a user, so that the starting item setting can be effectively applied when the system is started.
In step 200, adjusting the settings of the startup items to make one or more startup items delay startup can be implemented by:
when the setting of the starting items is adjusted, the one or more starting items are started at a desired time by setting the delay time of the one or more starting items;
when the setting of the starting items is adjusted, the starting sequence among the starting items is adjusted by setting the delay time of each starting item so as to delay the starting of the one or more starting items.
The present invention is described below with an application example, which takes a mobile phone a equipped with android system as an example.
When the mobile phone a is in an operating state, reading a configuration file of a startup item in an android system of the mobile phone a to obtain a setting of the startup item when the operating system is started, where the setting includes the following startup items (where english is understood to be a name and a code of a certain service, and does not have a special technical meaning): alarm clock, Google Talk service, information, network location, calendar, instant messaging, calendar storage, Google pinyin input method, Google Partner Setup, Gmail storage, Google map, advanced settings, etc.; the starting items are all started when the android system is started, and the starting items are large in number, so that the mobile phone of a user is very slow to start, and a long time is needed for starting operation.
After the cloud server collects and counts the starting item settings of the mobile phones of the android systems administered by the cloud server, the cloud server analyzes and finds that: an alarm clock, Google Talk service, information and a network place are indispensable starting items of the android system, and many problems can be caused if the android system is not started; the starting items such as calendar, instant message, calendar storage, Google Partner Setup, Gmail storage, advanced settings, etc. have little effect on the operation of the system even if not started, so that the start-up can be delayed or even not started at all; the Google Pinyin input method and the Google map are functions frequently used by users, if the Google map is not started, the users cannot use the functions, but the Google Pinyin input method and the Google map can be started when the system is not started and is delayed for a period of time or even started when the user uses the Google map, wherein statistics shows that the use frequency of the Google Pinyin input method is higher than that of the Google map by a certain proportion.
Thereby, the priority of each starting item is obtained: the alarm clock, the Google Talk service, the information and the network place have the highest priority; the priorities of the calendar, the instant message, the calendar storage, the Google PartnerSetup, the Gmail storage and the advanced setting are lowest; the priority of the Google Pinyin input method and the Google map is between the two, but the priority of the Google Pinyin input method is higher than that of the Google map.
And automatically adjusting the starting setting of the starting item in the local mobile phone A according to the priority, so that the starting item which is indispensable for the android system with the highest priority is started preferentially, the other starting items with the low priority are started after delay, and the functions which may be used by the user can be set to be started at a specific time. Setting an alarm clock, a Google Talk service, information and a network place to be started along with the starting of the system; the delay time of the Google Pinyin input method is set to be 15 seconds (30 seconds later than the reference time when the system is started), and the delay time cannot be too long because the user probably uses the input function soon after starting the system; the delay time of the Google map is set to 30 seconds, because the function belongs to deeper operation, the function is not used soon after the user is generally started, so the function can be started relatively later when the user performs other operations. Calendar, instant messaging, calendar store, Google Partner Setup, Gmail store, advanced settings set to off. The user is prompted with the above settings.
After a user operates the mobile phone A to restart, the alarm clock, the Google Talk service, the information and the network place are started along with the system start when the system starts, because the number of starting items is small, the user can check short messages in a phone book or an inbox quickly, when the user performs the operations, the Google Pinyin input method is started at the background, then the user can edit the short messages through the input method, the use of the user is not influenced, and finally the Google map is started.
The application example is the setting of the starting item according to the priority counted by the cloud server, and can also be defined by a user or a system resource detection mode. Of course, the present invention can also be implemented by a combination of two or three of priority, user-defined or detection system resources, which is not described in detail any more, and various combinations conforming to the concept of the present invention also belong to the protection scope of the present invention.
The apparatus of the present invention is described below with reference to an embodiment. As shown in fig. 2, includes: the device comprises an acquisition module 1, a trigger module 2 and a setting module 3.
The acquisition module 1 is used for acquiring the starting item setting when the operating system is started; specifically, the method is used for reading a configuration file of a boot item in an operating system to obtain the setting of the boot item when the operating system is started, and/or scanning a registration file of a plug-in the operating system to obtain the setting of the boot item when the operating system calls a boot plug-in when the operating system is started.
The triggering module 2 is used for determining the one or more starting items to be started in a delayed manner according to the starting item priorities obtained by collecting and counting the starting item settings of each terminal through the cloud server and analyzing the starting item settings; the one or more starting items are also used for accepting a user instruction to determine to delay starting; and the method is also used for determining the one or more starting items to be started in a delayed manner according to the monitored resource occupation condition during system starting.
A setting module 3, configured to adjust the startup item setting to delay startup of the determined one or more startup items, where the delayed startup items do not include a startup item essential to maintain system operation; specifically, the one or more startup items are started at a desired time by setting a delay time of the one or more startup items, and/or the startup sequence between the startup items is adjusted to delay the startup of the one or more startup items by setting a delay time of each startup item.
The device corresponds to the characteristics of the method, and the defects can be referred to the management method based on the starting items.
The foregoing description shows and describes several preferred embodiments of the invention, but as aforementioned, it is to be understood that the invention is not limited to the forms disclosed herein, but is not to be construed as excluding other embodiments and is capable of use in various other combinations, modifications, and environments and is capable of changes within the scope of the inventive concept as expressed herein, commensurate with the above teachings, or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.