CN104572485B - The distribution method and device of dual system common memory - Google Patents

The distribution method and device of dual system common memory Download PDF

Info

Publication number
CN104572485B
CN104572485B CN201510045210.7A CN201510045210A CN104572485B CN 104572485 B CN104572485 B CN 104572485B CN 201510045210 A CN201510045210 A CN 201510045210A CN 104572485 B CN104572485 B CN 104572485B
Authority
CN
China
Prior art keywords
operating system
memory
storage area
compressed
little use
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.)
Active
Application number
CN201510045210.7A
Other languages
Chinese (zh)
Other versions
CN104572485A (en
Inventor
叶瑞权
张良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201510045210.7A priority Critical patent/CN104572485B/en
Publication of CN104572485A publication Critical patent/CN104572485A/en
Application granted granted Critical
Publication of CN104572485B publication Critical patent/CN104572485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of distribution methods of dual system common memory, include the following steps:Determine the operating system for being currently at running background as the first operating system;Obtain the internal storage data that is of little use of first operating system;The internal storage data that is of little use of first operating system is stored into preset compressed storage area in a compressed format.The invention also discloses a kind of distributors of dual system common memory.Present invention decreases the memory headroom that the operating system of running background occupies, the problem of the effective solution insufficient space of dual system common memory.

Description

The distribution method and device of dual system common memory
Technical field
The present invention relates to dual system technical field of data processing more particularly to the distribution methods and dress of dual system common memory It sets.
Background technology
Currently, during the use of mobile terminal, in order to which expansion system is to the compatibility of application software, need to move Terminal loads two different operating systems simultaneously;Alternatively, in order to increase user experience, meet the need that user attempts new system It asks, it is also desirable to which mobile terminal is loaded into two operating systems simultaneously;Or the stabilization for system, avoid an operating system from collapsing The problem of cannot be started up after bursting can load two operating systems in mobile terminal;Alternatively, in order to improve the safety of system Can, two independently operated operating systems need to be loaded to improve the security performance of system in mobile terminal.
The mobile terminal of dual system runs two operating systems using more and more extensive simultaneously in same mobile terminal When, the two operating system common memories, when the first operating system is in front stage operation, the first operating system can occupy one Divide memory headroom.When terminal switches to the second operating system from the first operating system, the first operating system can enter backstage and transport Row, because the first operating system can be switched back at any time, the memory headroom that the first operating system occupies can't be released, and be caused Second operating system can only use the part memory headroom not occupied by the first operating system so that the second operating system Available memory space is considerably less.And when terminal switches back into the first operating system from the second operating system, second operation system The memory headroom that system occupies will not be released.And operating system is always more and more with using to the occupancy of memory, with The multiple switching between two operating systems, the case where low memory of terminal can be increasingly severe, or even will appear two The case where operating system plunder memory headroom, occurs.In the case of the memory headroom of current intelligent terminal universal very little, backstage The memory that the operating system of operation occupies will not be released, and the memory headroom of the dual system common memory in turn resulted in is insufficient to ask Topic is especially apparent.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
Invention content
The main purpose of the present invention is to provide a kind of distribution methods and device of dual system common memory, it is intended to solve double The problem of the memory headroom deficiency of system common memory.
To achieve the above object, the present invention provides a kind of distribution method of dual system common memory, includes the following steps:
Determine the operating system for being currently at running background as the first operating system;
Obtain the internal storage data that is of little use of first operating system;
The internal storage data that is of little use of first operating system is stored in a compressed format and arrives preset compressed storage area It is interior.
Preferably, described to store the internal storage data that is of little use of first operating system to preset in a compressed format After step in compressed storage area, further include:
When receiving system switching command, determine the operating system for being currently at front stage operation as the second operation system System;
Second operating system is switched into running background, and first operating system is switched into front stage operation.
Preferably, described that second operating system is switched into running background, and first operating system is switched To after the step of front stage operation, further include:
The internal storage data that is of little use of first operating system is obtained out of described compressed storage area, and described first is grasped Make to be written and read in the internal storage data storage to the available storage area other than the compressed storage area that is of little use of system;
Obtain the internal storage data that is of little use of second operating system, and by the memory that is of little use of second operating system Data are stored into preset compressed storage area in a compressed format.
Preferably, the determination was currently at before the step of operating system of running background is as the first operating system, Further include:
The partial memory space of common memory is set as compressed storage area;
Memory headroom in common memory in addition to compressed storage area is set as available storage area.
Preferably, the step of memory headroom by common memory in addition to compressed storage area is set as available storage area Before, further include:
10% memory headroom of common memory is set as compressed storage area.
In addition to achieve the above object, the present invention also provides a kind of common memory distributors of dual system, including:
Determining module, for determining the operating system for being currently at running background as the first operating system;
Acquisition module, the internal storage data that is of little use for obtaining first operating system;
Memory module, for being stored the internal storage data that is of little use of first operating system in a compressed format to default Compressed storage area in.
Preferably, the distributor of the dual system common memory further includes handover module;
The determining module is additionally operable to when receiving system switching command, determines the operation for being currently at front stage operation System is as the second operating system;
The handover module for second operating system to be switched to running background, and described first is operated and is System switches to front stage operation.
Preferably, the memory module is additionally operable to obtain first operating system out of described compressed storage area not Common internal storage data, and by first operating system be of little use internal storage data storage to other than the compressed storage area can With being written and read in memory block;
The memory module, is additionally operable to obtain the internal storage data that is of little use of second operating system, and by described second The internal storage data that is of little use of operating system is stored into preset compressed storage area in a compressed format.
Preferably, the distributor of the dual system common memory further includes memory allocating module;
The memory allocating module, for the partial memory space of common memory to be set as compressed storage area;
The memory allocating module is additionally operable to the memory headroom in common memory in addition to compressed storage area being set as available Memory block.
Preferably, the memory allocating module is additionally operable to 10% memory headroom of common memory being set as compression storage Area.
The present invention by being stored in compression storage in a compressed format by the data that are of little use of the operating system of running background In area, the memory headroom that the operating system of running background occupies, the effective solution space of dual system common memory are reduced Insufficient problem.
Description of the drawings
Fig. 1 is the flow diagram of the first embodiment of the distribution method of dual system common memory of the present invention;
Fig. 2 is the flow diagram of the second embodiment of the distribution method of dual system common memory of the present invention;
Fig. 3 is the flow diagram of an embodiment of present invention setting memory block;
Fig. 4 is the high-level schematic functional block diagram of the preferred embodiment of the distributor of dual system common memory of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
Below in conjunction with the accompanying drawings and specific embodiment is described further with regard to technical scheme of the present invention.It should be appreciated that this The described specific embodiment in place is only used to explain the present invention, is not intended to limit the present invention.
The present invention provides a kind of distribution method of dual system common memory.
Referring to Fig.1, Fig. 1 is the flow diagram of the first embodiment of the distribution method of dual system common memory of the present invention.
It is emphasized that:Flow chart shown in Fig. 1 is only a preferred embodiment, and those skilled in the art appoints when knowing What should not all be detached from the range covered in following technical solution around the embodiment of inventive concept structure:
Determine the operating system for being currently at running background as the first operating system;Obtain first operating system Be of little use internal storage data;The internal storage data that is of little use of first operating system is stored in a compressed format and arrives preset compression In memory block.
It is the specific steps for the distribution method that dual system common memory is done step-by-step in the present embodiment below:
Step S10 determines the operating system for being currently at running background as the first operating system;
Execute the distribution method of dual system common memory of the present invention main body can for smart mobile phone, personal digital assistant, The mobile terminals such as tablet, it is preferred that be the dual system mobile terminal of common memory.The dual system termi-nal of the common memory, can By sharing identical hardware device, two operating systems are loaded in the virtual level of carrying;It can also share including interior presence Interior fractional hardware loads two operating systems.Such as:The dual system termi-nal of the common memory, the first operating system and Two operating systems possess the hardware devices such as respective processor, bus respectively, and share screen, input-output equipment, wirelessly penetrate Frequency equipment and storage device, these shared devices are operated with first operating system and second respectively by multidiameter option switch The bus of system connects.The shared device and the first operating system and the second operating system are controlled by multidiameter option switch Connection keeps the connection of the processor and rambus of two systems with common memory, by the screen, input-output equipment, The bus of the operating system of wireless radios and front stage operation connects, and disconnects the screen, input-output equipment, wirelessly penetrates The bus of frequency equipment and the operating system of running background connects, so that the operating system of front stage operation monopolizes the screen, defeated Enter output equipment, wireless radios.
The operating system can be Android (Android system, Google and open mobile phone alliance joint development Mobile device operation system), Windows Phone (WP systems, Microsoft exploitation mobile phone operating system), IOS (apple movement set Standby operating system, the Mobile operating system of Apple Inc.'s exploitation) or Tizen (Tai Ze, the shifting of Samsung and Intel's joint development Dynamic operating system).The dual system can be two identical operating systems, can also be two different operating systems, example Such as:Two identical operating systems are loaded in same terminal, wherein the operations such as the first operating system is for paying, password authentification, Second operating system is used to entertain, communicate etc. operations, two systems independent operating and improves the safety of system;Alternatively, for Extended software compatibility considers, loads two different operating systems in same terminal so that terminal, which can load, more answers Use software.
Can determine the operating system for being currently at running background as first when the mobile terminal-opening starts Operating system;Can also be to determine the operating system for being currently at running background as the first operation in net system switching process System.
Step S20 obtains the internal storage data that is of little use of first operating system;
The internal storage data of first operating system is divided into common internal storage data and the internal storage data that is of little use, described first Operating system internal storage data necessary to the silent operation in backstage is common internal storage data, and first operating system is quiet on backstage The internal storage data of silent operation institute necessarily is the data that are of little use.The frequently-used data of first operating system presses traditional storage side Formula is stored.The internal storage data that is of little use of first operating system will not when first operating system is in running background It can be called by system, being of little use for first operating system can be just called when first operating system is in front stage operation Internal storage data.After determining the operating system for being currently at running background as the first operating system, from being total to for the dual system With depositing the internal storage data that is of little use for obtaining first operating system in interior.
The internal storage data that is of little use of first operating system is stored and arrives preset pressure by step S30 in a compressed format In contracting memory block;
The internal storage data that is of little use of first operating system is stored in preset compressed storage area in a compressed format It is interior, since the internal storage data that is of little use of first operating system can't be called in running background by system, by its into Row compression storage can effectively reduce the memory headroom that the operating system of running background occupies.And first operating system Common internal storage data is then stored in the available storage area other than the compressed storage area by traditional storage mode and is written and read. Preferably, the partial memory space of common memory is set as compressed storage area.The compressed storage area is in a compressed format Storage is currently at the data that are of little use of the operating system of running background;The reading and writing data of the compressed storage area can by Integrated data compressed and decompressed function module realizes compression and decompression on the Memory Controller Hub of the compressed storage area.It is interior The data that are of little use for the compression that memory controller is obtained by rambus from physical storage, directly in the data decompression Module unzips it processing, and then obtains the data that are of little use after decompression;Likewise, the memory number that is of little use of write-in memory After it can be compressed by the compression module, by rambus storage to compressed storage area.
The present embodiment by being stored in pressure in a compressed format by the internal storage data that is of little use of the operating system of running background In contracting memory block, the memory headroom that the operating system of running background occupies, effective solution dual system common memory are reduced Memory headroom deficiency problem.
It is the flow diagram of the second embodiment of the distribution method of dual system common memory of the present invention with reference to Fig. 2, Fig. 2. The first embodiment of distribution method based on above-mentioned dual system common memory after the step S30, further includes:
Step S410 is determined when receiving system switching command and is currently at the operating system of front stage operation as the Two operating systems;
The system switching command is that can switch to the second operation by the first operating system by hardware switch to trigger The instruction of system;Or icon is touched by the system switching based on user interface and is switched by the first operating system to trigger To the instruction of the second operating system;It is either automatic after the one of operating system collapse of the terminal device of the dual system Triggering switches to the instruction of another operating system.When receiving system switching command, the behaviour for being currently at front stage operation is determined Make system as the second operating system, determines the operating system for being currently at running background as the first operating system.
Second operating system is switched to running background, and first operating system is switched to by step S420 Front stage operation.
The determining operating system for being currently at front stage operation is currently at running background as the second operating system, determination Operating system as the first operating system, second operating system is switched into running background, and described first is operated System switches to front stage operation.When second operating system is switched to running background, second operating system will be adjusted only The common internal storage data necessary to its backstage silence operation, the memory number that is of little use without recalling second operating system According to.When first operating system is switched to front stage operation, first operating system will not only call its running background Necessary common internal storage data, while also to call the internal storage data that is of little use of first operating system.
Step S510 obtains the internal storage data that is of little use of first operating system out of described compressed storage area, and will It is read in the internal storage data storage to the available storage area other than the compressed storage area that is of little use of first operating system It writes;
When first operating system is switched to front stage operation, first operation is obtained out of described compressed storage area The internal storage data that is of little use of system, and the internal storage data that is of little use of first operating system is stored to the compressed storage area It is written and read in available storage area in addition.Preferably, the Memory Controller Hub of the compressed storage area is by rambus, from institute The internal storage data that is of little use for the compressed format that first operating system is obtained in the corresponding physical memory in compressed storage area is stated, and Data decompression module in the compressed storage area unzips it processing, and then obtains the first operating system after decompression The internal storage data that is of little use, and the internal storage data that is of little use of the first operating system after the decompression is deposited by rambus Storage is in the available storage area other than the compressed storage area, in order to which first operating system calls institute in front stage operation State the internal storage data that is of little use of the first operating system.
Step S520, obtains the internal storage data that is of little use of second operating system, and by second operating system The internal storage data that is of little use is stored into preset compressed storage area in a compressed format.
When second operating system is switched to running background, the memory number that is of little use of second operating system is obtained According to, and the internal storage data that is of little use of second operating system is stored into preset compressed storage area in a compressed format. Preferably, the Memory Controller Hub of the compressed storage area obtains second behaviour by rambus from the available storage area Make the internal storage data that is of little use of system, and compression processing is carried out in the data compressing module of the compressed storage area, and then obtains The internal storage data that is of little use of compressed second operating system, and by the memory that is of little use of compressed second operating system Data are stored by rambus into the corresponding physical memory in the compressed storage area.
Further, before the step S10, further include:
The partial memory space of common memory is set as compressed storage area by step S110;
Memory headroom in common memory in addition to compressed storage area is set as available storage area by step S120.
Preferably, the memory headroom of the 10% of the common memory can be set to compressed storage area, is shared described 90% memory headroom of memory is set as available storage area.The available storage area is currently at front stage operation to store The common internal storage data of operating system and the internal storage data that is of little use, and to store the operating system for being currently at running background Common internal storage data.Preferably, the reading and writing data of the compressed storage area can pass through the memory in the compressed storage area The compressed and decompressed function module of integrated data is compressed and decompressed to realize on controller.Memory Controller Hub by rambus from The data that are of little use of the compression obtained on physical storage directly unzip it processing in the data decompression module, into And obtain the data that are of little use after decompression;Likewise, the internal storage data that is of little use of write-in memory can be by the compression mould After block is compressed, by rambus storage to compressed storage area.
The present embodiment obtains after first operating system is switched to front stage operation out of described compressed storage area The internal storage data that is of little use of first operating system, and the internal storage data that is of little use of first operating system is stored to institute It states and is written and read in the available storage area other than compressed storage area;The internal storage data that is of little use of second operating system is obtained, And store the internal storage data that is of little use of second operating system into preset compressed storage area in a compressed format, reduce Memory headroom that the operating system of running background occupies, effective solution the asking of the insufficient space of dual system common memory Topic.
The present invention further provides a kind of common memory distributors of dual system.
With reference to the function module signal that Fig. 4, Fig. 4 are the preferred embodiment of the common memory distributor of dual system of the present invention Figure.
In the present embodiment, the distributor of the dual system common memory includes:Determining module 10, acquisition module 20, Memory module 30, handover module 40 and memory allocating module 50.
The determining module 10, for determining the operating system for being currently at running background as the first operating system;
The main body of the distributor of dual system common memory of the present invention can be smart mobile phone, personal digital assistant, tablet Equal mobile terminals, it is preferred that be the dual system mobile terminal of common memory.The dual system termi-nal of the common memory, Ke Yitong It crosses and shares identical hardware device, two operating systems are loaded in the virtual level of carrying;It can also share including memory Fractional hardware loads two operating systems.Such as:The dual system termi-nal of the common memory, the first operating system and the second behaviour Make system and possess the hardware devices such as respective processor, bus respectively, and shares screen, input-output equipment, less radio-frequency and set Standby and storage device, these shared devices by multidiameter option switch respectively with first operating system and the second operating system Bus connection.The company of the shared device and the first operating system and the second operating system is controlled by multidiameter option switch It connects, keeps the connection of the processor and rambus of two systems with common memory, by the screen, input-output equipment, nothing The bus of the operating system of line radio-frequency apparatus and front stage operation connects, and disconnects the screen, input-output equipment, less radio-frequency The bus of equipment and the operating system of running background connects, so that the operating system of front stage operation monopolizes the screen, input Output equipment, wireless radios.
The operating system can be Android (Android system, Google and open mobile phone alliance joint development Mobile device operation system), Windows Phone (WP systems, Microsoft exploitation mobile phone operating system), IOS (apple movement set Standby operating system, the Mobile operating system of Apple Inc.'s exploitation) or Tizen (Tai Ze, the shifting of Samsung and Intel's joint development Dynamic operating system).The dual system can be two identical operating systems, can also be two different operating systems, example Such as:Two identical operating systems are loaded in same terminal, wherein the operations such as the first operating system is for paying, password authentification, Second operating system is used to entertain, communicate etc. operations, two systems independent operating and improves the safety of system;Alternatively, for Extended software compatibility considers, loads two different operating systems in same terminal so that terminal, which can load, more answers Use software.
Can determine the operating system for being currently at running background as first when the mobile terminal-opening starts Operating system;Can also be to determine the operating system for being currently at running background as the first operation in net system switching process System.
The acquisition module 20, the internal storage data that is of little use for obtaining first operating system;
The internal storage data of first operating system is divided into common internal storage data and the internal storage data that is of little use, described first Operating system internal storage data necessary to the silent operation in backstage is common internal storage data, and first operating system is quiet on backstage The internal storage data of silent operation institute necessarily is the data that are of little use.The frequently-used data of first operating system presses traditional storage side Formula is stored.The internal storage data that is of little use of first operating system will not when first operating system is in running background It can be called by system, being of little use for first operating system can be just called when first operating system is in front stage operation Internal storage data.After determining the operating system for being currently at running background as the first operating system, from being total to for the dual system With depositing the internal storage data that is of little use for obtaining first operating system in interior..
The memory module 30, for storing the internal storage data that is of little use of first operating system in a compressed format Into preset compressed storage area.
The internal storage data that is of little use of first operating system is stored in preset compressed storage area in a compressed format It is interior, since the internal storage data that is of little use of first operating system can't be called in running background by system, by its into Row compression storage can effectively reduce the memory headroom that the operating system of running background occupies.And first operating system Common internal storage data is then stored in the available storage area other than the compressed storage area by traditional storage mode and is written and read. Preferably, the partial memory space of common memory is set as compressed storage area.The compressed storage area is in a compressed format Storage is currently at the data that are of little use of the operating system of running background;The reading and writing data of the compressed storage area can by Integrated data compressed and decompressed function module realizes compression and decompression on the Memory Controller Hub of the compressed storage area.It is interior The data that are of little use for the compression that memory controller is obtained by rambus from physical storage, directly in the data decompression Module unzips it processing, and then obtains the data that are of little use after decompression;Likewise, the memory number that is of little use of write-in memory After it can be compressed by the compression module, by rambus storage to compressed storage area.
The determining module 10 is additionally operable to when receiving system switching command, determines the behaviour for being currently at front stage operation Make system as the second operating system;
The system switching command can be to switch to the second operation by the first operating system by hardware switch to trigger The instruction of system;Or icon is touched by the system switching based on user interface and is switched by the first operating system to trigger To the instruction of the second operating system;It is either automatic after the one of operating system collapse of the terminal device of the dual system Triggering switches to the instruction of another operating system.When receiving system switching command, the behaviour for being currently at front stage operation is determined Make system as the second operating system, determines the operating system for being currently at running background as the first operating system.
The handover module 40 for second operating system to be switched to running background, and described first is operated System switches to front stage operation.
The determining operating system for being currently at front stage operation is currently at running background as the second operating system, determination Operating system as the first operating system, second operating system is switched into running background, and described first is operated System switches to front stage operation.When second operating system is switched to running background, second operating system will be adjusted only The common internal storage data necessary to its backstage silence operation, the memory number that is of little use without recalling second operating system According to.When first operating system is switched to front stage operation, first operating system will not only call its running background Necessary common internal storage data will also call the internal storage data that is of little use of first operating system simultaneously.
Further, the memory module 30 is additionally operable to obtain first operating system out of described compressed storage area The internal storage data that is of little use, and by the being of little use internal storage data storage of first operating system to other than the compressed storage area Available storage area in be written and read;
When first operating system is switched to front stage operation, first operation is obtained out of described compressed storage area The internal storage data that is of little use of system, and the internal storage data that is of little use of first operating system is stored to the compressed storage area It is written and read in available storage area in addition.Preferably, the Memory Controller Hub of the compressed storage area is by rambus, from institute The internal storage data that is of little use for the compressed format that first operating system is obtained in the corresponding physical memory in compressed storage area is stated, and Data decompression module in the compressed storage area unzips it processing, and then obtains the first operating system after decompression The internal storage data that is of little use, and the internal storage data that is of little use of the first operating system after the decompression is deposited by rambus Storage is in the available storage area other than the compressed storage area, in order to which first operating system calls institute in front stage operation State the internal storage data that is of little use of the first operating system.
The memory module 30, is additionally operable to obtain the internal storage data that is of little use of second operating system, and by described The internal storage data that is of little use of two operating systems is stored into preset compressed storage area in a compressed format.
When second operating system is switched to running background, the memory number that is of little use of second operating system is obtained According to, and the internal storage data that is of little use of second operating system is stored into preset compressed storage area in a compressed format. Preferably, the Memory Controller Hub of the compressed storage area obtains second behaviour by rambus from the available storage area Make the internal storage data that is of little use of system, and compression processing is carried out in the data compressing module of the compressed storage area, and then obtains The internal storage data that is of little use of compressed second operating system, and by the memory that is of little use of compressed second operating system Data are stored by rambus into the corresponding physical memory in the compressed storage area.
The memory allocating module 50, for the partial memory space of common memory to be set as compressed storage area;It is additionally operable to Memory headroom in common memory in addition to compressed storage area is set as available storage area.
Preferably, the memory headroom of the 10% of the common memory can be set to compressed storage area, is shared described 90% memory headroom of memory is set as available storage area.The available storage area is currently at front stage operation to store The common internal storage data of operating system and the internal storage data that is of little use, and to store the operating system for being currently at running background Common internal storage data.Preferably, the reading and writing data of the compressed storage area can pass through the memory in the compressed storage area The compressed and decompressed function module of integrated data is compressed and decompressed to realize on controller.Memory Controller Hub by rambus from The data that are of little use of the compression obtained on physical storage directly unzip it processing in the data decompression module, into And obtain the data that are of little use after decompression;Likewise, the internal storage data that is of little use of write-in memory can be by the compression mould After block is compressed, by rambus storage to compressed storage area.
The present embodiment is deposited by the way that the data that are of little use of the operating system of running background are stored in compression in a compressed format In storage area, the frequently-used data of the frequently-used data of the operating system of running background and front stage operation and the data that are of little use are stored in pressure In available storage area other than contracting memory block, the memory headroom that the operating system of running background occupies, effective solution are reduced The problem of insufficient space of dual system common memory.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of distribution method of dual system common memory, which is characterized in that include the following steps:
Determine that the operating system for being currently at running background as the first operating system, is currently at the operating system of front stage operation For the second operating system;
The internal storage data that is of little use of first operating system is obtained, silent operation need not on backstage for first operating system The internal storage data of palpus is the internal storage data that is of little use;
The internal storage data that is of little use of first operating system is stored into preset compressed storage area in a compressed format, in advance If the compressed storage area domain be first operating system and second operating system common memory partial memory Space, the internal storage data that is of little use for storing the operating system for being currently at running background in a compressed format;
When receiving system switching command, determine the operating system for being currently at front stage operation as the second operating system;
Second operating system is switched into running background, and first operating system is switched into front stage operation.
2. the distribution method of dual system common memory as described in claim 1, which is characterized in that described to be operated described second System switches to running background, and after the step of first operating system is switched to front stage operation, further includes:
The internal storage data that is of little use of first operating system is obtained out of described compressed storage area, and is by first operation It is written and read in the internal storage data storage to the available storage area other than the compressed storage area that is of little use of system;
Obtain the internal storage data that is of little use of second operating system, and by the internal storage data that is of little use of second operating system In a compressed format in storage to preset compressed storage area.
3. such as the distribution method of claim 1 to 2 any one of them dual system common memory, which is characterized in that the determination It is currently at before the step of operating system of running background is as the first operating system, further includes:
The partial memory space of common memory is set as compressed storage area;
Memory headroom in common memory in addition to compressed storage area is set as available storage area.
4. the distribution method of dual system common memory as claimed in claim 3, which is characterized in that described to be removed in common memory Before the step of memory headroom other than compressed storage area is set as available storage area, further include:
10% memory headroom of common memory is set as compressed storage area.
5. a kind of distributor of dual system common memory, which is characterized in that including:
Determining module, for determining the operating system for being currently at running background as the first operating system;
Acquisition module, the internal storage data that is of little use for obtaining first operating system, first operating system is on backstage Silence operation institute internal storage data necessarily is the internal storage data that is of little use;
Memory module arrives preset pressure for storing the internal storage data that is of little use of first operating system in a compressed format In contracting memory block, the preset compressed storage area domain is that first operating system and sharing for second operating system are interior The partial memory space deposited, the memory number that is of little use for storing the operating system for being currently at running background in a compressed format According to;
The determining module is additionally operable to when receiving system switching command, determines the operating system for being currently at front stage operation As the second operating system;
The handover module for second operating system to be switched to running background, and first operating system is cut Shift to front stage operation.
6. the distributor of dual system common memory as claimed in claim 5, which is characterized in that the memory module is also used In the internal storage data that is of little use for obtaining first operating system out of described compressed storage area, and by first operating system The internal storage data storage that is of little use to being written and read in the available storage area other than the compressed storage area;
The memory module is additionally operable to obtain the internal storage data that is of little use of second operating system, and described second is operated The internal storage data that is of little use of system is stored into preset compressed storage area in a compressed format.
7. such as the distributor of claim 5 to 6 any one of them dual system common memory, which is characterized in that double systems The distributor for common memory of uniting further includes memory allocating module;
The memory allocating module, for the partial memory space of common memory to be set as compressed storage area;
The memory allocating module is additionally operable to the memory headroom in common memory in addition to compressed storage area being set as available storage Area.
8. the distributor of dual system common memory as claimed in claim 7, which is characterized in that the memory allocating module, It is additionally operable to 10% memory headroom of common memory being set as compressed storage area.
CN201510045210.7A 2015-01-28 2015-01-28 The distribution method and device of dual system common memory Active CN104572485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510045210.7A CN104572485B (en) 2015-01-28 2015-01-28 The distribution method and device of dual system common memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510045210.7A CN104572485B (en) 2015-01-28 2015-01-28 The distribution method and device of dual system common memory

Publications (2)

Publication Number Publication Date
CN104572485A CN104572485A (en) 2015-04-29
CN104572485B true CN104572485B (en) 2018-10-02

Family

ID=53088614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510045210.7A Active CN104572485B (en) 2015-01-28 2015-01-28 The distribution method and device of dual system common memory

Country Status (1)

Country Link
CN (1) CN104572485B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608782B (en) * 2016-07-11 2021-01-29 斑马智行网络(香港)有限公司 Memory compression method and device, operating system and electronic equipment
CN107844713A (en) * 2016-09-18 2018-03-27 展讯通信(上海)有限公司 A kind of electronic equipment for running credible performing environment
CN106484149B (en) * 2016-09-22 2020-05-26 联想(北京)有限公司 Electronic device
CN107193651B (en) * 2017-04-18 2019-11-12 广州视源电子科技股份有限公司 Dual system internal memory sharing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199791A (en) * 2014-08-15 2014-12-10 深圳市中兴移动通信有限公司 Mobile terminal and dual-system file transfer method and device thereof
CN104216777A (en) * 2014-08-29 2014-12-17 宇龙计算机通信科技(深圳)有限公司 Double-system electronic device and terminal
CN104281528A (en) * 2013-07-09 2015-01-14 浙江大华技术股份有限公司 Data storage method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081553B (en) * 2009-12-01 2013-05-01 联想(北京)有限公司 Portable equipment task processing method and device as well as portable equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281528A (en) * 2013-07-09 2015-01-14 浙江大华技术股份有限公司 Data storage method and device
CN104199791A (en) * 2014-08-15 2014-12-10 深圳市中兴移动通信有限公司 Mobile terminal and dual-system file transfer method and device thereof
CN104216777A (en) * 2014-08-29 2014-12-17 宇龙计算机通信科技(深圳)有限公司 Double-system electronic device and terminal

Also Published As

Publication number Publication date
CN104572485A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104572485B (en) The distribution method and device of dual system common memory
CN104796957B (en) Multi-card multi-standby mobile terminal and its Subscriber Identity Module switching method and apparatus
CN103744821B (en) Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
US20170195929A1 (en) Method and device for realizing automatic call transfer in a dual sim dual standby mobile phone
CN103744729B (en) The computer system of system capable of switching operation
US20170199501A1 (en) Supporting Virtually Simultaneous Operation of Dual Wireless Protocols in a Single Device
WO2014106410A1 (en) Method for terminal acceleration, terminal and storage medium
EP3211527A1 (en) Multi-screen sharing based application management method and device, and storage medium
CN107534475B (en) Method for controlling transmitting power of wireless communication terminal and wireless communication terminal
CN109495875B (en) SIM card selection method and device, electronic equipment and storage medium
CN103559055A (en) Activity starting method and device applied to Android platform
CN104123056B (en) A kind of method, apparatus and terminal of user interface switching
WO2017096771A1 (en) Method and device for storage control of application cache data
CN103748958B (en) Mobile telephone with multiple cards and display methods
EP3286934B1 (en) System and method for managing logical channels for accessing several virtual profiles in a secure element
CN107526601A (en) A kind of mobile terminal method of adjustment, mobile terminal and storage medium
CN110177357B (en) Bluetooth management method, mobile terminal and computer storage medium
US9602464B2 (en) Apparatus, system and method for allocating identifiers to components of a control system
CN110708691A (en) Information processing method and electronic equipment
CN104102498B (en) A kind of mobile terminal and its starting-up method
CN110856161A (en) SIM card setting method, terminal and computer storage medium
CN103458394A (en) Mobile terminal, processing method and processing device for internal information of mobile terminal
US20180083690A1 (en) Antenna Allocation Method and Terminal
CN105988848A (en) Application installation method of multi-system terminal, application installation apparatus of multi-system terminal and terminal
CN106155676A (en) The access control method of a kind of application program, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant