CN107193651A - Dual-system memory sharing method and device - Google Patents
Dual-system memory sharing method and device Download PDFInfo
- Publication number
- CN107193651A CN107193651A CN201710253733.XA CN201710253733A CN107193651A CN 107193651 A CN107193651 A CN 107193651A CN 201710253733 A CN201710253733 A CN 201710253733A CN 107193651 A CN107193651 A CN 107193651A
- Authority
- CN
- China
- Prior art keywords
- internal memory
- file
- active volume
- current
- consuming
- 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
- 230000015654 memory Effects 0.000 title claims abstract description 167
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000009977 dual effect Effects 0.000 claims description 41
- 230000011218 segmentation Effects 0.000 claims description 36
- 238000012544 monitoring process Methods 0.000 claims description 13
- 230000003993 interaction Effects 0.000 description 6
- 230000002452 interceptive effect Effects 0.000 description 5
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
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
-
- 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/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A dual-system memory sharing method and device are provided, the method comprises: when a file is written, the available capacity of the memories of the first system and the second system is calculated respectively; when the available capacity of the memories of the first system and the second system is smaller than the occupied space of the written current file, and the total available capacity of the memories of the first system and the second system is larger than the occupied space of the current file, the current file is divided into two blocks which are stored in the first system and the second system respectively. The invention divides the written file into two parts which are respectively stored in two systems. The method and the device for sharing the dual-system memory improve the utilization efficiency of the dual-system memory.
Description
Technical field
The present invention relates to technical field of electronic equipment, more particularly to a kind of dual system internal memory sharing method and device.
Background technology
Dual system interactive intelligence equipment reaches its maturity, and is widely used in the neck such as education and instruction, enterprise's meeting, commercial exhibition
Domain, can be effectively improved communication environment, lifting Group Communication efficiency.In existing interactive intelligence equipment, two Android are generally set
Two android systems of module loading.Wherein, the Android modules often from TV schemes are used for as main frame (Host machines)
Input and output and display are used, and another Android module, as slave (Slave machines), is system when user normally uses.
In existing dual system interactive intelligence equipment, the internal memory of two systems can not be shared, and can only be deposited when receiving file
Store up in the system that current foreground is run, it is impossible to make full use of the internal memory of two systems, cause dual system interactive intelligence equipment
Internal memory utilization ratio is low, Consumer's Experience is poor.
The content of the invention
In view of above-mentioned condition, it is necessary to for two systems in the prior art internal memory using power it is low the problem of there is provided
A kind of dual system internal memory sharing method and device.
The invention provides a kind of dual system internal memory sharing method, including:
When carrying out file write-in, the active volume of the internal memory of the first system and second system is calculated respectively;
When the active volume of the first system and the internal memory of the second system is respectively less than accounting for for the current file of write-in
The occupancy for being more than the current file with total active volume in space, and the internal memory of the first system and the second system is empty
Between when, the current file is divided into two piecemeals, is respectively stored in the first system and the second system, its
In, be stored in the piecemeal of the first system space-consuming be less than or internal memory equal to the first system available appearance
Amount, be stored in the piecemeal of the second system space-consuming be less than or internal memory equal to the second system available appearance
Amount.
Above-mentioned dual system internal memory sharing method, wherein, it is described that the current file is divided into two piecemeals, store respectively
Also include after step in the first system and the second system:
When the storage file for monitoring any one system occurs to delete or removed, calculate generation storage file and delete or move
The active volume of the internal memory of current system after removing;
Judge whether the space-consuming of the piecemeal in another system is less than or equal to the internal memory of the current system
Active volume, if so, the piecemeal of another system is moved in the current system;
Two piecemeals for belonging to identical file in the current system are merged into original.
Above-mentioned dual system internal memory sharing method, wherein, it is described that the current file is divided into two piecemeals, store respectively
Step in the first system and the second system includes:
The current file is split according to the active volume of the internal memory of the first system, space-consuming is obtained equal to described
The piecemeal of the active volume of the internal memory of the first system, and store it in the first system;
The remainder of the current file after segmentation is stored in the second system.
Above-mentioned dual system internal memory sharing method, wherein, it is described that the current file is divided into two piecemeals, store respectively
Step in the first system and the second system includes:
The ratio between active volume of internal memory of the first system and the second system is calculated, the current file is split
It is equal to two piecemeals of the ratio between the active volume as the ratio between space-consuming, is respectively stored in the first system and described the
In two system.
Above-mentioned dual system internal memory sharing method, wherein, the first system and the second system by LAN or
Passage is debugged by ADB to connect.
Present invention also offers a kind of dual system memory sharing device, including:
Internal memory computing module, for carrying out during file write-in, calculate respectively the first system and second system internal memory can
Use capacity;
Split memory module, for being write when the active volume of the first system and the internal memory of the second system is respectively less than
The space-consuming of the current file entered, and the internal memory of the first system and the second system total active volume be more than it is described
During the space-consuming of current file, the current file is divided into two piecemeals, the first system and institute is respectively stored in
State in second system, wherein, the space-consuming for being stored in the piecemeal of the first system is less than or is equal to described first
The active volume of the internal memory of system, the space-consuming for being stored in the piecemeal of the second system is less than or is equal to described second
The active volume of the internal memory of system.
Above-mentioned dual system memory sharing device, in addition to:
Monitoring modular, deletes or removes for detecting whether the first system and the second system occur file;
Mobile module, for being less than or equal to the current system when the space-consuming of the piecemeal in another system
During the active volume of internal memory, the piecemeal in another system is moved in the current system;
Merging module, for two piecemeals for belonging to identical file in the current system to be merged into original;
The internal memory computing module is additionally operable to:
When the storage file for monitoring any one system occurs to delete or removed, calculate generation storage file and delete or move
The active volume of the internal memory of current system after removing.
Above-mentioned dual system memory sharing device, wherein, the segmentation memory module includes:
First segmentation sub-module stored, for the internal memory according to the first system active volume segmentation described in ought be above
Part, obtains the piecemeal of active volume of the space-consuming equal to the internal memory of the first system, and stores it in described first and be
In system;
Second segmentation sub-module stored, the second system is stored in by the remainder of the current file after segmentation
In.
Above-mentioned dual system memory sharing device, wherein, the segmentation memory module includes:
Capacity Ratio computing module, for calculate the first system and the second system internal memory active volume it
Than;
3rd segmentation sub-module stored, can be used for the current file to be partitioned into the ratio between space-consuming equal to described
Two piecemeals of the ratio between capacity, and be respectively stored in the first system and the second system.
Above-mentioned dual system memory sharing device, wherein, the first system and the second system by LAN or
Passage is debugged by ADB to connect.
The present invention is respectively present in two systems by being two parts by the file division of write-in.Solve two systems
Internal memory active volume be respectively less than write-in current file space-consuming, and the total active volume of internal memory of two systems is more than
During the space-consuming of current file, it is impossible to the problem of storing the file of write-in, the utilization ratio of dual system internal memory is improved.
Brief description of the drawings
Fig. 1 is the dual system internal memory sharing method flow chart in first embodiment of the invention;
Fig. 2 is the dual system internal memory sharing method flow chart in second embodiment of the invention;
Fig. 3 is the dual system internal memory sharing method flow chart in third embodiment of the invention;
Fig. 4 be fourth embodiment of the invention in dual system memory sharing device structured flowchart.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
With reference to following description and accompanying drawing, it will be clear that these and other aspects of embodiments of the invention.In these descriptions
In accompanying drawing, some particular implementations in embodiments of the invention are specifically disclosed, to represent the implementation for implementing the present invention
Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, the present invention
Embodiment includes all changes, modification and the equivalent fallen into the range of the spirit and intension of attached claims.
Referring to Fig. 1, be the dual system internal memory sharing method in first embodiment of the invention, including step S11~S12.
Step S11, when carrying out file write-in, calculates the active volume of the internal memory of the first system and second system respectively.
In the present embodiment, the first system and the second system are installed in same dual system intelligent interaction device
On, the dual system intelligent interaction device is, for example, interactive intelligent tablet computer, and there are two Android (Android) modules to load respectively for it
Two android systems.Wherein pluggable Android modules are used as Host as Slave machines, another Android module
Machine.The first system in the present embodiment is the android system as Host machines, and second system is the Android systems of Slave machines
System.
Two android systems are by LAN or pass through ADB (Android Debug Bridge, Android debugging
Bridger) debugging passage connection, row information of going forward side by side interaction.In the dual system intelligent interaction device, the first system and second
System is respectively provided with a set of independent hardware, such as each has an internal memory.Certainly, the first system and second system can also share spy
Fixed hardware, such as keyboard, mouse or touch-screen.
The first system and second system can be can use by system interface calculating memory space, used, total capacity, and second is
System is notified to the first system by the numerical value calculated by LAN or by ADB debugging Channel Synchronous.It can obtain first
Total active volume of the active volume and the first system of the internal memory of system and second system and the internal memory of second system.
Step S12, when the active volume of the first system and the internal memory of the second system is respectively less than the current of write-in
The space-consuming of file, and total active volume of the internal memory of the first system and the second system is more than the current file
Space-consuming when, the current file is divided into two piecemeals, being respectively stored in the first system and described second is
In system.Wherein, the space-consuming for being stored in the piecemeal of the first system is less than or equal to the internal memory of the first system
Active volume, the space-consuming for being stored in the piecemeal of the second system is less than or equal to the internal memory of the second system
Active volume.
In the prior art, when the active volume of the internal memory of two systems is respectively less than the space-consuming of the current file of write-in,
And total active volume of two systems be more than current file space-consuming when, it is impossible to make full use of the internal memory of two systems to carry out
The storage of file.
In order to solve this problem, the file of write-in is carried out segmentation and is respectively stored in two systems by the present embodiment.
When carrying out file division and storage, file division is carried out according to default splitting scheme, after the internal memory of current system has been used
Reuse the internal memory of another system.That is, the current file is split according to the active volume of the internal memory of the first system,
The piecemeal of active volume of the space-consuming equal to the internal memory of the first system is obtained, and stores it in the first system
In;The remainder of the current file after segmentation is stored in the second system.
For example, the first system needs to write 80MB video file, the active volume of the internal memory of the first system is
60MB, when the active volume of the internal memory of second system is 40MB, by two points that the file division of the 80MB is 60MB and 20MB
Block, is respectively stored in the first system and second system.
It should be understood that when splitting to current file, can also be according to the active volume of the internal memory of two systems
Ratio is split.Such as the first system needs to write 80MB video file, the active volume of the internal memory of the first system
For 60MB, the active volume of the internal memory of second system is 40MB, the active volume of the internal memory of the first system and the second system
The ratio between be equal to 3/2, be that space-consuming is respectively equal to 48MB and 32MB two piecemeals by the file division of the 80MB, store respectively
In the first system and second system.It is of course also possible to default others splitting scheme.
The present embodiment is respectively present in two systems by being two parts by the file division of write-in.Solving two is
The active volume of the internal memory of system is respectively less than the space-consuming of the current file of write-in, and the total active volume of internal memory of two systems is big
When the space-consuming of current file, it is impossible to the problem of storing the file of write-in, the utilization ratio of dual system internal memory is improved.
It should be understood that the system mentioned in other embodiments of the present invention is except for android system, can also be
Windows Phone systems (WP systems), Windows systems or IOS systems (apple mobile device operation system).It is described double
System can be two identical systems or two different systems.
Referring to Fig. 2, be the dual system internal memory sharing method in second embodiment of the invention, including step S21~S25.
Step S21, when carrying out file write-in, calculates the active volume of the internal memory of the first system and second system respectively.
Step S22, when the active volume of the first system and the internal memory of the second system is respectively less than the current of write-in
The space-consuming of file, and total active volume of the internal memory of the first system and the second system is more than the current file
Space-consuming when, the current file is divided into two piecemeals, being respectively stored in the first system and described second is
In system.
In above-mentioned steps, described it will work as according to the ratio between active volume of internal memory of the first system and the second system
Preceding document is partitioned into two piecemeals of the ratio between the space-consuming equal to the ratio between the active volume, and is respectively stored in described first
In system and the second system.
Step S23, when the storage file for monitoring any one system occurs to delete or removed, calculates and occurs storage file
The active volume of the internal memory of current system after deleting or removing.
Step S24, judges whether the space-consuming of the piecemeal in another system is less than or equal to the current system
Internal memory active volume, if so, the piecemeal in another system is moved in the current system.The piecemeal
The movement between passage carry out system is debugged by LAN or by ADB, wherein ADB debugging passages are primarily adapted for use in two and are
During system is the equipment of android system.
If there is the piecemeal of multiple files in two systems, then divided successively according to the sequencing of the time of segmentation
The merging of file after cutting.That is, two piecemeals of the file first split preferentially are merged, and are being entered after the completion of a Piece file mergence
The merging of the next file of row, until the active volume of the internal memory of current system is not enough to accommodate any one in another system point
Block.
It should be understood that the merging of piecemeal can also be carried out according to the priority of divided file.I.e. priority is higher
File, more first merge.
Two piecemeals for belonging to identical file in the current system are merged into original by step S25.
It is not only fully sharp in the present embodiment, it is necessary to which two piecemeals of the file after segmentation are merged when reading file
The file of write-in is split with the internal memory of two systems, and the file after segmentation is merged.The present embodiment passes through
Memory space monitoring service is set, in real time the internal memory change of monitoring the first system and second system.When any one system, such as
When the storage file of one system occurs to delete or be moved to other memory spaces, therefore the internal memory of the first system increases.Now, count
The active volume of the internal memory of the first system is calculated, and judges whether the space-consuming of the piecemeal in second system is less than or equal to first
The active volume of the internal memory of system.In this way, then the piecemeal of second system is moved in the first system, and it is corresponding
Another piecemeal is merged into original.
It should be understood that when the storage file of second system occurs to delete or be mobile, the merging to the file after segmentation
Process is essentially identical with said process, will not be repeated here.
Referring to Fig. 3, be the dual system internal memory sharing method in third embodiment of the invention, including step S31~S40.
Step S31, when carrying out file write-in, calculates the active volume of the internal memory of the first system and second system respectively.
Step S32, judges whether the active volume of the internal memory of the first system is more than or equal to the current file of write-in
Space-consuming, if so, performing step S33, otherwise perform step S34.
Step S33, the current file is stored in the first system.
Step S34, judges whether the active volume of the internal memory of the second system is more than or equal to the current file of write-in
Space-consuming, if performing step S35, otherwise perform step S36.
Step S35, the current file is stored in the second system.
Step S36, judges whether total active volume of the internal memory of the first system and second system is more than the current file
Space-consuming, if so, performing step S37.
Step S37, is divided into two piecemeals by the current file, is respectively stored in the first system and described second
In system.Also, the space-consuming of the piecemeal of the first system is stored in be less than or equal in the first system
The active volume deposited, the space-consuming for being stored in the piecemeal of the second system is less than or equal in the second system
The active volume deposited.
In above-mentioned steps, when the current file is divided into two piecemeals, the segmentation information of the current file is protected
Exist in the first system, the segmentation information includes the store path information of each piecemeal, the occupancy of each piecemeal
The affiliated fileinfo in space, the MD5 values of each piecemeal and each piecemeal.
Step S38, when the storage file for monitoring any one system occurs to delete or removed, calculates and occurs storage file
The active volume of the internal memory for the current system deleted or removed.
Step S39, judges whether the space-consuming of the piecemeal in another system is less than or equal to the current system
Internal memory active volume, if so, the piecemeal in another system is moved in the current system.
Above-mentioned steps, the store path information of each piecemeal stored according to the first system and each described divide
The space-consuming of block searches the piecemeal in another system and determines whether its space-consuming is less than or equal to the current system
The active volume of the internal memory of system.
Two piecemeals for belonging to identical file in the current system are merged into original by step S40.
In above-mentioned steps, the affiliated fileinfo of each piecemeal stored according to the current system will belong to same
Two piecemeals of file merge into original.Two piecemeals confirm the integrality of file according to MD5 values after merging.
When writing a file, if the active volume of the internal memory of the first system or second system is enough, by the text of write-in
Part is stored in the enough systems of internal memory.If the internal memory of two systems is inadequate, and the total of the internal memory of two systems can use
Then the file division of write-in is respectively stored in two systems for two piecemeals when capacity is enough.
When file is split, the segmentation information of file is stored in the first system.The segmentation information includes:
The store path information of each piecemeal, i.e., each piecemeal is stored in the road of the memory space of correspondence system
Footpath, is easy to search and the mobile piecemeal during Piece file mergence;
The space-consuming of each piecemeal, i.e., the size of each piecemeal;
Which file the affiliated fileinfo of each piecemeal, i.e., each piecemeal belongs to.During Piece file mergence
Two piecemeals for originally belonging to identical file are merged into by original according to the affiliated fileinfo of each piecemeal.
Further, after the Piece file mergence of segmentation, the segmentation information of the file after merging is deleted.
Referring to Fig. 4, be the dual system memory sharing device in fourth embodiment of the invention, including:
Internal memory computing module 10, for carrying out during file write-in, calculates the internal memory of the first system and second system respectively
Active volume;
Split memory module 20, for being respectively less than when the active volume of the first system and the internal memory of the second system
The space-consuming of the current file of write-in, and total active volume of the internal memory of the first system and the second system is more than institute
When stating the space-consuming of current file, the current file is divided into two piecemeals, be respectively stored in the first system and
In the second system.The space-consuming for being stored in the piecemeal of the first system is less than or equal to the first system
The active volume of internal memory, the space-consuming for being stored in the piecemeal of the second system is less than or equal to the second system
The active volume of internal memory.
Further, the segmentation memory module 20 includes:
First segmentation sub-module stored, for the internal memory according to the first system active volume segmentation described in ought be above
Part, obtains the piecemeal of active volume of the space-consuming equal to the internal memory of the first system, and stores it in described first and be
In system;
Second segmentation sub-module stored, for the remainder of the current file after segmentation to be stored in into described second
In system.
Further, in another embodiment of the present invention, the segmentation memory module 20 includes:
Capacity Ratio computing module, for calculate the first system and the second system internal memory active volume it
Than;
3rd segmentation sub-module stored, can be used for the current file to be partitioned into the ratio between space-consuming equal to described
Two piecemeals of the ratio between capacity, and be respectively stored in the first system and the second system.
In the present embodiment, the two systems of dual system intelligent interaction device debug passage by LAN or by ADB
Connect, the interaction of the information such as style of writing of going forward side by side part, data.When writing a file, each system is detected by internal memory computing module 10
Interior active volume, when the active volume of the internal memory of two systems is respectively less than the space-consuming of the file of write-in, and described two
When total active volume of individual system is more than the space-consuming of the file of write-in, the file division of write-in is by segmentation memory module 20
Two piecemeals, are respectively stored in two systems.
Further, above-mentioned dual system memory sharing device also includes:
Monitoring modular 30, deletes or removes for detecting whether the first system and the second system occur file;
Mobile module 40, for being less than or equal to the current system when the space-consuming of the piecemeal in another system
Internal memory active volume when, the piecemeal in another system is moved in the current system;
Merging module 50, for two piecemeals for belonging to identical file in the current system to be merged into original text
Part;
The internal memory computing module 10 is additionally operable to:
When the storage file for monitoring any one system occurs to delete or removed, calculate generation storage file and delete or move
The active volume of the internal memory of current system after removing.
When monitoring modular 30 monitors that the storage file of any one system occurs to delete or removed, internal memory computing module 10
Calculate the active volume of the internal memory for the current system for occurring to delete or remove.Also, mobile module 40 will take in another system
The piecemeal that space is less than or equal to the active volume of the internal memory of the current system is moved in the current system.Lead to again
Cross merging module 50 and two piecemeals in the current system are merged into original.By two points of the file after segmentation
Merged block is that original can be read.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described
Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any
One or more embodiments or example in combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not
In the case of departing from the principle and objective of the present invention a variety of change, modification, replacement and modification can be carried out to these embodiments, this
The scope of invention is limited by claim and its equivalent.
Claims (10)
1. a kind of dual system internal memory sharing method, it is characterised in that including:
When carrying out file write-in, the active volume of the internal memory of the first system and second system is calculated respectively;
When the occupancy that the active volume of the first system and the internal memory of the second system is respectively less than the current file of write-in is empty
Between, and space-consuming of total active volume more than the current file of the internal memory of the first system and the second system
When, the current file is divided into two piecemeals, is respectively stored in the first system and the second system, wherein,
Be stored in the piecemeal of the first system space-consuming be less than or internal memory equal to the first system active volume,
Be stored in the piecemeal of the second system space-consuming be less than or internal memory equal to the second system active volume.
2. dual system internal memory sharing method as claimed in claim 1, it is characterised in that described to be divided into the current file
Also include after two piecemeals, the step being respectively stored in the first system and the second system:
When the storage file for monitoring any one system occurs to delete or removed, after calculating generation storage file is deleted or removed
Current system internal memory active volume;
Judge whether the space-consuming of the piecemeal in another system is less than or equal to the available of the internal memory of the current system
Capacity, if so, the piecemeal of another system is moved in the current system;
Two piecemeals for belonging to identical file in the current system are merged into original.
3. dual system internal memory sharing method as claimed in claim 1, it is characterised in that described to be divided into the current file
Two piecemeals, the step being respectively stored in the first system and the second system includes:
The current file is split according to the active volume of the internal memory of the first system, space-consuming is obtained equal to described first
The piecemeal of the active volume of the internal memory of system, and store it in the first system;
The remainder of the current file after segmentation is stored in the second system.
4. dual system internal memory sharing method as claimed in claim 1, it is characterised in that described to be divided into the current file
Two piecemeals, the step being respectively stored in the first system and the second system includes:
The ratio between active volume of internal memory of the first system and the second system is calculated, the current file is partitioned into
The ratio between space-consuming is equal to two piecemeals of the ratio between the active volume, and being respectively stored in the first system and described second is
In system.
5. dual system internal memory sharing method as claimed in claim 1, it is characterised in that the first system and described second is
System debugs passage connection by LAN or by ADB.
6. a kind of dual system memory sharing device, it is characterised in that including:
Internal memory computing module, for carrying out during file write-in, calculates the available appearance of the internal memory of the first system and second system respectively
Amount;
Split memory module, for being respectively less than write-in when the active volume of the first system and the internal memory of the second system
The space-consuming of current file, and total active volume of the internal memory of the first system and the second system is current more than described
During the space-consuming of file, the current file is divided into two piecemeals, the first system and described is respectively stored in
In two system, wherein, the space-consuming for being stored in the piecemeal of the first system is less than or equal to the first system
The active volume of internal memory, the space-consuming for being stored in the piecemeal of the second system is less than or equal to the second system
The active volume of internal memory.
7. dual system memory sharing device as claimed in claim 6, it is characterised in that also include:
Monitoring modular, deletes or removes for detecting whether the first system and the second system occur file;
Mobile module, for being less than or equal to the internal memory of the current system when the space-consuming of the piecemeal in another system
Active volume when, the piecemeal in another system is moved in the current system;
Merging module, for two piecemeals for belonging to identical file in the current system to be merged into original;
The internal memory computing module is additionally operable to:
When the storage file for monitoring any one system occurs to delete or removed, after calculating generation storage file is deleted or removed
Current system internal memory active volume.
8. dual system memory sharing device as claimed in claim 6, it is characterised in that the segmentation memory module includes:
First segmentation sub-module stored, the active volume for the internal memory according to the first system splits the current file,
The piecemeal of active volume of the space-consuming equal to the internal memory of the first system is obtained, and stores it in the first system
In;
Second segmentation sub-module stored, the remainder of the current file after segmentation is stored in the second system.
9. dual system memory sharing device as claimed in claim 6, it is characterised in that the segmentation memory module includes:
The ratio between Capacity Ratio computing module, active volume of internal memory for calculating the first system and the second system;
3rd segmentation sub-module stored, for the current file to be partitioned into the ratio between space-consuming equal to the active volume
The ratio between two piecemeals, and be respectively stored in the first system and the second system.
10. dual system memory sharing device as claimed in claim 6, it is characterised in that the first system and described second
System debugs passage connection by LAN or by ADB.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710253733.XA CN107193651B (en) | 2017-04-18 | 2017-04-18 | Dual-system memory sharing method and device |
PCT/CN2017/103796 WO2018192184A1 (en) | 2017-04-18 | 2017-09-27 | Method and device enabling two operating systems to share memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710253733.XA CN107193651B (en) | 2017-04-18 | 2017-04-18 | Dual-system memory sharing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107193651A true CN107193651A (en) | 2017-09-22 |
CN107193651B CN107193651B (en) | 2019-11-12 |
Family
ID=59872042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710253733.XA Active CN107193651B (en) | 2017-04-18 | 2017-04-18 | Dual-system memory sharing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107193651B (en) |
WO (1) | WO2018192184A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018192184A1 (en) * | 2017-04-18 | 2018-10-25 | 广州视源电子科技股份有限公司 | Method and device enabling two operating systems to share memory |
CN112817932A (en) * | 2020-05-19 | 2021-05-18 | 中兴通讯股份有限公司 | Data transfer method, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080244031A1 (en) * | 2007-03-31 | 2008-10-02 | Devesh Kumar Rai | On-Demand Memory Sharing |
CN102810071A (en) * | 2011-05-30 | 2012-12-05 | 联想(北京)有限公司 | Control method, control device and computer |
CN104572485A (en) * | 2015-01-28 | 2015-04-29 | 宇龙计算机通信科技(深圳)有限公司 | Allocation method and device of memory shared by two systems |
CN104657218A (en) * | 2015-02-10 | 2015-05-27 | 西安酷派软件科技有限公司 | Multi-operation system operation method and device and terminal |
CN105843656A (en) * | 2016-04-22 | 2016-08-10 | Tcl集团股份有限公司 | System upgrading method for insufficient disk space, terminal device and server |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107193651B (en) * | 2017-04-18 | 2019-11-12 | 广州视源电子科技股份有限公司 | Dual-system memory sharing method and device |
-
2017
- 2017-04-18 CN CN201710253733.XA patent/CN107193651B/en active Active
- 2017-09-27 WO PCT/CN2017/103796 patent/WO2018192184A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080244031A1 (en) * | 2007-03-31 | 2008-10-02 | Devesh Kumar Rai | On-Demand Memory Sharing |
CN102810071A (en) * | 2011-05-30 | 2012-12-05 | 联想(北京)有限公司 | Control method, control device and computer |
CN104572485A (en) * | 2015-01-28 | 2015-04-29 | 宇龙计算机通信科技(深圳)有限公司 | Allocation method and device of memory shared by two systems |
CN104657218A (en) * | 2015-02-10 | 2015-05-27 | 西安酷派软件科技有限公司 | Multi-operation system operation method and device and terminal |
CN105843656A (en) * | 2016-04-22 | 2016-08-10 | Tcl集团股份有限公司 | System upgrading method for insufficient disk space, terminal device and server |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018192184A1 (en) * | 2017-04-18 | 2018-10-25 | 广州视源电子科技股份有限公司 | Method and device enabling two operating systems to share memory |
CN112817932A (en) * | 2020-05-19 | 2021-05-18 | 中兴通讯股份有限公司 | Data transfer method, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2018192184A1 (en) | 2018-10-25 |
CN107193651B (en) | 2019-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102156738B (en) | Method for processing data blocks, and data block storage equipment and system | |
CN102193795B (en) | Topology transformation's device and layout changing method | |
CN103440201A (en) | Dynamic taint analysis device and application thereof to document format reverse analysis | |
CN102770841A (en) | Method and apparatus for generating minimum boot image | |
CN102722455B (en) | Method and device for storing data in flash memory equipment | |
CN104461390A (en) | Method and device for writing data into imbricate magnetic recording SMR hard disk | |
CN104238962A (en) | Method and device for writing data into cache | |
CN104731896A (en) | Data processing method and system | |
CN108255620A (en) | A kind of business logic processing method, apparatus, service server and system | |
CN104899218A (en) | Data reading and writing method and data reading and writing apparatus | |
CN110297810B (en) | Stream data processing method and device and electronic equipment | |
CN104503703A (en) | Cache processing method and device | |
CN107193651B (en) | Dual-system memory sharing method and device | |
CN106201561A (en) | The upgrade method of distributed caching cluster and equipment | |
CN109189726B (en) | Processing method and device for read-write log | |
CN106844236A (en) | The date storage method and device of terminal device | |
CN109375868B (en) | Data storage method, scheduling device, system, equipment and storage medium | |
CN104517067A (en) | Method, device and system for data access | |
CN109445693A (en) | A kind of data compression method and device | |
CN106528436B (en) | Data storage device and data maintenance method thereof | |
CN112596949A (en) | High-efficiency SSD (solid State disk) deleted data recovery method and system | |
CN103761194A (en) | Memory management method and device | |
CN103440181A (en) | Method and system for modifying files | |
CN102541464B (en) | Flash storage device and data writing method thereof | |
CN104516988A (en) | File writing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |