CN109857573A - A kind of data sharing method, device, equipment and system - Google Patents

A kind of data sharing method, device, equipment and system Download PDF

Info

Publication number
CN109857573A
CN109857573A CN201811653675.0A CN201811653675A CN109857573A CN 109857573 A CN109857573 A CN 109857573A CN 201811653675 A CN201811653675 A CN 201811653675A CN 109857573 A CN109857573 A CN 109857573A
Authority
CN
China
Prior art keywords
business datum
message
processor
area
address
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
Application number
CN201811653675.0A
Other languages
Chinese (zh)
Other versions
CN109857573B (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.)
Shenzhen Intellifusion Technologies Co Ltd
Original Assignee
Shenzhen Intellifusion Technologies 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 Shenzhen Intellifusion Technologies Co Ltd filed Critical Shenzhen Intellifusion Technologies Co Ltd
Priority to CN201811653675.0A priority Critical patent/CN109857573B/en
Publication of CN109857573A publication Critical patent/CN109857573A/en
Priority to PCT/CN2019/121554 priority patent/WO2020134833A1/en
Application granted granted Critical
Publication of CN109857573B publication Critical patent/CN109857573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

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 Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application discloses a kind of data sharing method, device, equipment and system, method includes: that shared drive by first processor is divided into first area and second area by equipment;First area is for storing the business datum that first processor is got;Second area is used to store the message of the address comprising business datum;Equipment dynamically applies for that the first message of the address comprising the first business datum to store the first business datum, and is stored in second area by third region by the first processor in the first region;First business datum is the data in business datum;First message is a message in second area;Equipment reads first message in second area by second processor, to read out the address of the first business datum in first message, and reads out the first business datum by the address of the first business datum read.Using the application, business datum copy can be reduced, the treatment effeciency of the data of system and the throughput of system are improved.

Description

A kind of data sharing method, device, equipment and system
Technical field
This application involves field of communication technology more particularly to a kind of data sharing method, device, equipment and systems.
Background technique
In vision processing system, video frame is accelerated to handle commonly using multiprocessor.For example use application processor And decoder carrys out decoding video frame, and video frame is then sent to vision processor and corresponding accelerator is handled, has been handled The video frame is sent to upper layer application processing again by application processor later.Since video requency frame data amount is big, and different processor Between often through the mode of copy transmit data.A large amount of copy can occupy a large amount of system bandwidths, reduce system throughput, shadow Acoustic system performance.
Summary of the invention
The application provides a kind of data sharing method, device, equipment and system, can reduce business datum copy, evade At same time point, there are the transmission between mass data between processor, improve the processing effect of the data of data-sharing systems The throughput of rate and system.
In a first aspect, this application provides a kind of data sharing methods, this method comprises:
Shared drive is divided into first area and second area by first processor by equipment;It uses the first area In the business datum that the storage first processor is got;The second area is for storing the ground comprising the business datum The message of location;
The equipment dynamically applies third region to store first by the first processor in the first area Business datum, and the first message of the address comprising first business datum is stored in the second area;Described first Business datum is the data in the business datum;The first message is a message in the second area;
The equipment reads first message described in the second area by the second processor, described to read out The address of first business datum in first message, and read out by the address of first business datum read First business datum.
With reference to first aspect, in some possible embodiments,
The equipment dynamically applies third region to store first by the first processor in the first area Before business datum, further includes:
The equipment obtains first business datum by the first processor, and first business datum is led to It crosses Map caching mechanism first business datum is written in the caching of the equipment.
With reference to first aspect, in some possible embodiments,
Before the first message by the address comprising first business datum is stored in the second area, also wrap It includes:
The address of first business datum is packaged into comprising described first by the equipment by the first processor The first message of the address of business datum, and write the first message using Map caching mechanism by the first processor Enter the caching of the equipment.
With reference to first aspect, in some possible embodiments,
The address of first business datum is packaged into comprising described first by the equipment by the first processor The first message of the address of business datum, comprising:
The address of first business datum is packaged into message queue by the equipment by the first processor The first message of address comprising first business datum.
With reference to first aspect, in some possible embodiments,
The message includes the number of the message relating;Different message relatings has different numbers;
The first message includes associated first number of the first message;
The equipment reads first message described in the second area by the second processor, described to read out The address of first business datum in first message, and read out by the address of first business datum read After first business datum, further includes:
The equipment is handled first business datum read by second processor, is obtained comprising described First processing result of the first number, and the second area is written into first processing result;First processing result For notifying the first processor to discharge first business datum of the buffer memory of the equipment and comprising described The first message of the address of one business datum;
If the equipment is read by the first processor from the first area described comprising first volume Number the first processing result, then first business datum of the buffer memory of the equipment is discharged by the first processor And the first message of the address comprising first business datum.
With reference to first aspect, in some possible embodiments,
If the information cached in the caching of the equipment reaches the buffer memory capacity of the caching, the first processor Discharge the information stored at first in the caching, the information includes: first business datum or comprising first business The first message of the address of data.
With reference to first aspect, in some possible embodiments,
If the information cached in the caching of the equipment reaches the buffer memory capacity of the caching, the first processor Discharge the information that priority is minimum in the caching, the information includes: first business datum or comprising first industry The first message of the address for data of being engaged in.
Second aspect, this application provides a kind of data sharing device, which includes:
Acquiring unit, for obtaining business datum;
Division unit, for shared drive to be divided into first area and second area;The first area is for depositing Store up the business datum that the acquiring unit is got;The second area is used to store disappearing for the address comprising the business datum Breath;
Application unit, for dynamically applying for third region in the first area;
Storage unit, for depositing the first message of the first business datum and the address comprising first business datum It is stored in the third region that the application unit dynamic is applied;First business datum is the number in the business datum According to;The first message is a message in the second area;
Reading unit, for reading first message described in the second area, to read out in the first message The address of first business datum, and first business is read out by the address of first business datum read Data.
In conjunction with second aspect, in some possible embodiments,
Further include: writing unit, in the first region dynamic application third region with store the first business datum it Before, after acquiring unit obtains first business datum, the first business datum is passed through into Map caching mechanism for the first business number According in the caching for being written to equipment.
In conjunction with second aspect, in some possible embodiments, further includes:
Encapsulation unit, for will include that the first message of address of first business datum is stored in the second area Before, the address of the first business datum is packaged into the first message of the address comprising the first business datum in message queue.
In conjunction with second aspect, in some possible embodiments, further includes: releasing unit, wherein
Message includes the number of message relating;Different message relatings has different numbers.
The first message includes associated first number of the first message;
First message described in second area is being read, to read out the address of the first business datum in first message, And after the first business datum is read out in the address for passing through the first business datum read,
Writing unit is also used to handle to the first business datum read, obtains the comprising the first number After one processing result, second area is written into the first processing result;First processing result is for notifying first processor to discharge First business datum of the buffer memory of equipment and the first message of the address comprising the first business datum.
Releasing unit, for after reading the first processing result comprising the first number from first area, release to be set First business datum of standby buffer memory and the first message of the address comprising the first business datum.
The third aspect, this application provides a kind of data sharing device, including input equipment, output equipment, processor and Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is for storing branch Holding equipment executes the application code of above-mentioned data sharing method, and the processor is configured for executing above-mentioned first aspect The data sharing method of offer.
Fourth aspect, this application provides a kind of computer-readable storage mediums, for storing one or more calculating Machine program, said one or multiple computer programs include instruction, above-mentioned when above-mentioned computer program is run on computers The data sharing method provided for executing above-mentioned first aspect is provided.
5th aspect, this application provides a kind of computer program, which includes data sharing instruction, when this When computer program executes on computers, the above-mentioned data provided using machine learning instruction for executing above-mentioned first aspect Sharing method.
This application provides a kind of data sharing method, device and equipment.Firstly, equipment will be shared by first processor Memory is divided into first area and second area;First area is for storing the business datum that first processor is got;The Two regions are used to store the message of the address comprising business datum.Then, equipment is by the first processor in first area Middle dynamic application third region is stored the first message of the address comprising the first business datum with storing the first business datum In second area;First business datum is the data in business datum;First message is a message in second area.Most Afterwards, equipment reads first message in second area by second processor, to read out the first business datum in first message Address, and the first business datum is read out in the address of the first business datum by reading.Using the application, second processing Device from second area by reading out the address of the first business datum, thus by the address of the first business datum from the firstth area The first business datum is read in domain, realizes shared (the existing skill of business datum between second processor and first processor In art, data is shared in shared drive, or the main copy mode by the data in shared drive), reduce processing Copy between device between a large amount of business datum, has evaded between processor that there are between mass data at same time point Transmission (if there are mass data transmission for synchronization between processor, can occupy a large amount of system bandwidth, reduce system throughput Rate), improve the treatment effeciency of the data of system and the throughput of system.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of configuration diagram of data-sharing systems provided by the present application;
Fig. 2 is a kind of schematic diagram of the division of shared region provided by the present application;
Fig. 3 is a kind of schematic flow diagram of data sharing provided by the present application;
Fig. 4 is a kind of schematic block diagram of device provided by the present application;
Fig. 5 is a kind of equipment schematic block diagram provided by the present application.
Specific embodiment
Below in conjunction with the attached drawing in the application, the technical solution in the application is clearly and completely described, is shown So, described embodiment is some embodiments of the present application, instead of all the embodiments.Based on the implementation in the application Example, every other embodiment obtained by those of ordinary skill in the art without making creative efforts belong to The range of the application protection.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, equipment described in this application is including but not limited to such as with touch sensitive surface (for example, touching Touch panel type display and/or touch tablet) the other of mobile phone, laptop computer or tablet computer etc portable set It is standby.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but has and touch sensitivity The desktop computer on surface (for example, touch-screen display and/or touch tablet).
In following discussion, the equipment including display and touch sensitive surface is described.It is, however, to be understood that It is that equipment may include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Equipment supports various application programs, such as one of the following or multiple: drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be executed in equipment can be used such as touch sensitive surface at least one is public Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and equipment in face.In this way, the public physical structure of equipment is (for example, touch Sensing surface) it can support the various application programs with user interface intuitive and transparent for a user.
The architecture diagram of the application in order to better understand, the data-sharing systems being applicable in below the application are described. Referring to Fig. 1, Fig. 1 is that the application provides a kind of architecture diagram of data-sharing systems.
As shown in Figure 1, system may include but be not limited to: first processor, second processor and shared drive, wherein Shared drive may include but be not limited to: first area and second area.
It should illustrate, shared drive is divided by first area and second area by first processor;Described One region is for storing the business datum that the first processor is got;The second area includes the business for storing The message of the address of data.
It should illustrate, equipment may include but be not limited to: first processor and second processor.
By taking vision processing system as an example, it can be vision processor that first processor, which can be application processor, second processor,. In other words, vision processor and corresponding accelerator can sharing application processor and the decoded video frames of decoder.
Data share by first processor and second processor and may include but be not limited to following steps:
(1), dynamically apply third region to store the first business datum in the first region by first processor.
In the embodiment of the present application, third region is the partial memory region in first area, for storing the first business number According to, wherein the first business datum may include but be not limited to: the data such as video frame or face picture.
(2), the address of the first business datum is packaged into message queue by first processor includes the first business The first message of the address of data.
In the embodiment of the present application, message includes the number of message relating;Different message relatings has different numbers.
First message includes associated first number of first message.
(3), utilize Map caching mechanism by the caching of first message write device by first processor.
(4), first message in second area is read by second processor, to read out the first business in first message The address of data, and the first business datum is read out by the address of the first business datum read.
(5), the first business datum read is handled by second processor, obtains the comprising the first number One processing result, and second area is written into the first processing result;First processing result is for notifying first processor release to set First business datum of standby buffer memory and the first message of the address comprising the first business datum.
(6), the first processing result comprising the first number is read.
In the embodiment of the present application, and second area is written into the first processing result;First processing result is for notifying first First business datum of the buffer memory of processor release device and the first message of the address comprising the first business datum.
(7) if, by first processor from first area read comprising first number the first processing result, lead to Cross the buffer memory of first processor release device the first business datum and the address comprising the first business datum first Message.
It should illustrate, if the information cached in the caching of equipment reaches the buffer memory capacity of caching, first processor The information stored at first in release caching, information includes: the first of the first business datum or the address comprising the first business datum Message.
Alternatively,
If the information cached in the caching of equipment reaches the buffer memory capacity of caching, first processor discharges excellent in caching The minimum information of first grade, information include: the first message of the first business datum or the address comprising the first business datum.
It should illustrate, for the division for the shared drive being explained in more detail in the embodiment of the present application, below The division of shared drive is specifically described in conjunction with Fig. 2.
Fig. 2 illustrates a kind of schematic diagram of the division of shared region.
As shown in Fig. 2, shared region can be divided into first area and second area by first processor.Wherein, the firstth area Domain is usually placed in the biggish Double Data Rate synchronous DRAM of capacity (Synchronous Dynamic Random Access Memory, DDR SDRAM), second area be usually placed in fast speed, the lesser static random-access of capacity deposits In reservoir (Static Random-Access Memory, SRAM).
It should illustrate, data1 is the business datum being stored in first area, and * data1 indicates that the address of data1 is deposited It is stored in second area.Wherein, Seq is represented by the number of the message comprising business datum.
In the embodiment of the present application, firstly, shared drive is divided into first area and by first processor by equipment Two regions;First area is for storing the business datum that first processor is got;Second area includes business number for storing According to address message.Then, equipment dynamically applies third region to store in the first region by the first processor First business datum, and the first message of the address comprising the first business datum is stored in second area;First business datum For the data in business datum;First message is a message in second area.Finally, equipment is read by second processor First message in second area, to read out the address of the first business datum in first message, and first by reading Read out the first business datum in the address of business datum.Using the embodiment of the present application, second processor passes through from second area The address of the first business datum is read out, so that the address by the first business datum reads the first business from first area Data realize shared (in the prior art, the data in shared drive of business datum between second processor and first processor It is shared, or the main copy mode by the data in shared drive), reduce a large amount of business datum between processor Between copy, evaded between processor that there are the transmission between mass data (if between processor at same time point There are mass data transmission for synchronization, can occupy a large amount of system bandwidth, reduce system throughput), improve the number of system According to treatment effeciency and system throughput.
Fig. 2 is used only for explaining the embodiment of the present application, and limitation should not be made to the application.
Referring to Fig. 3, it is that the application provides a kind of schematic flow diagram of data sharing method, as shown in figure 3, this method can be with Including at least following steps:
Shared drive is divided into first area and second area by first processor by S301, equipment.
In the embodiment of the present application, first area is for storing the business datum that first processor is got;Second area is used Message in address of the storage comprising business datum.
It should illustrate, the data may include but be not limited to: the data such as video frame and face picture.
It should illustrate, shared drive includes that may also include other region of memory except first area and second area.
It should illustrate, equipment may include but be not limited to: first processor and second processor.
By taking vision processing system as an example, it can be vision processor that first processor, which can be application processor, second processor,. In other words, vision processor and corresponding accelerator can sharing application processor and the decoded video frames of decoder.
S302, equipment dynamically apply third region to store the first business number in the first region by first processor According to, and the first message of the address comprising the first business datum is stored in second area.
In the embodiment of the present application, the first business datum is the data in business datum;First message is in second area One message.
Before equipment dynamically applies third region to store the first business datum in the first region by first processor, It is further comprising the steps of:
Step 1: equipment obtains the first business datum by first processor.
Step 2: equipment passes through Map caching mechanism for the first industry by the first business datum that first processor will acquire Business data are written in the caching of equipment.
By include the first business datum address first message be stored in the second area before, further include following Step:
Step 1: the address of first business datum is packaged into comprising described by equipment by the first processor The first message of the address of one business datum.
Specifically, equipment by first processor by the address of the first business datum be packaged into message queue comprising the The first message of the address of one business datum.
Step 2: equipment utilizes Map caching mechanism by the caching of first message write device by first processor.
S303, equipment read first message described in second area by second processor, to read out in first message The first business datum address, and the first business datum is read out in the address of the first business datum by reading.
It should illustrate, message may include, but are not limited to: the number of address and message relating comprising business datum.
Wherein, different message relatings has different numbers, and in other words, the number of message relating is message relating Unique identification;Number can be string number, text or letter.
It should illustrate, first message includes associated first number of first message.
Equipment reads first message described in second area by second processor, described in reading out in first message The address of first business datum, and the address of first business datum by reading read out the first business datum it Afterwards, further include following work step:
Work step 1: equipment is handled first business datum read by second processor, is wrapped The first processing result containing the first number.
Work step 2: and the second area is written into the first processing result of institute;First processing result can be used for notifying First business datum of the buffer memory of one processor release device and the first message of the address comprising the first business datum.
Work step 3: if equipment is by first processor from first that first area reads comprising the first number Reason is as a result, then by the first business datum of the buffer memory of first processor release device and include the first business datum The first message of address.
It should illustrate, if the information cached in the caching of equipment reaches the buffer memory capacity of caching, first processor The information stored at first in release caching, information includes: the first of the first business datum or the address comprising the first business datum Message.Alternatively,
If the information cached in the caching of equipment reaches the buffer memory capacity of caching, first processor discharges excellent in caching The minimum information of first grade, information include: the first message of the first business datum or the address comprising the first business datum.
It should illustrate, when the message for the address in second area including business datum reaches the memory capacity of second area When, wait second processor to read message from second area.
In conclusion in the embodiment of the present application, firstly, shared drive is divided into the firstth area by first processor by equipment Domain and second area;First area is for storing the business datum that first processor is got;Second area is for storing packet The message of address containing business datum.Then, equipment by first processor in the first region dynamically application third region with The first business datum is stored, and the first message of the address comprising the first business datum is stored in second area;First business Data are the data in business datum;First message is a message in second area.Finally, equipment passes through second processor First message in second area is read, to read out the address of the first business datum in first message, and by reading Read out the first business datum in the address of first business datum.Using the embodiment of the present application, second processor is by from the secondth area The address of the first business datum is read out in domain, so that the address by the first business datum reads first from first area Business datum realizes the shared (in the prior art, in shared drive of business datum between second processor and first processor Data are shared, or the main copy mode by the data in shared drive), reduce a large amount of business between processor Copy between data, has evaded between processor that there are the transmission between mass data (if processor at same time point Between synchronization there are mass data transmission, a large amount of system bandwidth can be occupied, reduce system throughput), improve system Data treatment effeciency and system throughput.
Intelligible, the related definition and explanation that do not provide in Fig. 3 embodiment of the method can refer to the embodiment of Fig. 1, Fig. 2, Details are not described herein again.
It referring to fig. 4, is a kind of data sharing device provided by the present application.As shown in figure 4, device 40 includes: acquiring unit 401, division unit 402, application unit 403, storage unit 404 and reading unit 405.
Wherein:
Acquiring unit 401, for obtaining business datum.
Division unit 402, for shared drive to be divided into first area and second area;First area is for storing The business datum that acquiring unit is got;Second area is used to store the message of the address comprising business datum.
Application unit 403, for dynamic application third region in the first region.
Storage unit 404, for depositing the first message of the first business datum and the address comprising the first business datum It is stored in the third region that application unit 403 is dynamically applied;First business datum is the data in business datum;First message is A message in second area.
Reading unit 405, for reading first message in second area, to read out the first business number in first message According to address, and the first business datum is read out in the address of the first business datum by reading.
Device 40 includes: acquiring unit 401, division unit 402, application unit 403, storage unit 404 and reads single Except member 405, further includes: writing unit.
Writing unit obtains before applying third region to store the first business datum for dynamic in the first region After unit 401 obtains first business datum, the first business datum is write the first business datum by Map caching mechanism Enter into the caching of equipment.
Device 40 includes: acquiring unit 401, division unit 402, application unit 403, storage unit 404, reading unit 405 and writing unit except, further includes: encapsulation unit.
Encapsulation unit, for will include that the first message of address of first business datum is stored in the second area Before, the address of the first business datum is packaged into the first message of the address comprising the first business datum in message queue.
Writing unit is also used to utilize Map caching mechanism by the caching of first message write device.
Device 40 includes: acquiring unit 401, division unit 402, application unit 403, storage unit 404, reading unit 405 and writing unit except, further includes: releasing unit.
It should illustrate, message includes the number of message relating;Different message relatings has different numbers.
The first message includes associated first number of the first message;
First message described in second area is read, to read out the address of the first business datum in first message, and After reading out the first business datum by the address of the first business datum read,
Writing unit is also used to handle to the first business datum read, obtains the comprising the first number After one processing result, second area is written into the first processing result;First processing result is for notifying first processor to discharge First business datum of the buffer memory of equipment and the first message of the address comprising the first business datum.
Releasing unit, for after reading the first processing result comprising the first number from first area, release to be set First business datum of standby buffer memory and the first message of the address comprising the first business datum.
In conclusion shared drive is divided into first area by division unit 402 by device 40 in the embodiment of the present application And second area;First area is for storing the business datum that acquiring unit 401 is got;Second area is used to store The message of the address of business datum.Then, device 40 by application unit 403 in the first region dynamic application third region with The first business datum is stored, device 40 is deposited by storage unit 404 and by the first message of the address comprising the first business datum It is stored in second area;First business datum is the data in business datum;First message is a message in second area.Most Afterwards, device 40 reads first message in second area by reading unit 405, to read out the first business number in first message According to address, and the first business datum is read out in the address of the first business datum by reading.Using the embodiment of the present application, Device 40 passes through reading unit 405 by reading out the address of the first business datum from second area, to pass through the first industry The address of business data reads the first business datum from first area, realizes different for processing business data in device 40 Processing unit between business datum it is shared, reduce the copy between processing unit between a large amount of business datum, evade At same time point there are the transmission between mass data between processor, improve the data of system treatment effeciency and The throughput of system.
It should be appreciated that device 40 is only an example provided by the embodiments of the present application, also, device 40 can have than showing The more or fewer components of component, two or more components can be combined, or can have the different configurations of component to realize.
Intelligible, the specific implementation for the functional block that the device 40 about Fig. 4 includes can refer to earlier figures 1, Fig. 2 Or Fig. 3 the embodiment described, which is not described herein again.
Fig. 5 is a kind of structural schematic diagram of data sharing device provided by the present application.In the embodiment of the present application, equipment can be with Including cell phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), mobile Internet Equipment (Mobile Internet Device, MID), intelligent wearable device (such as smartwatch, Intelligent bracelet) various equipment, The embodiment of the present application is not construed as limiting.As shown in figure 5, equipment 50 can include: baseband chip 501, memory 502 are (one or more Computer readable storage medium), peripheral system 503.These components can communicate on one or more communication bus 504.
Baseband chip 501 may include but be not limited to: processor 505 and processor 506.
Shared drive is divided into first area and second area by processor 505 by equipment 50;First area is used for The business datum that storage processor 505 is got;Second area is used to store the message of the address comprising business datum.
Equipment 50 by processor 505 in the first region dynamic application third region to store the first business datum, and The first message of address comprising the first business datum is stored in second area;First business datum is the number in business datum According to;First message is a message in second area.
Equipment 50 reads first message in second area by processor 506, to read out the first industry in first message The address for data of being engaged in, and the first business datum is read out by the address of the first business datum read.
Memory 502 is coupled with processor 505 and processor 506, can be used for storing various software programs and/or multiple groups Instruction.In the specific implementation, memory 502 may include the memory of high random access, and it may also comprise non-volatile memories Device, such as one or more disk storage equipments, flash memory device or other non-volatile solid-state memory devices.Memory 502 can With storage program area (following abbreviation systems), such as the embedded operations such as ANDROID, IOS, WINDOWS or LINUX system System.Memory 502 can also store network communication program, which can be used for and one or more optional equipments, One or more equipment equipment, one or more network equipments are communicated.Memory 502 can also store user interface journey Sequence, the user interface program can show by patterned operation interface by the content image of application program is true to nature, And user is received by input controls such as menu, dialog box and keys, the control of application program is operated.
Intelligible, memory 502 can be used for storing the realization code for realizing data sharing method.
Memory 502 can also store one or more application program.As shown in figure 5, these application programs can include: society It hands over application program (such as Facebook), image management application (such as photograph album), map class application program (such as Google Figure), browser (such as Safari, Google Chrome) etc..
Peripheral system 503 is mainly used for realizing the interactive function between 50 users of equipment/external environment, mainly includes equipment 50 input-output equipment.In the specific implementation, peripheral system 503 can include: touch screen controller 507, camera controller 508 And Audio Controller 509.Wherein, each controller can be with corresponding peripheral equipment (such as touch screen 510, camera 511 And voicefrequency circuit 52) coupling.In some embodiments, display screen can be configured with the aobvious of the suspension touch control panel of self-capacitance Display screen 1 is also possible to the touch screen of the suspension touch control panel configured with infrared-type.In some embodiments, camera 511 can To be 3D camera.It should be noted that peripheral system 503 can also include other I/O peripheral hardwares.
In conclusion in the embodiment of the present application, firstly, shared drive is divided into first by processor 505 by equipment 50 Region and second area;First area is used for the business datum that storage processor 505 is got;Second area is for storing packet The message of address containing business datum.Then, equipment 50 by processor 505 in the first region dynamic application third region with The first business datum is stored, and the first message of the address comprising the first business datum is stored in second area;First business Data are the data in business datum;First message is a message in second area.Finally, equipment 50 passes through processor 506 read first message in second area, to read out the address of the first business datum in first message, and by reading The address of the first business datum read out the first business datum.Using the embodiment of the present application, processor 506 is by from the secondth area The address of the first business datum is read out in domain, so that the address by the first business datum reads first from first area Business datum realizes the shared of business datum between processor 506 and processor 505, reduces a large amount of between processor Copy between business datum has been evaded between processor at same time point there are the transmission between mass data, has been improved The treatment effeciency of the data of data-sharing systems and the throughput of system.
The application provides a kind of computer readable storage medium, which has computer journey Sequence, realization when which is executed by processor.
The computer readable storage medium can be the internal storage unit of equipment described in aforementioned any embodiment, such as The hard disk or memory of equipment.The computer readable storage medium is also possible to the External memory equipment of equipment, such as matches in equipment Standby plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) Card, flash card (Flash Card) etc..Further, which can also both deposit the inside including equipment Storage unit also includes External memory equipment.The computer readable storage medium is for storing needed for computer program and equipment Other programs and data.The computer readable storage medium, which can be also used for temporarily storing, have been exported or will export Data.
The application also provides a kind of computer program product, which includes storing computer program Non-transient computer readable storage medium, the computer program are operable to execute computer as in above method embodiment Some or all of either record method step.The computer program product can be a software installation packet, the computer Including electronic device.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond scope of the present application.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is set Standby and unit specific work process, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, to describe each exemplary form and step.These functions are come actually with hardware or software mode It executes, specific application and design constraint depending on technical solution.Professional technician can be to each specific application It uses different methods to achieve the described function, but such implementation should not be considered as beyond the scope of the present invention.
The apparatus embodiments of foregoing description are only schematical, for example, the division of the unit, only a kind of logic Function division, there may be another division manner in actual implementation, such as multiple units or components can combine or can collect At another system is arrived, or some features can be ignored or not executed.In addition, shown or discussed mutual coupling Or direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of equipment or unit, can also be with It is electric, mechanical or other form connections.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present application scheme according to the actual needs Purpose.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should all cover within the scope of protection of this application.Therefore, the protection scope of the application should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of data sharing method characterized by comprising
Shared drive is divided into first area and second area by first processor by equipment;The first area is for depositing Store up the business datum that the first processor is got;The second area is used to store the address comprising the business datum Message;
The equipment dynamically applies third region to store the first business by the first processor in the first area Data, and the first message of the address comprising first business datum is stored in the second area;First business Data are the data in the business datum;The first message is a message in the second area;
The equipment reads first message described in the second area by the second processor, to read out described first The address of first business datum in message, and the address of first business datum by reading read out it is described First business datum.
2. the method as described in claim 1, which is characterized in that the equipment is by the first processor in firstth area Before applying for third region in domain dynamically to store the first business datum, further includes:
The equipment obtains first business datum by the first processor, and first business datum is passed through First business datum is written in the caching of the equipment by Map caching mechanism.
3. the method as described in claim 1, which is characterized in that described by first of the address comprising first business datum Message is stored in front of the second area, further includes:
The address of first business datum is packaged into comprising first business by the equipment by the first processor The first message of the address of data, and the first message is written using Map caching mechanism by institute by the first processor State the caching of equipment.
4. method as claimed in claim 3, which is characterized in that
The address of first business datum is packaged into comprising first business by the equipment by the first processor The first message of the address of data, comprising:
The address of first business datum is packaged into message queue by the equipment by the first processor The first message of the address of first business datum.
5. method according to any of claims 1-4, which is characterized in that
The message includes the number of the message relating;Different message relatings has different numbers;
The first message includes associated first number of the first message;
The equipment reads first message described in the second area by the second processor, to read out described first The address of first business datum in message, and the address of first business datum by reading read out it is described After first business datum, further includes:
The equipment is handled first business datum read by second processor, and obtaining includes described first First processing result of number, and the second area is written into first processing result;First processing result is used for The first processor is notified to discharge first business datum of the buffer memory of the equipment and comprising first industry The first message of the address for data of being engaged in;
If it includes first number that the equipment, which is read described by the first processor from the first area, First processing result, then discharged by the first processor buffer memory of the equipment first business datum and The first message of address comprising first business datum.
6. method as claimed in claim 2 or claim 3, which is characterized in that
If the information cached in the caching of the equipment reaches the buffer memory capacity of the caching, the first processor release The information stored at first in the caching, the information include: first business datum or comprising first business datum Address first message.
7. method as claimed in claim 2 or claim 3, which is characterized in that
If the information cached in the caching of the equipment reaches the buffer memory capacity of the caching, the first processor release The minimum information of priority in the caching, the information include: first business datum or comprising the first business number According to address first message.
8. a kind of data sharing device characterized by comprising
Acquiring unit, for obtaining business datum;
Division unit, for shared drive to be divided into first area and second area;The first area is for storing institute State the business datum that acquiring unit is got;The second area is used to store the message of the address comprising the business datum;
Application unit, for dynamically applying for third region in the first area;
Storage unit, for the first message of the first business datum and the address comprising first business datum to be stored in The third region that the application unit dynamic is applied;First business datum is the data in the business datum; The first message is a message in the second area;
Reading unit, for reading first message described in the second area, described in reading out in the first message The address of first business datum, and the first business number is read out by the address of first business datum read According to.
9. a kind of data sharing device characterized by comprising input equipment, output equipment, memory and be coupled in described The processor of memory, the input equipment, output equipment, processor and memory are connected with each other, wherein the memory is used In storage application code, the processor is configured for calling said program code, executes as described in claim 1-7 Data sharing method.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor It is required that data sharing method described in 1-7.
CN201811653675.0A 2018-12-29 2018-12-29 Data sharing method, device, equipment and system Active CN109857573B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811653675.0A CN109857573B (en) 2018-12-29 2018-12-29 Data sharing method, device, equipment and system
PCT/CN2019/121554 WO2020134833A1 (en) 2018-12-29 2019-11-28 Data sharing method, device, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811653675.0A CN109857573B (en) 2018-12-29 2018-12-29 Data sharing method, device, equipment and system

Publications (2)

Publication Number Publication Date
CN109857573A true CN109857573A (en) 2019-06-07
CN109857573B CN109857573B (en) 2021-03-05

Family

ID=66893771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811653675.0A Active CN109857573B (en) 2018-12-29 2018-12-29 Data sharing method, device, equipment and system

Country Status (2)

Country Link
CN (1) CN109857573B (en)
WO (1) WO2020134833A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020134833A1 (en) * 2018-12-29 2020-07-02 深圳云天励飞技术有限公司 Data sharing method, device, equipment and system
CN112765085A (en) * 2020-12-29 2021-05-07 紫光展锐(重庆)科技有限公司 Data transmission method and related device
CN114035743A (en) * 2021-10-14 2022-02-11 长沙韶光半导体有限公司 Storage method of robot sensing data and related equipment
CN114115732A (en) * 2021-11-10 2022-03-01 深圳Tcl新技术有限公司 Data processing method, device and system
CN114035743B (en) * 2021-10-14 2024-05-14 长沙韶光半导体有限公司 Robot sensing data storage method and related equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001357022A (en) * 2000-06-15 2001-12-26 Nec Corp Device and method for data communications between plural processors
US6397305B1 (en) * 1997-11-13 2002-05-28 Virata Ltd. Method and apparatus for controlling shared memory access
US20060179256A1 (en) * 2005-02-10 2006-08-10 Sony Corporation Shared memory device
CN1818887A (en) * 2006-03-16 2006-08-16 浙江大学 Built-in file system realization based on SRAM
CN1904873A (en) * 2005-07-28 2007-01-31 大唐移动通信设备有限公司 Inter core communication method and apparatus for multi-core processor in embedded real-time operating system
US20070121499A1 (en) * 2005-11-28 2007-05-31 Subhasis Pal Method of and system for physically distributed, logically shared, and data slice-synchronized shared memory switching
CN101504617A (en) * 2009-03-23 2009-08-12 华为技术有限公司 Data transmitting and receiving method and device based on processor sharing internal memory
CN101853238A (en) * 2010-06-01 2010-10-06 华为技术有限公司 Message communication method and system between communication processors
CN101976217A (en) * 2010-10-29 2011-02-16 中兴通讯股份有限公司 Anomaly detection method and system for network processing unit
CN107577539A (en) * 2016-07-05 2018-01-12 阿里巴巴集团控股有限公司 The shared drive structure communicated for kernel state and User space and its application
CN108366111A (en) * 2018-02-06 2018-08-03 西安电子科技大学 A kind of data packet low time delay buffer storage and method for switching equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2595858A1 (en) * 2005-05-24 2006-11-30 Turbo Data Laboratories Inc. Multiprocessor system, and its information processing method
CN101551761A (en) * 2009-04-30 2009-10-07 浪潮电子信息产业股份有限公司 Method for sharing stream memory of heterogeneous multi-processor
CN102541805A (en) * 2010-12-09 2012-07-04 沈阳高精数控技术有限公司 Multi-processor communication method based on shared memory and realizing device thereof
CN109857573B (en) * 2018-12-29 2021-03-05 深圳云天励飞技术有限公司 Data sharing method, device, equipment and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6397305B1 (en) * 1997-11-13 2002-05-28 Virata Ltd. Method and apparatus for controlling shared memory access
JP2001357022A (en) * 2000-06-15 2001-12-26 Nec Corp Device and method for data communications between plural processors
US20060179256A1 (en) * 2005-02-10 2006-08-10 Sony Corporation Shared memory device
CN1904873A (en) * 2005-07-28 2007-01-31 大唐移动通信设备有限公司 Inter core communication method and apparatus for multi-core processor in embedded real-time operating system
US20070121499A1 (en) * 2005-11-28 2007-05-31 Subhasis Pal Method of and system for physically distributed, logically shared, and data slice-synchronized shared memory switching
CN1818887A (en) * 2006-03-16 2006-08-16 浙江大学 Built-in file system realization based on SRAM
CN101504617A (en) * 2009-03-23 2009-08-12 华为技术有限公司 Data transmitting and receiving method and device based on processor sharing internal memory
CN101853238A (en) * 2010-06-01 2010-10-06 华为技术有限公司 Message communication method and system between communication processors
CN101976217A (en) * 2010-10-29 2011-02-16 中兴通讯股份有限公司 Anomaly detection method and system for network processing unit
CN107577539A (en) * 2016-07-05 2018-01-12 阿里巴巴集团控股有限公司 The shared drive structure communicated for kernel state and User space and its application
CN108366111A (en) * 2018-02-06 2018-08-03 西安电子科技大学 A kind of data packet low time delay buffer storage and method for switching equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KIERAN MCLAUGHLIN 等: "Fully hardware based WFQ architecture for high-speed QoS packet scheduling", 《INTEGRATION, THE VLSI JOURNAL 》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020134833A1 (en) * 2018-12-29 2020-07-02 深圳云天励飞技术有限公司 Data sharing method, device, equipment and system
CN112765085A (en) * 2020-12-29 2021-05-07 紫光展锐(重庆)科技有限公司 Data transmission method and related device
CN114035743A (en) * 2021-10-14 2022-02-11 长沙韶光半导体有限公司 Storage method of robot sensing data and related equipment
CN114035743B (en) * 2021-10-14 2024-05-14 长沙韶光半导体有限公司 Robot sensing data storage method and related equipment
CN114115732A (en) * 2021-11-10 2022-03-01 深圳Tcl新技术有限公司 Data processing method, device and system

