CN106484538A - A kind of internal memory control method of terminal device, device and terminal device - Google Patents
A kind of internal memory control method of terminal device, device and terminal device Download PDFInfo
- Publication number
- CN106484538A CN106484538A CN201610885211.7A CN201610885211A CN106484538A CN 106484538 A CN106484538 A CN 106484538A CN 201610885211 A CN201610885211 A CN 201610885211A CN 106484538 A CN106484538 A CN 106484538A
- Authority
- CN
- China
- Prior art keywords
- application
- anything
- attending
- terminal device
- user
- 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
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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
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)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of internal memory control method of terminal device, device and terminal device, the method includes:Obtain the main memory usage for applying corresponding application of attending to anything else in terminal device;If the memory usage of the application of attending to anything else is more than the first predetermined threshold value, whether application of attending to anything else described in judgement meets control condition, if meeting, the corresponding process of application of attending to anything else is controlled processing.This programme achieves the smooth operation that user is capable of safeguards system after multiple applications are opened, while also extending the run time of terminal device, saves system resource.
Description
Technical field
The present embodiments relate to computer technology, more particularly to a kind of internal memory control method of terminal device, device and
Terminal device.
Background technology
Android is a kind of operating system of the open source code based on Linux, is mainly used for terminal device (such as:Intelligence
Mobile phone, panel computer) in, completed by Google company and open mobile phone alliance joint development.At present, the own warp of android system
Develop into the maximum operating system platform of field of terminal equipment customer group.
In existing android system, user is generally required while opening multiple identicals in same station terminal equipment
Software application is come the execution that conveniently operates.Such as:When user is using social class software, generally require while opening multiple identicals
Social software carries out the login of different accounts, and then completes the operation to different accounts.With increasing for the number of applications that opens,
The memory source of system will be consumed, and thus cause system smooth can not run, have a strong impact on the experience effect of user.
Content of the invention
The present invention provides a kind of internal memory control method of terminal device, device and terminal device, is being opened with realizing user
It is capable of the smooth operation of safeguards system after multiple applications, while the run time of terminal device is also extended, saves system money
Source.
In a first aspect, a kind of internal memory control method of terminal device is embodiments provided, including:
Obtain the main memory usage for applying corresponding application of attending to anything else in terminal device;
If the memory usage of the application of attending to anything else is more than the first predetermined threshold value, whether application of attending to anything else described in judgement meets
Control condition, if meeting, is controlled processing to the corresponding process of application of attending to anything else.
Second aspect, the embodiment of the present invention additionally provide a kind of Memory control device of terminal device, including:
Memory usage acquisition module, for obtaining the main EMS memory occupation for applying corresponding application of attending to anything else in terminal device
Rate;
PROCESS CONTROL MODULE, if being more than the first predetermined threshold value for the memory usage of the application of attending to anything else, judges institute
Stating whether application of attending to anything else meets control condition, if meeting, the corresponding process of application of attending to anything else being controlled processing.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal device, and the terminal device is integrated with foregoing description
Device.
The present invention is by obtaining the main memory usage for applying corresponding application of attending to anything else in terminal device;If described attend to anything else should
Memory usage is more than the first predetermined threshold value, then whether application of attending to anything else described in judgement meets control condition, if meeting, right
The corresponding process of application of attending to anything else is controlled processing, and solves increasing with the number of applications that opens, the internal memory of system
Resource will be consumed, and thus cause system smooth can not run, had a strong impact on the problem of the experience effect of user, realize
User is capable of the smooth operation of safeguards system after multiple applications are opened, while also extend the run time of terminal device,
Save system resource.
Description of the drawings
Fig. 1 is the flow chart of the internal memory control method of terminal device provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention;
Fig. 5 is the structure chart of the Memory control device of terminal device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of terminal device provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment that states is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part related to the present invention rather than entire infrastructure is illustrate only in description, accompanying drawing.
Fig. 1 is the flow chart of the internal memory control method of terminal device provided in an embodiment of the present invention, and the present embodiment is applicable
In the situation is controlled by terminal device internal memory, the method can be executed by terminal device such as smart mobile phone, panel computer,
Specifically include following steps:
The main memory usage for applying corresponding application of attending to anything else in step 101, acquisition terminal device.
Multiple application software are installed in terminal device, such as QQ, wechat, microblogging etc., user can be executed by these softwares
Corresponding function.In this programme, installing terminal equipment has main application and application of attending to anything else.In this programme, main application is corresponding with which
Application attend to anything else as the application that opens in set of applications, its implementation can have many kinds, and the present embodiment is not specifically limited more.
For example, the application of different editions can be respectively mounted, using a kind of version as main application, using other versions as application of attending to anything else, its
In, installation kit (APK) file of application can be changed by decompiling, then amended APK file is installed to realize difference is installed
The same money application of version;And for example, open assistant's software the third party that application simulation user's space and Dynamic loading technique can be passed through more
To realize;For another example, can be realized by changing system mechanism.
Preferably, open set of applications in the present embodiment to realize based on multi-user's mechanism, wherein multi-user's mechanism is concrete more
May include multi-user's mechanism that the operating system in intelligent terminal is supported, such as multi-user's mechanism of Android (Android) system
And multi-user's mechanism of mobile phone window (Windows Phone, WP) operating system etc..
Wherein, open set of applications to realize based on multi-user's mechanism more, now illustrated as follows:
Specifically, open set of applications to realize may include following content based on multi-user's mechanism more:Main application is installed on master
Under user, application of attending to anything else is installed on under user, comprising the access port for being used for operating application of attending to anything else in primary user.
In one embodiment, multi-user's realization mechanism of the application includes following logic:
1. multi-user management
A) system default has a primary user, and primary user can create other multiple new user (from users), it is possible to
Delete and manage them;
B) domestic consumer (non-master user) and Guest User, can be collectively referred to as from user;
C) acquiescence primary user id (identity, Identification) is 0, and other Add User id from the beginning of 10, by
Individual increase;
When d) switching user, a series of changing interface such as desktop can be reloaded;
E) primary user can limit whether other users can take the authority such as phone and transmitting-receiving note.
For multi-user management, can by primary user to being managed from user, including the establishment from user, deletion and
Priority assignation etc., ID are arranged from the beginning of primary user, are increased newly from when switching between ID laminated structure, each user, and it is right to reload
Answer a series of interfaces such as desktop of user.
2. multi-user's peace loading, unloading application
A) application of default installation, can be installed to all users that oneself creates, all visible application on other user's desktops
Icon;
B) application that is installed by file management in primary user, will not be installed to other users, on other user's desktops
Invisible application icon;
C) system may specify userid (User Identity) when loading, unloading application is pacified, it is intended that application is installed to certain
Specified user, or the application is unloaded in certain specified user.All users can also all be installed with application, or unloading application.
D) application B has been unloaded in user A, for other users, apply B still to exist, all visible application on desktop
Icon, on other users, application B normally can be used.
Loading, unloading application is pacified for multi-user, the application of default installation can be installed to all users for having created (including master
User and from user), and on each user's desktop generate application icon;And installed by file management under primary user should
With, be mounted only under primary user, primary user's desktop generate application icon, be not installed under user;Installation/the unloading of application
Also user can be specified based on user, user is specified in primary user and from user by specifying User Identity
The installation of application/be discharged under certain user, certain user or all users is carried out;Being discharged under each user for same application is only
Standing is carried out, and the application under a certain user is unloaded, does not affect the use of the application under other users.
3. user data management
A) related to system data user's id catalogue:The corresponding various system data storages of user are housed, for example:Table
Face widget (component) list, arranges database, and default application starts strategy etc..
B) related to application packet data user's id catalogue:House user and the application bag catalogue that installs is corresponded to, if should
Data are generated with operation, then application data also deposits in this catalogue.
C) system SD card (Secure Digital Memory Card, safe digital card) catalogue:Each user sees certainly
Oneself sdcard catalogue is all different, can only see the sdcard catalogue of oneself.
For user data management, under multi-user's realization mechanism, under each user, system data and application-dependent data are divided
Do not deposit under different data storage paths, e.g., under certain user, various system datas deposit in the first data storage that specifies
Under path, and application data these application-dependent data that the application bag catalogue installed and application operating are produced are deposited in and are specified
Under second data storage path;Under each user, data storage is separate, and each user can only check the data storage of itself, such as certainly
The sdcard catalogue of body.
4. user authority management
A) application after installation, applies the various authorities of application (for example:Read storage catalogue authority, read-write note power
Limit, opens camera authority etc.), can be divided into two parts, a part of insensitive authority, when application is installed, system is directly allowed
Application obtains authority;A part for example reads and writes note authority than more sensitive danger authority, can be when application is used, and system is carried
Show whether user allows application to obtain authority.
B) in different users, the authority to same application is independent and isolated, the base that an application is obtained to system
This insensitive authority, after mounting, directly obtains in each user, and part than more sensitive danger authority is
Independent.For example:When user 0 opens wechat, if obtaining read-write note authority, when being switched to user 10, beat for the first time
When opening wechat, system still can prompt the user whether to allow, and will not remind because wechat obtains authority in user 0.With
Reason, same in other users.
For user authority management, when under a certain user, application is installed, insensitive authority can directly obtain permission, sensitive power
Limit need to be obtained through user's license;Under different users, the authority configuration to same application is independent and isolated mutually, in user
During switching, for the sensitive permission of the application for using for the first time, it is both needed to point out whether user assigns power.
In the present embodiment, open the process that set of applications realized based on multi-user's mechanism can be described as follows more:
Assume intelligent terminal default user be primary user, user under primary user pass through from application shop download or from
Installation kit (package, APK) the file such as ABC.apk for applying ABC is stored in intelligent terminal by the modes such as other source copies
In, after system installs ABC.apk under primary user, primary user's desktop can generate the icon of a main application ABC.When in primary user
Under detect for main application ABC attend to anything else request to create when, (if there is currently no from user, one can created from user
Individual from user, the establishment process cannot be completed in the case of discovering in user, without user setup account and password) under
ABC.apk is installed application of attending to anything else is obtained, in order to be distinguish between to main application and application of attending to anything else, can add for the new application of attending to anything else that installs
Plus a mark (being assumed to be *), application of attending to anything else can be designated as ABC*.After ABC* installs success, may specify " installing successfully "
Notice (in the notice also add mark *) be sent to the desktop reception under primary user, primary user to the notice after, generation one
The individual icon with mark *, is made a distinction with the icon with main application ABC, and the icon can be used as to application of attending to anything else in primary user
The access port for being operated, after the icon is clicked, specified ABC* is being started under user by system, phase corresponding with ABC*
Pass process is also in the operation under user, and the human-computer interaction interface (abbreviation interface) of ABC* is shown under primary user, now
The interface of ABC* also can be used as access port application of attending to anything else operated in primary user.
For application of attending to anything else, the existence form of its access port in primary user can be diversified, this reality
Apply example to be not specifically limited, for example, it may be the desktop icons comprising application identities, the application identities should in order to currently to be attended to anything else
With with main application and other application divisions of attending to anything else come;Can also be the application identities being additional on main application icon;May be used also
To be the icon comprising application identities existed with floating window form;Can also be the project for being present in the positions such as notice center.
Intelligent terminal user can achieve the operation to main application in primary user, while can also be by accessing in primary user
Mouth is operated to application of attending to anything else accordingly.It is understood that same main application can correspond to multiple applications of attending to anything else, each point
Body application be all installed in one different from user, the application that makes respectively to attend to anything else is separately operable in different from user, in fortune
It does not interfere with each other during row.
Application being opened realize based on multi-user's mechanism to be advantageous in that more, for opening assistant's software compared to third party more,
Avoid third party software advertisement and the generation of the behaviors such as privacy of user data is stolen, security is higher;Compare and answer with main
For the scheme for all running under same user with application of attending to anything else, reduce difference under same user and attend to anything else application or main application
Between process interference, and the generation for avoiding afunction phenomenon that complicated running environment brought.
In this programme, when user needs to open multiple identical (i.e. main application and one or more applications of attending to anything else), multiple
Identical application can be while run, now the rate of load condensate of Installed System Memory can gradually rise in systems.In this step, terminal is obtained
In equipment, the main memory usage for applying corresponding application of attending to anything else, exemplary, in android system, can be by application
UID, process PID or userid come to main application and application of attending to anything else make a distinction, and then get main application corresponding attend to anything else should
Memory usage.Wherein, memory usage characterizes the size of the shared internal memory of application of attending to anything else, and memory usage gets over Gao Ze
The system resource of consumption is bigger, otherwise less.The memory usage of the application of attending to anything else can be by dividing for opening under application of attending to anything else
Body process determines.Specifically, one attend to anything else apply using when can open one or more processes of attending to anything else, each process meeting of attending to anything else
Certain memory headroom is taken, the memory usage of the application of attending to anything else can be obtained by the memory usage sum of each process.
If the memory usage of step 102 application of attending to anything else is more than the first predetermined threshold value, application of attending to anything else described in judgement
Whether meeting control condition, if meeting, the corresponding process of application of attending to anything else being controlled processing.
Exemplary, first predetermined threshold value can be 5%, 10%, 15% or 20% etc., can be arranged by system default,
Also setting can be manually entered by user.When the memory usage of application of attending to anything else is determined more than first predetermined threshold value, that is, anticipate
The internal memory that taste its occupancy is higher, and the consumption to system resource is larger, now judges whether the application of attending to anything else meets control condition,
The corresponding process of application of attending to anything else is controlled processing in the case of control condition is met.Wherein, process mainly includes:
Ready state, execution state, blocked state, suspended state and final state etc..Wherein, can be right to the control process of process
Above-mentioned state of a process is switched over, exemplary, process is hung up and can discharge its corresponding memory source for taking, work as system
When memory source is sufficient, it is ensured that the process flow operation of system.
Skilled person will appreciate that, as main application is usually the main application that user opens, and only answered by main
Open and can't badly influence the memory source of terminal device (existing terminal device hardware can support multiple main applications
Unlatching), but as increasing for application of attending to anything else gradually can be consumed to system resource, therefore this programme is mainly for application of attending to anything else
The internal memory of occupancy is controlled, but the control being equally applicable to main application.
The technical scheme of the present embodiment, obtains the main memory usage for applying corresponding application of attending to anything else in terminal device;If
The memory usage of the application of attending to anything else is more than the first predetermined threshold value, then whether application of attending to anything else described in judgement meets control condition,
If meeting, the corresponding process of application of attending to anything else being controlled processing, increasing with the number of applications that opens is solved,
The memory source of system will be consumed, and thus cause system smooth can not run, have a strong impact on the experience effect of user
Problem, it is achieved that user is capable of the smooth operation of safeguards system after multiple applications are opened, while also extending terminal device
Run time, save system resource.
Fig. 2 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention, the present embodiment
Give a kind of mode that process is controlled in the case of specific control condition is met to the corresponding process of application of attending to anything else, tool
Body comprises the steps:
The main memory usage for applying corresponding application of attending to anything else in step 201, acquisition terminal device.
If the memory usage of step 202 application of attending to anything else is more than the first predetermined threshold value, application of attending to anything else described in judgement
Whether background operation state is in, if so, then the corresponding process of application of attending to anything else is hung up.
Wherein, running status of the application software after unlatching mainly includes front stage operation state and background operation state.Its
In, front stage operation state refers to that application software is directly run by window, can directly be interacted with user, generally there are friendship
Mutual interface.Background operation state refers to that application software is run in explorer, there is usually no interactive interface, it is impossible to directly and
User interacts, but still can occupying system resources.In this step, when determination attends to anything else application in background operation state, i.e.,
It is not used by a user when interacting with user, the corresponding process of application of attending to anything else is hung up, it is possible thereby to discharge application of attending to anything else
Shared system resource, while impact can't be produced on the operation of user.
The technical scheme of the present embodiment, too high and when which is in running background when application memory occupancy of attending to anything else is determined,
The corresponding process of application of attending to anything else is hung up, solves increasing with the number of applications that opens, the memory source of system will be by
Rapid consumption, thus causes system smooth can not run, has had a strong impact on the problem of the experience effect of user, it is achieved that Yong Hu
It is capable of the smooth operation of safeguards system after opening multiple applications, while the run time of terminal device is also extended, saves and be
System resource.
Fig. 3 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention, the present embodiment
On the basis of the various embodiments described above, give a kind of specific foundation function for being carrying out of application of attending to anything else and determine whether to which
The method for being controlled processing, specifically includes following steps:
The main memory usage for applying corresponding application of attending to anything else in step 301, acquisition terminal device.
If the memory usage of step 302 application of attending to anything else is more than the first predetermined threshold value, judge whether to pass through
The application of attending to anything else carries out audio frequency and video process, if it is not, then hanging up the corresponding audio frequency and video process of application of attending to anything else.
Wherein, different applications of attending to anything else possesses different functions.Usual one application of attending to anything else can be according to the need of itself function
The multiple processes of unlatching are sought, each process executes corresponding function, in this step, audio frequency and video process whether is being carried out to which to be carried out
Judge, process does not carry out audio frequency and video process if this is attended to anything else, only the corresponding audio frequency and video process of application of attending to anything else is hung up.With reality
Apply unlike example two, when system resource is nervous, even if this is attended to anything else applying in front stage operation state, but for carrying out a certain work(
When can operate (audio frequency and video as the present embodiment are processed), corresponding process can be hung up to discharge resource, while can't affect
Normal operating to user.
The technical scheme of the present embodiment, is attended to anything else in application by selective hang-up of the judgement for applying perform function to attending to anything else
Partial Process, solve the problems, such as to attend to anything else application in front stage operation when cannot hang up process with releasing memory, it is achieved that user
It is capable of the smooth operation of safeguards system after multiple applications are opened, while the run time of terminal device is also extended, saves
System resource.
On the basis of technique scheme, step 302 can also be:If the memory usage of the application of attending to anything else is more than
First predetermined threshold value, then judge whether to carry out localization process by the application of attending to anything else, if it is not, then by the application of attending to anything else
Corresponding positioning service process is hung up.Wherein, positioning service is that great majority apply the service that can all start after unlatching, but
User can't have always a demand for positioning service, judge to whether application of attending to anything else is carrying out localization process in this programme, if
Do not carry out, then hang up positioning service process accordingly, guarantee in sight is attended to anything else on the premise of application normally runs and releases internal memory money
Source, it is ensured that the process flow operation of system.
Fig. 4 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention, the present embodiment
On the basis of the various embodiments described above, give a kind of direct terminate the method that the process of application carrys out free system resources of attending to anything else,
Specifically include following steps:
The main memory usage for applying corresponding application of attending to anything else in step 401, acquisition terminal device.
If the memory usage of step 402 application of attending to anything else more than the first predetermined threshold value and described attend to anything else apply pre-
If not in front stage operation mistake, the then process of application of attending to anything else described in termination in the time.
Wherein, the Preset Time can be 15 minutes, 30 minutes or 60 minutes etc., that is, attending to anything else to apply did not existed in certain time
Front stage operation mean user may within the long period of time all will not the use application of attending to anything else, now directly terminate this point
The process of body application carrys out free system resources.
The technical scheme that the present embodiment is provided, by directly terminating long-time not in the application of attending to anything else of front stage operation, realizes
User is capable of the smooth operation of safeguards system after multiple applications are opened, while also extend the run time of terminal device,
Save system resource.
On the basis of the various embodiments described above, step 402 can also be:If the memory usage of the application of attending to anything else is more than
The consumption rate of the first predetermined threshold value and the application of attending to anything else is more than default consumption rate, the then process of application of attending to anything else described in termination.Its
In, the default consumption rate can be 10%, 20% or 30%, in this programme, application of attending to anything else too high for consumption rate directly be terminated
To ensure the endurance of terminal device.
On the basis of the various embodiments described above, step 402 can also be:If the memory usage of the application of attending to anything else is more than
The utilization rate of the first predetermined threshold value and the application of attending to anything else is less than default utilization rate, the then process of application of attending to anything else described in termination.Its
In, the default utilization rate can be that utilization rate is lower to be meaned user and be not frequently used the application of attending to anything else 1 times a week, now,
The relatively low application of attending to anything else of preferential termination utilization rate ensures the process flow operation of system with free system resources.
On the basis of the various embodiments described above, attend to anything else in terminal device is obtained before the memory usage of application, also wrap
Include:Obtain the Memory Load rate of terminal device;Obtain the main memory usage bag for applying corresponding application of attending to anything else in terminal device
Include:If the Memory Load rate of the terminal device is more than the second predetermined threshold value, corresponding point of main application in terminal device is obtained
The memory usage of body application.In this programme, when the internal memory to terminal device is controlled, it is first determined terminal device interior
Rate of load condensate is deposited, the Memory Load rate characterizes the current EMS memory occupation situation of terminal device, and Memory Load rate is higher to mean end
The available internal memory of end equipment is fewer, and the operation of system will appear from interim card and even crash.This programme is according to the Memory Load for getting
The big I of rate carries out Memory control in time so that the efficiency to Memory control is significantly improved, without the need in real time to application of attending to anything else
The process of application that process is hung up or direct termination is attended to anything else.
On the basis of the various embodiments described above, also include recovery attend to anything else application corresponding process the step of, exemplary, when
The Memory Load rate of terminal device reduces or user needs to reuse this and attends to anything else application constantly, and the recovery of adaptability is attended to anything else should
Operation that can be again timely to user is applied to respond with corresponding process in order to attend to anything else.
Fig. 5 is the structure chart of the Memory control device of terminal device provided in an embodiment of the present invention, specifically includes as follows:
Memory usage acquisition module 1, for obtaining the main EMS memory occupation for applying corresponding application of attending to anything else in terminal device
Rate;
PROCESS CONTROL MODULE 2, if being more than the first predetermined threshold value for the memory usage of the application of attending to anything else, judges institute
Stating whether application of attending to anything else meets control condition, if meeting, the corresponding process of application of attending to anything else being controlled processing.
The technical scheme of the present embodiment, by obtaining the main EMS memory occupation for applying corresponding application of attending to anything else in terminal device
Rate;If the memory usage of the application of attending to anything else is more than the first predetermined threshold value, whether application of attending to anything else described in judgement meets control
Condition, if meeting, being controlled processing to the corresponding process of application of attending to anything else, solving with the number of applications that opens
Increase, the memory source of system will be consumed, thus cause system smooth can not run, had a strong impact on the experience of user
The problem of effect, it is achieved that user is capable of the smooth operation of safeguards system after multiple applications are opened, while also extending terminal
The run time of equipment, saves system resource.
On the basis of technique scheme, the PROCESS CONTROL MODULE 2 specifically for:
Whether application of attending to anything else described in judging is in background operation state, if so, then by the corresponding process of application of attending to anything else
Hang up.
On the basis of technique scheme, the PROCESS CONTROL MODULE 2 specifically for:
Judge whether to carry out audio frequency and video process by the application of attending to anything else, if it is not, then corresponding to the application of attending to anything else
Audio frequency and video process hang up.
On the basis of technique scheme, the PROCESS CONTROL MODULE 2 specifically for:
Judge whether to carry out localization process by the application of attending to anything else, if it is not, then will be corresponding for the application of attending to anything else
Positioning service process is hung up.
On the basis of technique scheme, the PROCESS CONTROL MODULE 2 is at least one specifically for subordinate:
If described attend to anything else apply in the Preset Time not in front stage operation mistake, terminate described in attend to anything else the process of application;
If the consumption rate of the application of attending to anything else is more than consumption rate is preset, the process of application of attending to anything else described in termination;
If the utilization rate of the application of attending to anything else is less than utilization rate is preset, the process of application of attending to anything else described in termination.
On the basis of technique scheme, also include:
Memory Load rate acquisition module 3, for obtaining the Memory Load rate of terminal device;
The memory usage acquisition module 1 specifically for:
If the Memory Load rate of the terminal device is more than the second predetermined threshold value, obtains main application in terminal device and correspond to
Application of attending to anything else memory usage.
On the basis of technique scheme, the PROCESS CONTROL MODULE 2 is additionally operable to:
According to the operating instruction for receiving, recover described in attend to anything else the operation of process.
The said goods can perform the method provided by any embodiment of the present invention, possess the corresponding functional module of execution method
And beneficial effect.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and the terminal device can include this
The Memory control device that invention any embodiment is provided.Fig. 6 is that a kind of structure of terminal device provided in an embodiment of the present invention is shown
It is intended to, as shown in fig. 6, the terminal device can include:Memory 601, central processing unit (Central Processing
Unit, CPU) 602, Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, voicefrequency circuit 606, loudspeaker
611st, power management chip 608, input/output (I/O) subsystem 609, touch-screen 612, other input/control devicess 610 with
And outside port 604, these parts are communicated by one or more communication bus or holding wire 607.
It should be understood that graphic terminal 600 is only an example of terminal device, and terminal device 600
Can have than the more or less part shown by figure, two or more parts can be combined, or permissible
Configure with different parts.Various parts shown by figure can include one or more signal transacting and/or special
Integrated circuit is realized in the combination of interior hardware, software or hardware and software.
Below with regard to the present embodiment offer for the terminal device of the rights management for opening application is described in detail more, should
Terminal device is by taking smart mobile phone as an example.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 can
With include high-speed random access memory, can also include nonvolatile memory, for example one or more disk memory,
Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU602 and deposit by Peripheral Interface 603, the Peripheral Interface 603
Reservoir 601.
I/O subsystem 609, the I/O subsystem 609 can be by the input/output peripherals on equipment, such as touch-screen 612
With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystem 609 can include 6091 He of display controller
For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls
Device processed 6092 receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610,
Other input/control devicess 610 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole, click roller.What deserves to be explained is, input controller 6092 can with following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 612, the touch-screen 612 is the input interface between user terminal and user and output interface, can
Depending on output display to user, visual output can include figure, text, icon, video etc..
Display controller 6091 in I/O subsystem 609 receives electric signal or to touch-screen 612 from touch-screen 612
Electric signals.Touch-screen 612 detects the contact on touch-screen, and the contact for detecting is converted to and display by display controller 6091
The interaction of the user interface object on touch-screen 612, that is, realize man-machine interaction, shows the user interface on touch-screen 612
Object can be the icon of running game, be networked to icon of corresponding network etc..What deserves to be explained is, equipment can also include light
Mouse, light mouse are the touch sensitive surface for not showing visual output, or the extension of the touch sensitive surface formed by touch-screen.
RF circuit 605, is mainly used in setting up the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 605 receives and sends RF letter
Number, RF signal is also referred to as electromagnetic signal, and RF circuit 605 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications
Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuit 605 can be included for executing
The known circuit of these functions, its include but is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one
Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, ID mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606, is mainly used in receiving voice data from Peripheral Interface 603, the voice data is converted to telecommunications
Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611, for the voice signal for receiving mobile phone by RF circuit 605 from wireless network, is reduced to sound
And the sound is played to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface are powered
And power management.
The executable following operation of CPU602 provided in an embodiment of the present invention:
Obtain the main memory usage for applying corresponding application of attending to anything else in terminal device;
If the memory usage of the application of attending to anything else is more than the first predetermined threshold value, whether application of attending to anything else described in judgement meets
Control condition, if meeting, is controlled processing to the corresponding process of application of attending to anything else.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other Equivalent embodiments more can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (15)
1. a kind of internal memory control method of terminal device, it is characterised in that include:
Obtain the main memory usage for applying corresponding application of attending to anything else in terminal device;
If the memory usage of the application of attending to anything else is more than the first predetermined threshold value, whether application of attending to anything else described in judgement meets control
Condition, if meeting, is controlled processing to the corresponding process of application of attending to anything else.
2. method according to claim 1, it is characterised in that judge described attend to anything else to apply whether meet control condition, if
Meet, being then controlled process to the corresponding process of application of attending to anything else includes:
If so, whether application of attending to anything else described in judging then is hung up the corresponding process of application of attending to anything else in background operation state.
3. method according to claim 1, it is characterised in that judge described attend to anything else to apply whether meet control condition, if
Meet, being then controlled process to the corresponding process of application of attending to anything else includes:
Judge whether to carry out audio frequency and video process by the application of attending to anything else, if it is not, then by the corresponding sound of application of attending to anything else
Video process is hung up.
4. method according to claim 1, it is characterised in that judge described attend to anything else to apply whether meet control condition, if
Meet, being then controlled process to the corresponding process of application of attending to anything else includes:
Judge whether to carry out localization process by the application of attending to anything else, if it is not, then by the corresponding positioning of application of attending to anything else
Service processes are hung up.
5. the method according to any one of claim 1-4, it is characterised in that judge described to attend to anything else to apply whether meet control
Condition processed, if meeting, the corresponding process of application of attending to anything else is controlled processing includes following at least one:
If described attend to anything else apply in the Preset Time not in front stage operation mistake, terminate described in attend to anything else the process of application;
If the consumption rate of the application of attending to anything else is more than consumption rate is preset, the process of application of attending to anything else described in termination;
If the utilization rate of the application of attending to anything else is less than utilization rate is preset, the process of application of attending to anything else described in termination.
6. method according to claim 5, it is characterised in that the corresponding application of attending to anything else of main application in terminal device is obtained
Memory usage before, also include:
Obtain the Memory Load rate of terminal device;
Obtaining the main memory usage for applying corresponding application of attending to anything else in terminal device includes:
If the Memory Load rate of the terminal device is more than the second predetermined threshold value, corresponding point of main application in terminal device is obtained
The memory usage of body application.
7. method according to claim 2, it is characterised in that after hanging up the corresponding process of application of attending to anything else, also
Including:
According to the operating instruction for receiving, recover described in attend to anything else and apply the operation of corresponding process.
8. the Memory control device of a kind of terminal device, it is characterised in that include:
Memory usage acquisition module, for obtaining the main memory usage for applying corresponding application of attending to anything else in terminal device;
PROCESS CONTROL MODULE, if being more than the first predetermined threshold value for the memory usage of the application of attending to anything else, judges described point
Whether body application meets control condition, if meeting, the corresponding process of application of attending to anything else is controlled processing.
9. device according to claim 8, it is characterised in that the PROCESS CONTROL MODULE specifically for:
If so, whether application of attending to anything else described in judging then is hung up the corresponding process of application of attending to anything else in background operation state.
10. device according to claim 8, it is characterised in that the PROCESS CONTROL MODULE specifically for:
Judge whether to carry out audio frequency and video process by the application of attending to anything else, if it is not, then by the corresponding sound of application of attending to anything else
Video process is hung up.
11. devices according to claim 8, it is characterised in that the PROCESS CONTROL MODULE specifically for:
Judge whether to carry out localization process by the application of attending to anything else, if it is not, then by the corresponding positioning of application of attending to anything else
Service processes are hung up.
12. devices according to any one of claim 8-11, it is characterised in that the PROCESS CONTROL MODULE specifically for
Subordinate is at least one:
If described attend to anything else apply in the Preset Time not in front stage operation mistake, terminate described in attend to anything else the process of application;
If the consumption rate of the application of attending to anything else is more than consumption rate is preset, the process of application of attending to anything else described in termination;
If the utilization rate of the application of attending to anything else is less than utilization rate is preset, the process of application of attending to anything else described in termination.
13. devices according to claim 12, it is characterised in that also include:
Memory Load rate acquisition module, for obtaining the Memory Load rate of terminal device;
The memory usage acquisition module specifically for:
If the Memory Load rate of the terminal device is more than the second predetermined threshold value, corresponding point of main application in terminal device is obtained
The memory usage of body application.
14. devices according to claim 9, it is characterised in that the PROCESS CONTROL MODULE is additionally operable to:
According to the operating instruction for receiving, recover described in attend to anything else and apply the operation of corresponding process.
15. a kind of terminal devices, it is characterised in that the terminal device is integrated with as described in any one in claim 8-14
Device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610885211.7A CN106484538B (en) | 2016-10-10 | 2016-10-10 | Memory control method and device of terminal equipment and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610885211.7A CN106484538B (en) | 2016-10-10 | 2016-10-10 | Memory control method and device of terminal equipment and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106484538A true CN106484538A (en) | 2017-03-08 |
CN106484538B CN106484538B (en) | 2020-01-14 |
Family
ID=58269523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610885211.7A Active CN106484538B (en) | 2016-10-10 | 2016-10-10 | Memory control method and device of terminal equipment and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106484538B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106940761A (en) * | 2017-03-27 | 2017-07-11 | 联想(北京)有限公司 | The control method and controller of a kind of application program |
CN108228472A (en) * | 2017-08-14 | 2018-06-29 | 珠海市魅族科技有限公司 | Terminal equipment control method and device, terminal device and computer readable storage medium |
CN109032686A (en) * | 2018-06-07 | 2018-12-18 | 北京小米移动软件有限公司 | Data processing method and device |
CN111198759A (en) * | 2018-11-16 | 2020-05-26 | 深圳市优必选科技有限公司 | Memory optimization method, system, terminal equipment and readable storage medium |
CN111601007A (en) * | 2020-04-09 | 2020-08-28 | 深圳震有科技股份有限公司 | Control method for limiting call and electronic equipment |
CN111857689A (en) * | 2020-07-27 | 2020-10-30 | 深信服科技股份有限公司 | Framework, function configuration method of framework, terminal and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968335A (en) * | 2012-10-25 | 2013-03-13 | 东莞宇龙通信科技有限公司 | Terminal and terminal memory management method |
CN102981906A (en) * | 2012-11-16 | 2013-03-20 | 广东欧珀移动通信有限公司 | Application program background process management method and device |
CN102984580A (en) * | 2012-11-12 | 2013-03-20 | 北京奇虎科技有限公司 | Internal storage cleaning method and system |
CN104298549A (en) * | 2014-09-30 | 2015-01-21 | 北京金山安全软件有限公司 | Method and device for cleaning application programs in mobile terminal and mobile terminal |
CN105101366A (en) * | 2015-05-29 | 2015-11-25 | 努比亚技术有限公司 | Mobile terminal control method and mobile terminal |
CN105824631A (en) * | 2016-03-16 | 2016-08-03 | 深圳市金立通信设备有限公司 | Control method of application program and terminal |
CN105975305A (en) * | 2016-04-29 | 2016-09-28 | 北京小米移动软件有限公司 | Operating system event processing method and device as well as terminal |
-
2016
- 2016-10-10 CN CN201610885211.7A patent/CN106484538B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968335A (en) * | 2012-10-25 | 2013-03-13 | 东莞宇龙通信科技有限公司 | Terminal and terminal memory management method |
CN102984580A (en) * | 2012-11-12 | 2013-03-20 | 北京奇虎科技有限公司 | Internal storage cleaning method and system |
CN102981906A (en) * | 2012-11-16 | 2013-03-20 | 广东欧珀移动通信有限公司 | Application program background process management method and device |
CN104298549A (en) * | 2014-09-30 | 2015-01-21 | 北京金山安全软件有限公司 | Method and device for cleaning application programs in mobile terminal and mobile terminal |
CN105101366A (en) * | 2015-05-29 | 2015-11-25 | 努比亚技术有限公司 | Mobile terminal control method and mobile terminal |
CN105824631A (en) * | 2016-03-16 | 2016-08-03 | 深圳市金立通信设备有限公司 | Control method of application program and terminal |
CN105975305A (en) * | 2016-04-29 | 2016-09-28 | 北京小米移动软件有限公司 | Operating system event processing method and device as well as terminal |
Non-Patent Citations (1)
Title |
---|
SMALL_ROLE: "android 5.0 创建多用户 双开多开应用(2),small_role,CSDN博客,https://blog.csdn.net/small_role/article/details/51745307", 《ANDROID 5.0 创建多用户 双开多开应用(2)》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106940761A (en) * | 2017-03-27 | 2017-07-11 | 联想(北京)有限公司 | The control method and controller of a kind of application program |
CN108228472A (en) * | 2017-08-14 | 2018-06-29 | 珠海市魅族科技有限公司 | Terminal equipment control method and device, terminal device and computer readable storage medium |
CN109032686A (en) * | 2018-06-07 | 2018-12-18 | 北京小米移动软件有限公司 | Data processing method and device |
CN109032686B (en) * | 2018-06-07 | 2021-10-22 | 北京小米移动软件有限公司 | Data processing method and device |
CN111198759A (en) * | 2018-11-16 | 2020-05-26 | 深圳市优必选科技有限公司 | Memory optimization method, system, terminal equipment and readable storage medium |
CN111198759B (en) * | 2018-11-16 | 2024-04-19 | 深圳市优必选科技有限公司 | Memory optimization method, system, terminal equipment and readable storage medium |
CN111601007A (en) * | 2020-04-09 | 2020-08-28 | 深圳震有科技股份有限公司 | Control method for limiting call and electronic equipment |
CN111857689A (en) * | 2020-07-27 | 2020-10-30 | 深信服科技股份有限公司 | Framework, function configuration method of framework, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106484538B (en) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106484538A (en) | A kind of internal memory control method of terminal device, device and terminal device | |
CN106357921B (en) | A kind of data sharing method of application, device and mobile terminal | |
CN106484478B (en) | A kind of method, device and mobile terminal creating application of attending to anything else | |
CN106445647B (en) | Open the data manipulation method, device and mobile terminal of application more | |
CN106484547A (en) | A kind of management method, device and terminal for opening application more | |
CN106445612A (en) | Method and device for starting application and mobile terminal | |
CN106485136A (en) | The authority configuring method of application program, device and mobile terminal | |
CN106484479A (en) | A kind of management method, device and intelligent terminal for opening application more | |
CN107026933A (en) | A kind of information management method, device and intelligent terminal for opening application more | |
CN109271211A (en) | Method, apparatus of attending to anything else, equipment and the medium of application program | |
CN106650324A (en) | Application program authority management method and device and mobile terminal | |
CN106648736A (en) | Application control method and device and mobile terminal | |
CN106445671A (en) | Application program management method and device and terminal | |
CN106502732B (en) | Application closing method and device and intelligent terminal | |
CN106648737A (en) | Application control method and device, and mobile terminal | |
CN106445706B (en) | Open the data transmission method, device and mobile terminal of application more | |
CN106484419A (en) | Information searching method, device and mobile terminal in a kind of application program | |
CN106484517A (en) | A kind of changing method, device and intelligent terminal for opening application more | |
CN106445670B (en) | A kind of data managing method, device and mobile terminal for opening application more | |
CN106648459B (en) | A kind of data managing method of application, device and mobile terminal | |
CN106648908A (en) | Control method, device of application progress and mobile terminal | |
CN106488020A (en) | A kind of operation management method, device and intelligent terminal for opening application more | |
CN106650403A (en) | Permission management method and device of application with multiple operated accounts, and intelligent terminal | |
CN106648962A (en) | Management method and device and intelligent terminal for multi-open application | |
CN106648738A (en) | Copy application management method and device, and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |