[go: up one dir, main page]

CN109874058A - Set-top box, readable storage medium storing program for executing, the EMS memory management process of set-top box and system - Google Patents

Set-top box, readable storage medium storing program for executing, the EMS memory management process of set-top box and system Download PDF

Info

Publication number
CN109874058A
CN109874058A CN201910160026.5A CN201910160026A CN109874058A CN 109874058 A CN109874058 A CN 109874058A CN 201910160026 A CN201910160026 A CN 201910160026A CN 109874058 A CN109874058 A CN 109874058A
Authority
CN
China
Prior art keywords
application
list
top box
self
memory
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
Application number
CN201910160026.5A
Other languages
Chinese (zh)
Inventor
谭乐
王琛
冯婧
董梁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TIANWEI VEDIO COMMUNICATION CO Ltd SHENZHEN CITY
Shenzhen Topway Video Communication Co Ltd
Original Assignee
TIANWEI VEDIO COMMUNICATION CO Ltd SHENZHEN CITY
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TIANWEI VEDIO COMMUNICATION CO Ltd SHENZHEN CITY filed Critical TIANWEI VEDIO COMMUNICATION CO Ltd SHENZHEN CITY
Priority to CN201910160026.5A priority Critical patent/CN109874058A/en
Publication of CN109874058A publication Critical patent/CN109874058A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of set-top box, readable storage medium storing program for executing, the EMS memory management process of set-top box and system, method includes: to forbid being not present in the application booting self-starting using in self-starting list in booting;In the low memory that foreground application needs, the application precedence information provided according to core application list closes part background application to release enough memories.The present invention optimizes management to memory source in terms of two, on the one hand, in booting, forbids being not present in the application booting self-starting using in self-starting list, to avoid a large amount of unnecessary occupancy of resource;On the other hand, in the low memory that foreground application needs, the application precedence information provided according to core application list closes part background application to release enough memories, realizes the reasonable release of resource.

Description

Set-top box, readable storage medium storing program for executing, the EMS memory management process of set-top box and system
Technical field
The present invention relates to the memory managements of field of set-top more particularly to a kind of set-top box, readable storage medium storing program for executing, set-top box Method and system.
Background technique
Intelligent set top box (TV box) refers to the set-top box (TV box) for being equipped with Android system etc..It is passed in addition to having The TV box of system sees TV and video capability, and Intelligent set top box can realize control smart home function, and realize on computer Institute is functional: browsing webpage watches movie, sees TV, listens to music, merely QQ, object for appreciation game etc..
The universal limited memory of current Intelligent set top box, being easy to appear inadequate resource leads to system and using fluctuation of service The problem of.
Summary of the invention
The technical problem to be solved in the present invention is that the above-mentioned set-top box for the prior art is easy to appear inadequate resource and leads The defect of cause system and application fluctuation of service, provides the EMS memory management process of a kind of set-top box, readable storage medium storing program for executing, set-top box And system, for solving the problems, such as that set-top box memory source deficiency leads to system and using fluctuation of service.
The technical solution adopted by the present invention to solve the technical problems is: a kind of EMS memory management process of set-top box is constructed, Include:
In booting, forbid being not present in the application booting self-starting using in self-starting list;
In the low memory that foreground application needs, precedence information close portion is applied according to what core application list provided Point background application is to release enough memories.
Preferably, the application precedence information provided according to core application list closes part background application to release Release enough memories, comprising:
Precedence information is applied according to what core application list provided, the priority for obtaining the background application being currently running is suitable Sequence;
Do not have the background application of priority if it exists, then closes the background application for not having priority until releasing foot Enough memories;
If the memory that foreground application needs is still insufficient, according to the sequence of priority from low to high, gradually close The background application of operation is until release enough memories.
Preferably, the method also includes: pass through fit applications deployment way and update the application self-starting list and core Heart list of application.
Another aspect of the present invention also discloses a kind of internal storage management system of Intelligent set top box, comprising:
Be switched on self-starting management module, is not present in opening using the application in self-starting list for forbidding in booting Machine self-starting;
Memory anxiety management module when low memory for needing in foreground application, is provided according to core application list Application precedence information close part background application to release enough memories.
Preferably, the memory anxiety management module is specifically used for: the application priority provided according to core application list Information obtains the priority orders for the background application being currently running;Do not have the background application of priority if it exists, then closes not Has the background application of priority until releasing enough memories;If the memory that foreground application needs is still insufficient, according to The sequence of priority from low to high gradually closes the background application being currently running until releasing enough memories.
Preferably, the system also includes lists to obtain module, described in the mode for being coupled application obtains in advance Using self-starting list and core application list.
Preferably, the system also includes list update modules, answer described in the update of front end applications deployment way for cooperating With self-starting list and core application list.
Another aspect of the present invention also discloses a kind of set-top box, including memory and processor, and the memory is for depositing Computer program is stored up, the processor is used for the step of realizing method as previously described when executing the computer program.
Another aspect of the present invention also discloses a kind of readable storage medium storing program for executing, is stored with computer on the readable storage medium storing program for executing The step of program, the computer program realizes method as previously described when being executed by processor.
Set-top box, readable storage medium storing program for executing, the EMS memory management process of set-top box and system of the invention has beneficial below Effect: the present invention optimizes management to memory source in terms of two, on the one hand, in booting, forbids being not present in using certainly Start the application booting self-starting in list, to avoid a large amount of unnecessary occupancy of resource;On the other hand, in foreground application When the low memory needed, the application precedence information provided according to core application list closes part background application to release Enough memories realize the reasonable release of resource.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings:
Fig. 1 is the flow chart of the EMS memory management process of set-top box of the present invention;
Fig. 2 is the logic chart of the EMS memory management process of set-top box of the present invention;
Fig. 3 is the functional block diagram of the internal storage management system of Intelligent set top box of the present invention.
Specific embodiment
To facilitate the understanding of the present invention, a more comprehensive description of the invention is given in the following sections with reference to the relevant attached drawings.In attached drawing Give exemplary embodiments of the invention.But the invention can be realized in many different forms, however it is not limited to this paper institute The embodiment of description.On the contrary, purpose of providing these embodiments is make it is more thorough and comprehensive to the disclosure.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
The total thinking of the present invention is: optimizing management to memory source in terms of two, on the one hand, in booting, forbids It is not present in using the application booting self-starting in self-starting list, to avoid a large amount of unnecessary occupancy of resource;It is another Aspect, in the low memory that foreground application needs, the application precedence information provided according to core application list closes part Background application realizes the reasonable release of resource to release enough memories.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper It states technical solution to be described in detail, it should be understood that the specific features in the embodiment of the present invention and embodiment are to the application The detailed description of technical solution, rather than the restriction to technical scheme, in the absence of conflict, the present invention are implemented Technical characteristic in example and embodiment can be combined with each other.
With reference to Fig. 1, the EMS memory management process of set-top box of the invention, the system suitable for being installed by set-top box is executed, than Such as Android system.Method specifically includes:
S101, in booting, forbid being not present in using the application booting self-starting in self-starting list;
Using the application for describing permission self-starting when set-top-box system is switched in self-starting list.Each application has The application ID of one uniquely tagged application can record correlation in the form of recording application ID in application self-starting list and answer Use information.
S102, in the low memory that foreground application needs, application priority that system is provided according to core application list Information closes part background application to release enough memories.
It is understood that the whether insufficient judgment criteria of memory that application needs, is defined by system.
The precedence information of each application is described in core application list.For example, can be according to priority from low to high Sequence each application message is recorded in core application list, similarly, application message can be application ID.It is understood that It is that priority can be directly by applying the ranking sequence in the core application list identify, for example ranks more forward, then generation Table priority is higher, and such mode records very simply, facilitates program looks.It can certainly identify by other means excellent First grade writes the priority of application exactly such as directly through information such as numbers.
Wherein, in step S102, after the application precedence information provided according to core application list closes part Platform is applied to release enough memories, is specifically included:
S1021, precedence information is applied according to what core application list provided, obtains the excellent of the background application being currently running First grade sequence;
S1022, the background application for not having priority if it exists then close the background application for not having priority until releasing Release enough memories;Certainly, if there is no the background application for not having priority, i.e., all background applications all have preferentially Grade, then be directly entered step S1023.
If the memory that S1023, foreground application need is still insufficient, according to the sequence of priority from low to high, gradually close The background application being currently running is closed until releasing enough memories.
Further, the method also includes: obtain the application self-starting list in advance by way of fit applications With core application list.
For example, the application self-starting list and core application list can be packaged in list application by us with reference to Fig. 2 Import system in (the list apk in Fig. 2), then system can answer described in reading from list application (the list apk in Fig. 2) With self-starting list and core application list.Such as self-starting list includes applying D, core application list includes successively sorting : it is higher then to represent priority before ranking more using A, B etc.., only can be with self-starting using D when being then switched on, other are answered With being unable to self-starting.If sometime, need front stage operation application C, memory operation background application had A, B, D, memory source is insufficient at this time, then the background application presence of memory operation at this time does not have the application D of priority, so closing first Close background application D, if memory is enough after closing background application D, without continue to close it is next apply, otherwise continue What priority was minimum in closing background application applies B, if memory is enough after closing background application B, without continuing to close It is next to apply, otherwise continue to close next background application A, and so on.
Due to having new application and increasing with subsequent use, also have using deleting, so the self-starting that is switched on It is changed using converging, similarly, the priority of application also has altered, in order to flexibly change using self-starting list and core application column Table, further, the method also includes: the application self-starting list is updated by fit applications deployment way and core is answered Use list.For example, being updated by way of the mandatory update list application (the list apk in Fig. 2) of more new system of electromechanical box The application self-starting list and core application list.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.
As it can be seen that the present embodiment optimizes management to memory source in terms of two, on the one hand, in booting, forbid not depositing It is using the application booting self-starting in self-starting list, to avoid a large amount of unnecessary occupancy of resource;On the other hand, In the low memory that foreground application needs, the application precedence information provided according to core application list is closed part and is answered from the background To release enough memories, the reasonable release of resource is realized.
Based on the same inventive concept, with reference to Fig. 3, the invention also discloses a kind of internal storage management system of Intelligent set top box, Include:
Be switched on self-starting management module 301, is not present in the application using in self-starting list for forbidding in booting Be switched on self-starting.
Wherein, using the application for describing permission self-starting when set-top-box system is switched in self-starting list.Each answer With the application ID for having the uniquely tagged application, can be recorded in the form of recording application ID in application self-starting list Related application information.
Memory anxiety management module 302 when low memory for needing in foreground application, is mentioned according to core application list The application precedence information of confession closes part background application to release enough memories.
It is understood that the whether insufficient judgment criteria of memory that application needs, is defined by system.
The precedence information of each application is described in core application list.For example, can be according to priority from low to high Sequence each application message is recorded in core application list, similarly, application message can be application ID.It is understood that It is that priority can be directly by applying the ranking sequence in the core application list identify, for example ranks more forward, then generation Table priority is higher, and such mode records very simply, facilitates program looks.It can certainly identify by other means excellent First grade writes the priority of application exactly such as directly through information such as numbers.
Wherein, the memory anxiety management module 302 is specifically used for: the application priority provided according to core application list Information obtains the priority orders for the background application being currently running;Do not have the background application of priority if it exists, then closes not Has the background application of priority until releasing enough memories;If there is no the background application for not having priority i.e. institute There is background application that all there is priority, or will be in foreground application needs after the background application that not have priority all release Still deficiency is deposited, then the sequence according to priority from low to high, gradually closes the background application being currently running until releasing foot Enough memories.
Preferably, the system also includes lists to obtain module 303, and the mode for being coupled application obtains institute in advance It states using self-starting list and core application list.
For example, the application self-starting list and core application list can be packaged in list application by us with reference to Fig. 2 Import system in (the list apk in Fig. 2), then system can answer described in reading from list application (the list apk in Fig. 2) With self-starting list and core application list.Such as self-starting list includes applying D, core application list includes successively sorting : it is higher then to represent priority before ranking more using A, B etc.., only can be with self-starting using D when being then switched on, other are answered With being unable to self-starting.If sometime, need front stage operation application C, memory operation background application had A, B, D, memory source is insufficient at this time, then the background application presence of memory operation at this time does not have the application D of priority, so closing first Close background application D, if memory is enough after closing background application D, without continue to close it is next apply, otherwise continue What priority was minimum in closing background application applies B, if memory is enough after closing background application B, without continuing to close It is next to apply, otherwise continue to close next background application A, and so on.
Due to having new application and increasing with subsequent use, also have using deleting, so the self-starting that is switched on It is changed using converging, similarly, the priority of application also has altered, in order to flexibly change using self-starting list and core application column Table, it is preferred that the system also includes list update modules 304, for cooperating front end applications deployment way to update the application Self-starting list and core application list.For example, by the mandatory update list application of more new system of electromechanical box (in Fig. 2 List apk) mode update the application self-starting list and core application list.
It should be pointed out that being divided into these modules above in the description of various modules, being for clarity.So And in actual implementation, the boundary of various modules can be fuzzy.For example, any or all functionalities module herein Various hardware and/or software element can be shared.In another example any and/or all functional modules herein can be by sharing Processor execute software instruction and completely or partially implement.In addition, various softwares being performed by one or more processors Module can be shared between various software modules.Correspondingly, unless explicitly requested, the scope of the present invention not by various hardware and/ Or between software element mandatory boundary limitation.
Based on the same inventive concept, the invention also discloses a kind of set-top box, including memory and processor, the storages Device is realized when the processor is for executing the computer program such as the step of preceding method for storing computer program. Specific implementation process sees the description of above method embodiment, and details are not described herein again.
Based on the same inventive concept, it the invention also discloses a kind of readable storage medium storing program for executing, is deposited on the readable storage medium storing program for executing Computer program is contained, is realized when the computer program is executed by processor such as the step of preceding method.Specific implementation process The description of above method embodiment is seen, details are not described herein again.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The embodiment of the invention also provides a kind of test device, including processor, the processor is for executing memory The step of above method embodiment is realized when the computer program of middle storage, specific implementation process sees above method embodiment Description, details are not described herein again.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of EMS memory management process of set-top box characterized by comprising
In booting, forbid being not present in the application booting self-starting using in self-starting list;
In the low memory that foreground application needs, after the application precedence information provided according to core application list closes part Platform is applied to release enough memories.
2. the EMS memory management process of set-top box according to claim 1, which is characterized in that described to be arranged according to core application The application precedence information that table provides closes part background application to release enough memories, comprising:
Precedence information is applied according to what core application list provided, obtains the priority orders for the background application being currently running;
Do not have the background application of priority if it exists, then closes the background application for not having priority until releasing enough Memory;
If the memory that foreground application needs is still insufficient, according to the sequence of priority from low to high, gradually closes and be currently running Background application until release enough memories.
3. the EMS memory management process of set-top box according to claim 1, which is characterized in that the method also includes: pass through The mode of fit applications obtains the application self-starting list and core application list in advance.
4. the EMS memory management process of set-top box according to claim 1, which is characterized in that the method also includes: pass through Fit applications deployment way updates the application self-starting list and core application list.
5. a kind of internal storage management system of Intelligent set top box characterized by comprising
Be switched on self-starting management module, is used in booting, forbids being not present in using the application booting in self-starting list certainly Starting;
Memory anxiety management module when low memory for needing in foreground application, is answered according to what core application list provided Part background application is closed with precedence information to release enough memories.
6. the internal storage management system of Intelligent set top box according to claim 5, which is characterized in that the memory anxiety management Module is specifically used for: applying precedence information according to what core application list provided, obtains the excellent of the background application being currently running First grade sequence;Do not have the background application of priority if it exists, then closes the background application for not having priority until releasing Enough memories;If the memory that foreground application needs is still insufficient, according to the sequence of priority from low to high, gradually close just In the background application of operation up to releasing enough memories.
7. the internal storage management system of Intelligent set top box according to claim 5, which is characterized in that the system also includes column Table obtains module, and the mode for being coupled application obtains the application self-starting list and core application list in advance.
8. the internal storage management system of Intelligent set top box according to claim 5, which is characterized in that the system also includes column Table update module, for cooperating front end applications deployment way to update the application self-starting list and core application list.
9. a kind of set-top box, which is characterized in that including memory and processor, the memory is used to store computer program, It is realized when the processor is for executing the computer program such as the step of any one of Claims 1-4 the method.
10. a kind of readable storage medium storing program for executing, computer program is stored on the readable storage medium storing program for executing, which is characterized in that the meter It is realized when calculation machine program is executed by processor such as the step of any one of Claims 1-4 the method.
CN201910160026.5A 2019-03-04 2019-03-04 Set-top box, readable storage medium storing program for executing, the EMS memory management process of set-top box and system Pending CN109874058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910160026.5A CN109874058A (en) 2019-03-04 2019-03-04 Set-top box, readable storage medium storing program for executing, the EMS memory management process of set-top box and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910160026.5A CN109874058A (en) 2019-03-04 2019-03-04 Set-top box, readable storage medium storing program for executing, the EMS memory management process of set-top box and system

Publications (1)

Publication Number Publication Date
CN109874058A true CN109874058A (en) 2019-06-11

Family

ID=66919716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910160026.5A Pending CN109874058A (en) 2019-03-04 2019-03-04 Set-top box, readable storage medium storing program for executing, the EMS memory management process of set-top box and system

Country Status (1)

Country Link
CN (1) CN109874058A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080177994A1 (en) * 2003-01-12 2008-07-24 Yaron Mayer System and method for improving the efficiency, comfort, and/or reliability in Operating Systems, such as for example Windows
CN103731371A (en) * 2012-10-16 2014-04-16 中国科学院声学研究所 Method for network data receiving channel management for double-module set top box
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application program
CN104375869A (en) * 2014-11-28 2015-02-25 北京奇虎科技有限公司 Self-starting application control method and device
CN107766128A (en) * 2016-08-17 2018-03-06 华为技术有限公司 A method and device for starting an application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080177994A1 (en) * 2003-01-12 2008-07-24 Yaron Mayer System and method for improving the efficiency, comfort, and/or reliability in Operating Systems, such as for example Windows
CN103731371A (en) * 2012-10-16 2014-04-16 中国科学院声学研究所 Method for network data receiving channel management for double-module set top box
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application program
CN104375869A (en) * 2014-11-28 2015-02-25 北京奇虎科技有限公司 Self-starting application control method and device
CN107766128A (en) * 2016-08-17 2018-03-06 华为技术有限公司 A method and device for starting an application

