CN108121577A - A kind of method, equipment and mobile terminal for being optimized to system operation - Google Patents
A kind of method, equipment and mobile terminal for being optimized to system operation Download PDFInfo
- Publication number
- CN108121577A CN108121577A CN201711483488.8A CN201711483488A CN108121577A CN 108121577 A CN108121577 A CN 108121577A CN 201711483488 A CN201711483488 A CN 201711483488A CN 108121577 A CN108121577 A CN 108121577A
- Authority
- CN
- China
- Prior art keywords
- service
- monitor
- application
- user
- core system
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Abstract
The invention discloses a kind of method, equipment and mobile terminal for being optimized to system operation, wherein method includes:Loading in response to multiple cores system service is completed, to prepare each distribution service monitor in multiple non-core system services of loading;To prepare each distribution in the multiple users started application using monitor, and application control strategy is set for the application monitor;The operation of user application is monitored, to be determined to trigger the trigger condition for carrying out resource reclaim according to application control strategy using monitor;After the application monitor carries out resource reclaim according to application control strategy, resource reclaim state notifying that the user is applied gives the service monitor of associated non-core system service;And when all users associated with the non-core system service are applied in resource reclaim state, promote the non-core system service out of service using the service monitor.
Description
Technical field
It is used for what system operation was optimized the present invention relates to data control field, and more particularly, to a kind of
Method, equipment and mobile terminal.
Background technology
Being widely popularized and applying with smart machine, the smart machine of loading operation system is also increasingly entering people
Life.With the popularization and development of the Internet, applications, mobile application is increasing for people’s lives influence, all kinds of to answer
Quantity is also growing day by day.Starting up's program of prior art operation system is, first to system service or application scanning
It collects and is registered, according still further to the registration order of system service or application, system service or application are started in order.
With the more and more extensive use of mobile terminal, people increasingly get used to realizing using mobile terminal various
The processing of business.For example, by mobile terminal to order the goods, book a train ticket, assigned aircraft ticket, predetermined restaurant or establish about
Vehicle business etc. has become a part for people's daily life.In general, it needs to carry out above-mentioned activity by mobile terminal in user
When, it usually needs run corresponding software or application.Also, after corresponding software or application start, it is necessary to by software or
The interactive interface of application comes input validation information or sequence information, so as to which finishing service confirms.
Since the application and service that smart machine loads is more and more, the load of system also correspondingly becomes increasing.
Certain applications and service in smart machine can not be closed in time, and certain applications and service also can in running background
Occupy substantial amounts of system resource.In this case, the speed of service of smart machine internal operating system is slower and slower, to user's
Using causing inconvenience.
The content of the invention
To solve the above-mentioned problems, a kind of method for being optimized to system operation is provided, the described method includes:
Loading in response to multiple cores system service is completed, every in multiple non-core system services of loading to prepare
A distribution service monitor, the shape that the service monitor is applied for monitoring user associated with non-core system service
State;
To prepare each distribution in the multiple users started application using monitor, and set for the application monitor
Put application control strategy;
It is monitored using the operation applied using monitor to the user, to be determined to trigger the application
Monitor carries out the trigger condition of resource reclaim according to application control strategy;
After the application monitor carries out resource reclaim according to application control strategy, the resource that the user is applied is returned
Receive service monitor of the state notifying to associated non-core system service;And
When all users associated with the non-core system service are applied in resource reclaim state, using described
Service monitor promotes the non-core system service out of service.
Wherein by optimization service to prepare each distribution service monitor in multiple non-core system services of loading, with
And by the optimization service to prepare each distribution in the multiple users started application using monitor, and by the optimization
It services and application control strategy is set for the application monitor.
The establishment in response to user class initial processes is further included, multiple system services are being registered according to registration order
It will be registered before for the optimization service optimized to system operation, so that when servicing loading procedure and starting first
Load the optimization service.
Before the establishment of the user class initial processes, further include:It is powered in response to user equipment, chip guide function
Bootstrap is read from read-only memory and by the boot program loads into memory.
After by the boot program loads into memory, the bootstrap is to running the required storehouse of kernel program
It is initialized with hardware device.
After the initialization, kernel program is run, the kernel program sets caching, sets protected storage, sets
List of schedules and load driver are put, and creates user class initial processes.
It further includes basis and carrys out the control message of self-optimizing service dynamically to change the application control plan using monitor
Slightly.
When the arbitrary core system service stopping operation in the service of the multiple core system, it can not realize that system is normal
Run required basic function.
When the arbitrary non-core system service in the multiple non-core system service is out of service, can not realize by with
The function that the arbitrary non-core system service is provided, but can realize the required basic function of system normal operation.
The service monitor includes for monitoring the state of user's application associated with non-core system service:It is described
Service monitor determines the startup of user's application associated with non-core system service, and the associated user to be started should
With creation state indicator, the state of the associated user started application is indicated using positioning indicator.
The state of user's application includes:Front stage operation, running background and resource reclaim.
The application control strategy includes:Start resource reclaim action immediately, delay scheduled time starts resource reclaim and moves
Make and the predetermined time starts resource reclaim action in advance.
The trigger condition includes:Run time expires, the running background time expires and malicious application mark.
When trigger condition expires for run time, the application monitor starts resource reclaim to user's application and moves immediately
Make or delay scheduled time starts resource reclaim action.
When trigger condition expires for the running background time, the application monitor starts resource to user's application and returns immediately
Receipts act.
When trigger condition marks for malicious application, the application monitor starts resource reclaim to user's application and moves immediately
Make or the predetermined time starts resource reclaim action in advance.
The optimization service based on subscriber asks to generate the control message.
The service monitoring of associated non-core system service is given in the resource reclaim state notifying for applying the user
After device, the status modifier that associated positioning indicator is applied with user is resource reclaim by the service monitor.
When user from front stage operation using running background is switched to, the service monitor will be associated with user's application
The state of positioning indicator be revised as running background from front stage operation.
According to another aspect of the present invention, a kind of equipment for being optimized to system operation, the equipment bag are provided
It includes:
Allocation unit, the loading in response to multiple cores system service are completed, to prepare multiple non-core systems of loading
Each distribution service monitor in service, the service monitor is for monitoring user associated with non-core system service
The state of application;Each distribution to prepare in the multiple users started application is monitored using monitor, and for the application
Device sets application control strategy;
Monitoring unit is monitored using the operation applied using monitor to the user, to be determined to touch
The trigger condition for sending out described using monitor according to application control strategy progress resource reclaim;
Notification unit, should by the user after application monitor carries out resource reclaim according to application control strategy
Resource reclaim state notifying gives the service monitor of associated non-core system service;And
Control unit, when all users associated with the non-core system service are applied in resource reclaim state
When, promote the non-core system service out of service using the service monitor.
The allocation unit promotes optimization service to prepare each distribution clothes in multiple non-core system services of loading
Business monitor and promote the optimization service to prepare each distribution in the multiple users started application using monitor,
And promote the optimization service that application control strategy is set for the application monitor.
Further include initialization unit, in response to the establishment of user class initial processes, according to registration order to multiple systems
Service will register before being registered for the optimization service optimized to system operation, so that being loaded in service
The optimization service is loaded when journey starts first.
The initialization unit is powered in response to user equipment, and chip guide function reads bootstrap from read-only memory
And by the boot program loads into memory.
The initialization unit by the boot program loads into memory after, promote the bootstrap in operation
The required storehouse of core program and hardware device are initialized.
After the initialization unit carries out the initialization, kernel program is run, the kernel program sets caching, sets
It puts protected storage, list of schedules and load driver is set, and create user class initial processes.
The allocation unit dynamically changes the application using monitor according to the control message for carrying out self-optimizing service
Control strategy.
When the arbitrary core system service stopping operation in the service of the multiple core system, it can not realize that system is normal
Run required basic function.
When the arbitrary non-core system service in the multiple non-core system service is out of service, can not realize by with
The function that the arbitrary non-core system service is provided, but can realize the required basic function of system normal operation.
The service monitor includes for monitoring the state of user's application associated with non-core system service:It is described
Service monitor determines the startup of user's application associated with non-core system service, and the associated user to be started should
With creation state indicator, the state of the associated user started application is indicated using positioning indicator.
The state of user's application includes:Front stage operation, running background and resource reclaim.
The application control strategy includes:Start resource reclaim action immediately, delay scheduled time starts resource reclaim and moves
Make and the predetermined time starts resource reclaim action in advance.
The trigger condition includes:Run time expires, the running background time expires and malicious application mark.
When trigger condition expires for run time, the application monitor starts resource reclaim to user's application and moves immediately
Make or delay scheduled time starts resource reclaim action.
When trigger condition expires for the running background time, the application monitor starts resource to user's application and returns immediately
Receipts act.
When trigger condition marks for malicious application, the application monitor starts resource reclaim to user's application and moves immediately
Make or the predetermined time starts resource reclaim action in advance.
The optimization service based on subscriber asks to generate the control message.
The service monitoring of associated non-core system service is given in the resource reclaim state notifying for applying the user
After device, the status modifier that associated positioning indicator is applied with user is resource reclaim by the service monitor.
When user from front stage operation using running background is switched to, the service monitor will be associated with user's application
The state of positioning indicator be revised as running background from front stage operation.
According to another aspect of the present invention, a kind of mobile terminal is provided, including or for perform equipment as described above.
Description of the drawings
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by:
Fig. 1 is the flow chart of the method optimized to system operation of embodiment according to the present invention;
Fig. 2 is the logical schematic of the system operation of embodiment according to the present invention;
Fig. 3 is the schematic diagram controlled non-core system service of embodiment according to the present invention;
Fig. 4 is the schematic diagram controlled user's application operation of embodiment according to the present invention;And
Fig. 5 is the structure diagram of the equipment optimized to system operation of embodiment according to the present invention.
Specific embodiment
Exemplary embodiments of the present invention are introduced referring now to attached drawing, however, the present invention can use many different shapes
Formula is implemented, and is not limited to the embodiment described herein, and to provide these embodiments be to disclose at large and fully
The present invention, and fully convey the scope of the present invention to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawings
Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attached
Icon is remembered.
Unless otherwise indicated, term used herein has person of ordinary skill in the field (including scientific and technical terminology)
It is common to understand meaning.Further it will be understood that with the term that usually used dictionary limits, be appreciated that and its
The linguistic context of association area has consistent meaning, and is not construed as Utopian or overly formal meaning.
Fig. 1 is the flow chart of the method 100 optimized to system operation of embodiment according to the present invention.In core system
It unites after the completion of the loading of service, method 100 distributes service monitor, the clothes to prepare each non-core system service of loading
Monitor be engaged in for monitoring the state of user's application associated with non-core system service.Method 100 is more to prepare to start
Each distribution in a user's application sets application control strategy using monitor, and for the application monitor.Using institute
It states the operation for applying the user using monitor to monitor, to be determined to trigger the application monitor according to application
Control strategy carries out the trigger condition of resource reclaim and is returned when the application monitor carries out resource according to application control strategy
After receipts, resource reclaim state notifying that the user is applied gives the service monitor of associated non-core system service.When
When all users associated with the non-core system service are applied in resource reclaim state, method 100 utilizes the clothes
Business monitor promotes the non-core system service out of service.
Method 100 is since step 101 place.In step 101, the loading in response to multiple cores system service is completed, and is
Prepare each distribution service monitor in multiple non-core system services of loading, the service monitor for monitor with it is non-
Core system services the state of associated user's application.Before step 101, in response to the establishment of user class initial processes,
Before being registered according to registration order to multiple system services by for the optimization that system operation optimizes is serviced into
Row registration, so that loading the optimization service first when servicing loading procedure and starting.It is preparation loading by optimization service
Each distribution service monitor in multiple non-core system services.
Before the establishment of the user class initial processes, further include:It is powered in response to user equipment, chip guide function
Bootstrap is read from read-only memory and by the boot program loads into memory.It is arrived by the boot program loads
After in memory, the bootstrap initializes the required storehouse of operation kernel program and hardware device.Described first
After beginningization, kernel program is run, the kernel program sets caching, sets protected storage, sets list of schedules and add
Driving is carried, and creates user class initial processes.
The registration order of the application system service, is core system service first, followed by non-core system service and use
It applies at family.Core system service is, for example,:Startup power supply manager, establishment activity Activity managers, start phone registration,
It is system process to start package manager, set Activity management services, startup context manager, activation system content provide
Person Context Providers, start battery service, start time control device, starting-window manager etc..Non-core system clothes
Business is, for example, the service of starting state column, starts network state service, starts network connection service, starts notification manager, starts
Equipment storage monitoring service starts location manager, starts search service, start shear plate service, start enrolled for service, start
Wallpaper service starts audio service, starts headphone monitor etc..
When the arbitrary core system service stopping operation in the service of the multiple core system, it can not realize that system is normal
Run required basic function.When the arbitrary non-core system service in the multiple non-core system service is out of service
When, it can not realize the function by being provided with the arbitrary non-core system service, but can realize needed for system normal operation
The basic function wanted.That is, the basic function provided by multiple non-core system services.The service monitor for monitor with
The state of the non-core associated user's application of system service includes:The service monitor determines and non-core system service phase
The startup of associated user's application, the associated user to be started utilize positioning indicator using creation state indicator
To indicate the state of the associated user started application.The state of user's application includes:Front stage operation, running background
And resource reclaim.In order to be controlled (for example, operation suspension) non-core system service, it is necessary to determine dependent on this
User's application of non-core system service.If there is the user's application for depending on this non-core system service is currently running (bag
Include front stage operation or running background), then carrying out operation suspension to this non-core system service can cause user's application to be forced
It interrupts.
In step 102, answered to prepare each distribution in the multiple users started application using monitor, and to be described
With monitor, application control strategy is set.It should for each distribution prepared in the multiple users started application by the optimization service
Application control strategy is set for the application monitor with monitor, and by the optimization service.It is used to supervise using monitor
The state of user's application is controlled, and the state of user's application includes:Front stage operation, running background and resource reclaim.Before wherein
Platform operation just in the front stage operation of user equipment (or mobile terminal), that is, occupies display interface for expression application.Running background
It represents that application is switched to the running background of user equipment (or mobile terminal), that is, is not take up display interface.Resource reclaim is used for table
Show to apply and be over operation, and enter resource reclaim process.
In addition, the application control plan using monitor is dynamically changed according to the control message for carrying out self-optimizing service
Slightly.The optimization service can generate the control message according to user's request.Alternatively, optimizing service can be according to being
System sets to generate the control message.Wherein application control strategy includes:Start resource reclaim action, the pre- timing of delay immediately
Between start resource reclaim action and in advance the predetermined time start resource reclaim action.Wherein starting resource reclaim action immediately is
When referring to for user using being controlled, start resource reclaim action (operation for being immediately finished user's application) immediately.Delay is pre-
When startup resource reclaim action of fixing time refers to be controlled for user's application, than the predetermined resource reclaim action launching time
Delay scheduled time is acted to start resource reclaim (for example, user's application terminates to restart resource reclaim for a period of time after running
Action).When the resource reclaim action of predetermined time startup in advance refers to be controlled for user's application, than predetermined resource reclaim
The action launching time advance predetermined time starts resource reclaim action and (for example, user's application does not terminate also to run, starts resource
Recycling action means to be immediately finished operation and starts resource reclaim action).In general, acquiescence starts what resource reclaim acted
Time is after user's application terminates operation.Immediately start resource reclaim action, delay scheduled time start resource reclaim action with
And the predetermined time starts the time of resource reclaim action on the basis of the time for starting resource reclaim action given tacit consent in advance.Start
Resource reclaim action means to terminate the operation of user's application.
It in step 103, is monitored using the operation applied using monitor to the user, to be determined to touch
The trigger condition for sending out described using monitor according to application control strategy progress resource reclaim.The trigger condition includes:Operation
Time expires, the running background time expires and malicious application mark.Wherein run time, which expires, refers to that user is applied to and finishes
The time of Shu Yunhang.The running background time, which expires, refers to that user has reached run time threshold using the time for being switched to running background
The time of value.In addition, when the safety detection service detection in user equipment (or mobile terminal) to user is applied as malicious application
When, add malicious application mark for the malicious application.
When trigger condition expires for run time, the application monitor starts resource reclaim to user's application and moves immediately
Make or delay scheduled time starts resource reclaim action.When trigger condition expires for the running background time, the application monitoring
Device starts resource reclaim action immediately to user's application.When trigger condition marks for malicious application, the application monitor pair
User's application starts resource reclaim action immediately or the predetermined time starts resource reclaim action in advance.
It, should by the user after application monitor carries out resource reclaim according to application control strategy in step 104
Resource reclaim state notifying gives the service monitor of associated non-core system service.In order to non-core system service
It is controlled (for example, operation suspension), it is necessary to determine that the user dependent on this non-core system service applies.Using monitoring
Device regularly, cyclically or based on event triggering leads to the state applied dependent on the user of this non-core system service
Know and give this non-core system service.As described above, the state of user's application includes:Front stage operation, running background and resource
Recycling.Particularly, after the application monitor carries out resource reclaim according to application control strategy, money that the user is applied
Source recycling state notifying gives the service monitor of associated non-core system service.
In step 105, when all users associated with the non-core system service are applied in resource reclaim state
When, promote the non-core system service out of service using the service monitor.It is additionally included in apply the user
After resource reclaim state notifying is to the service monitor of associated non-core system service, the service monitor will be with user
Status modifier using associated positioning indicator is resource reclaim.User is additionally included in apply after front stage operation is switched to
When platform is run, the service monitor will apply the state of associated positioning indicator with user after front stage operation is revised as
Platform is run.
In order to be controlled (for example, operation suspension) non-core system service, it is necessary to determine dependent on this non-core
User's application of heart system service.If there is the user's application for depending on this non-core system service is currently running (including preceding
Platform is run or running background), then carrying out operation suspension to this non-core system service can cause user's application to be forced to interrupt.
Therefore, when all users associated with the non-core system service are applied in resource reclaim state, can utilize
The service monitor promotes the non-core system service out of service.
Fig. 2 is the logical schematic of the system operation of embodiment according to the present invention.In response to user class initial processes
It creates, mobile terminal 200 will be used to carry out system operation before multiple system services are registered according to registration order
The optimization service of optimization is registered, so that loading the optimization service first when servicing loading procedure and starting.Described
Before the establishment of user class initial processes, further include:It is powered in response to user equipment, chip guide function is read from read-only memory
Take bootstrap and by the boot program loads into memory.It is described after by the boot program loads into memory
Bootstrap initializes the required storehouse of operation kernel program and hardware device.After the initialization, in operation
Core program, the kernel program sets caching, sets protected storage, sets list of schedules and load driver, and creates
Build user class initial processes.
Service and the boot sequence applied are:Core system service 201 first, followed by non-core system service 202, with
And finally be user apply 203.Wherein core system service 201 includes:Core system service 1, core system service 2, core
System service 3 ..., core system service n.Non-core system service 202 includes:Non-core system service 1, non-core system
Service 2, non-core system service 3 ..., non-core system service n.User includes using 203:User applies using 1, user
2nd, user using 3 ..., user apply n.
Core system service is, for example,:Startup power supply manager, establishment activity Activity managers start phone note
Volume starts package manager, sets Activity management services for system process, starts context manager, activation system content
Supplier Context Providers, start battery service, start time control device, starting-window manager etc..Non-core is felt concerned about
System service e.g. the service of starting state column, start network state service, start network connection service, start notification manager,
Starting device storage monitoring service, start location manager, start search service, start shear plate service, start enrolled for service,
Start wallpaper service, start audio service, start headphone monitor etc..User applies:360 security guards, 360 music,
360 mobile phone safes, 360 anti-harassment great masters, 360 mobile phone first-aid kits, 360 hidden strong boxes, 360 mobile phone browsers, 360 search,
360 mobile phone assistant, 360 stores, 360 flow bodyguards, 360 weather, Alipay, wechat, the navigation of high moral etc..
Fig. 3 is the schematic diagram controlled non-core system service of embodiment according to the present invention.In response to multiple
The loading of core system service is completed, and the allocation unit 302 in mobile terminal 300 takes to prepare multiple non-core systems of loading
It is each in business 301, i.e., non-core system service 1, non-core system service 2, non-core system service 3 ..., non-core feels concerned about
System service n, distributes service monitor 303.Service monitor 303 includes:Service monitor SM1, service monitor SM2, service
Monitor SM3 ..., service monitor SMn.Service monitor SM1, service monitor SM2, service monitor SM3 ...,
Each state for monitoring user's application associated with non-core system service in service monitor SMn.
Service monitor SM1, service monitor SM2, service monitor SM3 ..., service monitor SMn is for monitoring
The state of user's application associated with non-core system service includes:Service monitor SM1, service monitor SM2, service prison
Control device SM3 ..., service monitor SMn determine the startup of user's application associated with non-core system service, to be started
Associated user using creation state indicator, indicate that the associated user started applies using positioning indicator
State.The state of user's application includes:Front stage operation, running background and resource reclaim.In order to non-core system
Service is controlled (for example, operation suspension), it is necessary to determine that the user dependent on this non-core system service applies.If
Have and be currently running (including front stage operation or running background) dependent on user's application of this non-core system service, then to this
A non-core system service, which carries out operation suspension, can cause user's application to be forced to interrupt.Therefore when with the non-core system service
When associated all users are applied in resource reclaim state, it can be promoted using the service monitor described non-core
System service is out of service.
Fig. 4 is the schematic diagram controlled user's application operation of embodiment according to the present invention.It is loaded for preparation
Multiple non-core system services in each distribution service monitor after, subject to the allocation unit 402 in mobile terminal 400
The standby multiple users started using each in 401, user using 1, user using 2, user using 3 ..., user apply n
Distribution sets application control strategy using monitor 403, and for the application monitor.Include using monitor 403:Using
Monitor AM1, using monitor AM2, using monitor AM3 ..., using monitor AMn.
Using monitor AM1, using monitor AM2, using monitor AM3 ..., using monitor AMn for monitoring
User is using 1, user using 2, user using 3 ..., user apply the state of n.User is using 1, user using 2, Yong Huying
With 3 ..., user includes using the state of n:Front stage operation, running background and resource reclaim.Wherein front stage operation is used for table
Show using just in the front stage operation of user equipment (or mobile terminal), that is, occupy display interface.Running background represents application switching
To the running background of user equipment (or mobile terminal), that is, it is not take up display interface.Resource reclaim has been tied for expression application
Shu Yunhang, and enter resource reclaim process.
In addition, for example, allocation unit 402 can be changed come dynamic using monitoring according to the control message for carrying out self-optimizing service
Device AM1, using monitor AM2, using monitor AM3 ..., using the application control strategy of monitor AMn.The optimization clothes
Business can generate the control message according to user's request.Alternatively, optimization service can be generated according to system setting
The control message.Wherein application control strategy includes:Start resource reclaim action immediately, delay scheduled time starts resource and returns
Receipts act and the predetermined time starts resource reclaim action in advance.Wherein start resource reclaim action immediately to refer to answer for user
With 1, user using 2, user using 3 ..., user is using n when being controlled, start resource reclaim immediately and act and (ties immediately
The operation of beam user application).Delay scheduled time starts resource reclaim action and refers to apply 2 using 1, user for user, use
Family using 3 ..., user is using n when being controlled, opened than the predetermined resource reclaim action launching time delay predetermined time
Dynamic resource reclaim action (for example, user's application restarts resource reclaim action for a period of time after terminating operation).Pre- timing in advance
Between start resource reclaim action refer to for user using 1, user using 2, user using 3 ..., user controlled using n
When processed, start resource reclaim action (for example, user applies than the predetermined resource reclaim action launching time advance predetermined time
Do not terminate also to run, starting resource reclaim action means to be immediately finished operation and start resource reclaim action).It is in general, silent
The time for the startup resource reclaim action recognized is after user's application terminates operation.Start resource reclaim action immediately, delay makes a reservation for
The startup resource that time starts resource reclaim action and the predetermined time starts the time of resource reclaim action to give tacit consent in advance is returned
On the basis of the time of receipts action.Starting resource reclaim action means to terminate the operation of user's application.
Fig. 5 is the structure diagram of the equipment 500 optimized to system operation of embodiment according to the present invention.In core
After the completion of the loading of heart system service, equipment 500 distributes service monitor, institute to prepare each non-core system service of loading
State the state that service monitor is used to monitor user's application associated with non-core system service.Equipment 500 starts for preparation
Multiple users application in each distribution using monitor, and for the application monitor, application control strategy is set.Profit
Monitored with the operation applied using monitor to the user, be determined to trigger it is described application monitor according to
Application control strategy carries out the trigger condition of resource reclaim and when the application monitor is provided according to application control strategy
After the recycling of source, resource reclaim state notifying that the user is applied gives the service monitoring of associated non-core system service
Device.When all users associated with the non-core system service are applied in resource reclaim state, equipment 500 utilizes institute
Stating service monitor promotes the non-core system service out of service.
Equipment 500 includes:Initialization unit 501, allocation unit 502, monitoring unit 503, notification unit 504 and control
Unit 505.Initialization unit 501 is powered in response to user equipment, and chip guide function is promoted to be read from read-only memory and is guided
Program and by the boot program loads into memory.After by the boot program loads into memory, the guiding journey
The required storehouse of ordered pair operation kernel program and hardware device are initialized.After the initialization, kernel program is run,
The kernel program sets caching, sets protected storage, sets list of schedules and load driver, and creates user class
Initial processes.
The registration order of the application system service, is core system service first, followed by non-core system service and use
It applies at family.Core system service is, for example,:Startup power supply manager, establishment activity Activity managers, start phone registration,
It is system process to start package manager, set Activity management services, startup context manager, activation system content provide
Person Context Providers, start battery service, start time control device, starting-window manager etc..Non-core system clothes
Business is, for example, the service of starting state column, starts network state service, starts network connection service, starts notification manager, starts
Equipment storage monitoring service starts location manager, starts search service, start shear plate service, start enrolled for service, start
Wallpaper service starts audio service, starts headphone monitor etc..
When the arbitrary core system service stopping operation in the service of the multiple core system, it can not realize that system is normal
Run required basic function.When the arbitrary non-core system service in the multiple non-core system service is out of service
When, it can not realize the function by being provided with the arbitrary non-core system service, but can realize needed for system normal operation
The basic function wanted.That is, the basic function provided by multiple non-core system services.The service monitor for monitor with
The state of the non-core associated user's application of system service includes:The service monitor determines and non-core system service phase
The startup of associated user's application, the associated user to be started utilize positioning indicator using creation state indicator
To indicate the state of the associated user started application.The state of user's application includes:Front stage operation, running background
And resource reclaim.In order to be controlled (for example, operation suspension) non-core system service, it is necessary to determine dependent on this
User's application of non-core system service.If there is the user's application for depending on this non-core system service is currently running (bag
Include front stage operation or running background), then carrying out operation suspension to this non-core system service can cause user's application to be forced
It interrupts.
Allocation unit 502 is completed in response to the loading of multiple cores system service, and multiple non-core to prepare loading are felt concerned about
Each distribution service monitor in system service, the service monitor are used to monitor use associated with non-core system service
The state of family application.Before a distribution, initialization unit 501 in response to user class initial processes establishment, according to register it is suitable
The multiple system services of ordered pair will register before being registered for the optimization service optimized to system operation, so that
Load the optimization service first when servicing loading procedure and starting.It is multiple non-core systems of preparation loading by optimization service
Each distribution service monitor in service.
Allocation unit 502 is described to prepare each distribution in the multiple users started application using monitor
Using monitor, application control strategy is set.Each distribution in the multiple users application started by the optimization service for preparation
Application control strategy is set for the application monitor using monitor, and by the optimization service.It is used for using monitor
The state of user's application is monitored, and the state of user's application includes:Front stage operation, running background and resource reclaim.Wherein
Front stage operation just in the front stage operation of user equipment (or mobile terminal), that is, occupies display interface for expression application.It transports on backstage
Row represents that application is switched to the running background of user equipment (or mobile terminal), that is, is not take up display interface.Resource reclaim is used for
It represents that application is over operation, and enters resource reclaim process.
In addition, the application control plan using monitor is dynamically changed according to the control message for carrying out self-optimizing service
Slightly.The optimization service can generate the control message according to user's request.Alternatively, optimizing service can be according to being
System sets to generate the control message.Wherein application control strategy includes:Start resource reclaim action, the pre- timing of delay immediately
Between start resource reclaim action and in advance the predetermined time start resource reclaim action.Wherein starting resource reclaim action immediately is
When referring to for user using being controlled, start resource reclaim action (operation for being immediately finished user's application) immediately.Delay is pre-
When startup resource reclaim action of fixing time refers to be controlled for user's application, than the predetermined resource reclaim action launching time
Delay scheduled time is acted to start resource reclaim (for example, user's application terminates to restart resource reclaim for a period of time after running
Action).When the resource reclaim action of predetermined time startup in advance refers to be controlled for user's application, than predetermined resource reclaim
The action launching time advance predetermined time starts resource reclaim action and (for example, user's application does not terminate also to run, starts resource
Recycling action means to be immediately finished operation and starts resource reclaim action).In general, acquiescence starts what resource reclaim acted
Time is after user's application terminates operation.Immediately start resource reclaim action, delay scheduled time start resource reclaim action with
And the predetermined time starts the time of resource reclaim action on the basis of the time for starting resource reclaim action given tacit consent in advance.Start
Resource reclaim action means to terminate the operation of user's application.
Monitoring unit 503 is monitored using the operation applied using monitor to the user, to be determined to
Trigger the trigger condition for carrying out resource reclaim according to application control strategy using monitor.The trigger condition includes:Fortune
The row time expires, the running background time expires and malicious application mark.Wherein run time, which expires, refers to that user is applied to
Terminate the time of operation.The running background time, which expires, refers to that user has reached run time using the time for being switched to running background
The time of threshold value.It should for malice in addition, being applied when the safety detection service detection in user equipment (or mobile terminal) to user
Used time adds malicious application mark for the malicious application.
When trigger condition expires for run time, the application monitor starts resource reclaim to user's application and moves immediately
Make or delay scheduled time starts resource reclaim action.When trigger condition expires for the running background time, the application monitoring
Device starts resource reclaim action immediately to user's application.When trigger condition marks for malicious application, the application monitor pair
User's application starts resource reclaim action immediately or the predetermined time starts resource reclaim action in advance.
After the application monitor carries out resource reclaim according to application control strategy, notification unit 504 is by the user
The resource reclaim state notifying of application gives the service monitor of associated non-core system service.In order to be taken to non-core system
Business is controlled (for example, operation suspension), it is necessary to determine that the user dependent on this non-core system service applies.Using prison
The state that control device will regularly, cyclically or based on event triggering be applied dependent on the user of this non-core system service
It notifies to give this non-core system service.As described above, the state of user's application includes:Front stage operation, running background and money
It recycles in source.Particularly, after the application monitor carries out resource reclaim according to application control strategy, the user is applied
Resource reclaim state notifying gives the service monitor of associated non-core system service.
When all users associated with the non-core system service are applied in resource reclaim state, control unit
505 promote the non-core system service out of service using the service monitor.It is additionally included in apply the user
After resource reclaim state notifying is to the service monitor of associated non-core system service, the service monitor will be with user
Status modifier using associated positioning indicator is resource reclaim.User is additionally included in apply after front stage operation is switched to
When platform is run, the service monitor will apply the state of associated positioning indicator with user after front stage operation is revised as
Platform is run.
In order to be controlled (for example, operation suspension) non-core system service, it is necessary to determine dependent on this non-core
User's application of heart system service.If there is the user's application for depending on this non-core system service is currently running (including preceding
Platform is run or running background), then carrying out operation suspension to this non-core system service can cause user's application to be forced to interrupt.
Therefore, when all users associated with the non-core system service are applied in resource reclaim state, can utilize
The service monitor promotes the non-core system service out of service.
In addition, present invention additionally comprises for performing the mobile terminal of various systems as described above.
The present invention is described by reference to a small amount of embodiment.However, it is known in those skilled in the art, as
What subsidiary Patent right requirement was limited, except the present invention other embodiments disclosed above equally fall the present invention's
In the range of.
Normally, all terms used in the claims are all solved according to them in the common meaning of technical field
It releases, unless in addition clearly being defined wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened ground
At least one example being construed in described device, component etc., unless otherwise expressly specified.Any method disclosed herein
Step need not all be run with disclosed accurate order, unless explicitly stated otherwise.
Claims (10)
1. a kind of method for being optimized to system operation, the described method includes:
Loading in response to multiple cores system service is completed, to prepare each point in multiple non-core system services of loading
With service monitor, the service monitor is used to monitor the state of user's application associated with non-core system service;
To prepare each distribution in the multiple users started application using monitor, and should for the application monitor setting
Use control strategy;
It is monitored using the operation applied using monitor to the user, is monitored with being determined to trigger the application
Device carries out the trigger condition of resource reclaim according to application control strategy;
After the application monitor carries out resource reclaim according to application control strategy, resource reclaim shape that the user is applied
State is notified to the service monitor of associated non-core system service;And
When all users associated with the non-core system service are applied in resource reclaim state, the service is utilized
Monitor promotes the non-core system service out of service.
2. according to the method described in claim 1, wherein by multiple non-core system services of the optimization service for preparation loading
Each distribution service monitor and should for each distribution prepared in the multiple users started application by the optimization service
Application control strategy is set for the application monitor with monitor, and by the optimization service.
3. according to the method described in claim 2, the establishment in response to user class initial processes is further included, according to registration order
It will be registered before being registered to multiple system services for the optimization service optimized to system operation, so that
Service loading procedure loads the optimization service first when starting.
4. according to the method described in claim 3, before the establishment of the user class initial processes, further include:In response to
Family device power, chip guide function read bootstrap and by the boot program loads to memory from read-only memory
In.
5. according to the method described in claim 4, after by the boot program loads into memory, the bootstrap is to fortune
The required storehouse of row kernel program and hardware device are initialized.
6. a kind of equipment for being optimized to system operation, the equipment includes:
Allocation unit, the loading in response to multiple cores system service are completed, to prepare multiple non-core system services of loading
In each distribution service monitor, the service monitor applies for monitoring user associated with non-core system service
State;To prepare each distribution in the multiple users started application using monitor, and set for the application monitor
Put application control strategy;
Monitoring unit is monitored using the operation applied using monitor to the user, to be determined to triggering institute
State the trigger condition for carrying out resource reclaim according to application control strategy using monitor;
After the application monitor carries out resource reclaim according to application control strategy, the user is applied for notification unit
Resource reclaim state notifying gives the service monitor of associated non-core system service;And
Control unit, when all users associated with the non-core system service are applied in resource reclaim state, profit
Promote the non-core system service out of service with the service monitor.
7. equipment according to claim 6, the allocation unit promotes optimization service to prepare the multiple non-core of loading
Each distribution service monitor in system service and promote the optimization service to prepare in the multiple users started application
Each distribution using monitor, and promote the optimization service that application control strategy is set for the application monitor.
8. equipment according to claim 7, further includes initialization unit, in response to the establishment of user class initial processes,
It will service and carry out for the optimization optimized to system operation before being registered according to registration order to multiple system services
Registration, so that loading the optimization service first when servicing loading procedure and starting.
9. equipment according to claim 8, the initialization unit is powered in response to user equipment, chip guide function from
Read-only memory reads bootstrap and by the boot program loads into memory.
10. equipment according to claim 9, the initialization unit by the boot program loads into memory after,
The bootstrap is promoted to initialize the required storehouse of operation kernel program and hardware device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711483488.8A CN108121577A (en) | 2017-12-29 | 2017-12-29 | A kind of method, equipment and mobile terminal for being optimized to system operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711483488.8A CN108121577A (en) | 2017-12-29 | 2017-12-29 | A kind of method, equipment and mobile terminal for being optimized to system operation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108121577A true CN108121577A (en) | 2018-06-05 |
Family
ID=62232510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711483488.8A Pending CN108121577A (en) | 2017-12-29 | 2017-12-29 | A kind of method, equipment and mobile terminal for being optimized to system operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108121577A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035172A (en) * | 2020-09-03 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Operating system starting method, device, server and storage medium |
CN113778568A (en) * | 2021-09-09 | 2021-12-10 | 网易(杭州)网络有限公司 | Service control method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873385A (en) * | 2010-06-04 | 2010-10-27 | 北京播思软件技术有限公司 | Device and method for entering power-saving mode of hand-held terminal rapidly |
CN103379216A (en) * | 2012-04-27 | 2013-10-30 | 比亚迪股份有限公司 | Mobile terminal and data traffic control method |
CN105101366A (en) * | 2015-05-29 | 2015-11-25 | 努比亚技术有限公司 | Mobile terminal control method and mobile terminal |
CN105955073A (en) * | 2016-04-27 | 2016-09-21 | 乐视控股(北京)有限公司 | Automatic starting method, system and mobile intelligent devices for satellite positioning device |
-
2017
- 2017-12-29 CN CN201711483488.8A patent/CN108121577A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873385A (en) * | 2010-06-04 | 2010-10-27 | 北京播思软件技术有限公司 | Device and method for entering power-saving mode of hand-held terminal rapidly |
CN103379216A (en) * | 2012-04-27 | 2013-10-30 | 比亚迪股份有限公司 | Mobile terminal and data traffic control method |
CN105101366A (en) * | 2015-05-29 | 2015-11-25 | 努比亚技术有限公司 | Mobile terminal control method and mobile terminal |
CN105955073A (en) * | 2016-04-27 | 2016-09-21 | 乐视控股(北京)有限公司 | Automatic starting method, system and mobile intelligent devices for satellite positioning device |
Non-Patent Citations (1)
Title |
---|
FFMXNJM: "Android系统启动顺序(按下power键后所做的工作", 《HTTPS://BLOG.CSDN.NET/FFMXNJM/ARTICLE/DETAILS/70918119》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035172A (en) * | 2020-09-03 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Operating system starting method, device, server and storage medium |
CN113778568A (en) * | 2021-09-09 | 2021-12-10 | 网易(杭州)网络有限公司 | Service control method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102866903B (en) | Background work and foreground work are separated to coupling | |
CN104981774B (en) | Method and system for background control panel configuration selection | |
CN108595919B (en) | Software activation method, device, system and storage medium | |
CN104838360A (en) | Quota-based resource management | |
US10402222B2 (en) | Task migration method and apparatus | |
CN107003891A (en) | Virtual machine switching method, device, electronic equipment and computer program product | |
CN106528210A (en) | Application running method and apparatus | |
CN108121577A (en) | A kind of method, equipment and mobile terminal for being optimized to system operation | |
EP3699760A1 (en) | Information processing method and device, computer device and computer readable storage medium | |
CN106603125B (en) | Method and device for data interaction with Bluetooth equipment | |
CN108196892A (en) | For the method, apparatus and mobile terminal being customized to system starting process | |
CN110750284A (en) | Application quick starting method, terminal and computer readable storage medium | |
CN106649595B (en) | Object pool-based webpage starting acceleration method and device and terminal | |
CN112286414A (en) | Information display method and device, electronic equipment and storage medium | |
CN108549557A (en) | Using storing method, terminal and storage medium | |
CN116483425A (en) | Micro-service gray level edition issuing method, device, equipment and storage medium thereof | |
JP2002169621A (en) | Program download system, terminal device, program download method and storage medium | |
CN113110883B (en) | Starting method, device, equipment and storage medium of block chain system | |
CN114764363B (en) | Prompting method, prompting device and computer storage medium | |
WO2021223672A1 (en) | Near field communication (nfc) method and apparatus, and electronic device | |
CN114490134A (en) | Event processing method, system, device, computer equipment and storage medium | |
CN113868531A (en) | Information acquisition method and device, electronic device and medium | |
CN109408336B (en) | Startup item monitoring method and device, terminal and computer readable medium | |
CN112948817A (en) | Permission control method and device of application program, computer equipment and medium | |
CN106951264A (en) | A kind of available machine time optimization 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180605 |