Also Published As

Publication number Publication date
WO2020134833A1 (en) 2020-07-02
CN109857573B (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN113287286B (en) Input/output processing in distributed storage nodes over RDMA
US10599336B2 (en) Method of displaying content and electronic device adapted to the same
US7783853B1 (en) Memory usage techniques in middleware of a real-time data distribution system
US10366046B2 (en) Remote direct memory access-based method of transferring arrays of objects including garbage data
US8838726B2 (en) Selective use of shared memory for remote desktop application
CN109857573A (en) A kind of data sharing method, device, equipment and system
US11010056B2 (en) Data operating method, device, and system
US9747007B2 (en) Resizing technique for display content
WO2020042769A1 (en) Image information transmission method and apparatus, and storage medium and electronic device
TW201537455A (en) Dynamic cache and memory allocation for memory subsystems
US11809953B1 (en) Dynamic code loading for multiple executions on a sequential processor
CN108563929A (en) It is a kind of only in the method for concerning security matters Area generation watermark, system, device and medium
US10204598B2 (en) Predictive pre-decoding of encoded media item
CN107861657A (en) Processing method, system, device and the electronic equipment of tactile signals
CN108156368A (en) A kind of image processing method, terminal and computer readable storage medium
CN102779076B (en) The method and apparatus of interprocess communication in a kind of browser
CN106775835A (en) Obtain method, server and the terminal of upgrade file
US8892807B2 (en) Emulating a skip read command
US11606437B2 (en) System and method for boosting up performance of NVMe-TCP transport
CN110383255A (en) It manages and the client partitions of physical equipment is accessed
US9176910B2 (en) Sending a next request to a resource before a completion interrupt for a previous request
CN108182656A (en) A kind of image processing method and terminal
US10910025B2 (en) Flexible utilization of block storage in a computing system
CN111897484B (en) Data storage method and device, electronic equipment and storage medium
US9251101B2 (en) Bitmap locking using a nodal lock

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