Similar Documents

Publication Publication Date Title
CN108287669B (en) Date storage method, device and storage medium
US10585691B2 (en) Distribution system, computer, and arrangement method for virtual machine
JP5516744B2 (en) Scheduler, multi-core processor system, and scheduling method
CN104978228B (en) A kind of dispatching method and device of distributed computing system
CN106201566A (en) The rich big special hot upgrade method of software of profit and equipment
CN104899106B (en) Treating method and apparatus when interface service is abnormal
WO2019109513A1 (en) Resource updating method and system, electronic device, and medium
CN107247619A (en) Live migration of virtual machine method, device, system, storage medium and equipment
US8930955B2 (en) Controlling growth in virtual disks via utilization of previously used and free disk block space
CN102662740A (en) Asymmetric multi-core system and realization method thereof
CN108153588A (en) A kind of page navigation method and device, a kind of memory allocation method and device
CN104866577A (en) Data processing method and apparatus based on embedded database
CN106385329A (en) Processing method and device of resource pool and equipment
CN109542590A (en) The method of virtual Socket communication under Docker cluster multi-tenant
CN103559910B (en) The realization intelligence that is applied to cd-rom recorder is switched the system and method for burning/recording chip sequential
US9804903B2 (en) Data processing apparatus for pipeline execution acceleration and method thereof
US20260037317A1 (en) Gpu computational resource scheduling methods and apparatuses
CN104348852B (en) A method, device and system for realizing mass transmission of telecommunication capabilities
CN110413210A (en) For handling the method, equipment and computer program product of data
CN106294037A (en) Strike-machine method of testing and device
CN110399248A (en) A kind of image file creation, acquisition methods, device and server
CN107273187A (en) Reading position acquisition methods and device, computer installation, readable storage medium storing program for executing
CN110019083A (en) Storage method, device, electronic equipment and the storage medium of distributed file system
JP5776813B2 (en) Multi-core processor system, control method and control program for multi-core processor system
CN109977079A (en) A kind of data processing method and device based on distributed file system

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: 20190611