Data transmission method and system for transmitting data between processes using shared memory block indexes

US10423542B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10423542-B2
Application numberUS-201615281261-A
CountryUS
Kind codeB2
Filing dateSep 30, 2016
Priority dateJun 24, 2016
Publication dateSep 24, 2019
Grant dateSep 24, 2019

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method and a system for transmitting data are disclosed. A method embodiment comprises: acquiring a most recent shared memory block index of a shared memory segment by a data receiver, the shared memory segment being used by a data transmitter and the data receiver to transmit data; deciding whether the most recent shared memory block index is consistent with a shared memory block index corresponding to data recently read by the data receiver; and determining, according to the decision, whether to read the data in the shared memory block corresponding to the most recent shared memory block index, where the determining includes reading the data in the shared memory block corresponding to the most recent shared memory block index when the decision indicates that the most recent shared memory block index is inconsistent with the shared memory block index corresponding to the data recently read by the data receiver.

First claim

Opening claim text (preview).

What is claimed is: 1. A data transmission method, the method comprising: acquiring a most recent shared memory block index of a shared memory segment by a data receiver, the shared memory segment being used by a data transmitter and the data receiver to transmit data, the most recent shared memory block index being used for indicating an address of a shared memory block in a shared memory segment where data recently written by the data transmitter is located; deciding whether the most recent shared memory block index is consistent with a shared memory block index corresponding to data recently read by the data receiver; and determining, according to the decision, whether to read the data in the shared memory block corresponding to the most recent shared memory block index, wherein the determining, according to the decision, whether to read the data in the shared memory block corresponding to the most recent shared memory block index comprises: ignoring the data in the shared memory block corresponding to the most recent shared memory block index if the decision indicates that the most recent shared memory block index is consistent with the shared memory block index corresponding to the data recently read by the data receiver; and reading the data in the shared memory block corresponding to the most recent shared memory block index when the decision indicates that the most recent shared memory block index is inconsistent with the shared memory block index corresponding to the data recently read by the data receiver, wherein the shared memory segment comprises a general flag variable and a general flag lock variable, the general flag variable being used for storing the most recent shared memory block index; and the acquiring the most recent shared memory block index of the shared memory segment by the data receiver comprising: acquiring the general flag lock variable by the data receiver; and reading the general flag variable so as to acquire the most recent shared memory block index of the share memory segment. 2. The method according to claim 1 , wherein the data transmitter is a data transmitting process, and the data receiver is a data receiving process. 3. The method according to claim 2 , the method further comprising: acquiring the general flag lock variable by the data transmitting process; determining an index of a shared memory block for storing data to be written in the shared memory segment; writing the data to be written into the shared memory block corresponding to the index; acquiring the general flag lock variable when the data to be written is successfully written into the shared memory block corresponding to the index; and updating a value of the general flag variable with the index of the shared memory block. 4. A data transmission system, comprising: at least one processor; and a memory storing instructions, which when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising: acquiring a most recent shared memory block index of a shared memory segment by a data receiver, the shared memory segment being used by a data transmitter and the data receiver to transmit data, the most recent shared memory block index being used for indicating an address of a shared memory block in a shared memory segment where data recently written by the data transmitter is located; deciding whether the most recent shared memory block index is consistent with a shared memory block index corresponding to data recently read by the data receiver; and determining, according to the decision, whether to read the data in the shared memory block corresponding to the most recent shared memory block index, wherein the determining, according to the decision, whether to read the data in the shared memory block corresponding to the most recent shared memory block index comprises: ignoring the data in the shared memory block corresponding to the most recent shared memory block index if the decision indicates that the most recent shared memory block index is consistent with the shared memory block index corresponding to the data recently read by the data receiver; and reading the data in the shared memory block corresponding to the most recent shared memory block index when the decision indicates that the most recent shared memory block index is inconsistent with the shared memory block index corresponding to the data recently read by the data receiver, wherein the shared memory segment comprises a general flag variable and a general flag lock variable, the general flag variable being used for storing the most recent shared memory block index; and the acquiring the most recent shared memory block index of the shared memory segment by the data receiver comprising: acquiring the general flag lock variable by the data receiver; and reading the general flag variable so as to acquire the most recent shared memory block index of the share memory segment. 5. The data transmission system according to claim 4 , wherein the data transmitter is a data transmitting process, and the data receiver is a data receiving process. 6. The data transmission system according to claim 4 , wherein the operations further comprise: acquiring the general flag lock variable; determining an index of a shared memory block for storing data to be written in the shared memory segment; writing the data to be written into the shared memory block corresponding to the index; acquiring the general flag lock variable when the data to be written is successfully written into the shared memory block corresponding to the index; and updating a value of the general flag variable with the index of the shared memory block. 7. A non-transitory storage medium storing one or more programs, the one or more programs when executed by an apparatus, causing the apparatus to perform a data transmission method, comprising: acquiring a most recent shared memory block index of a shared memory segment by a data receiver, the shared memory segment being used by a data transmitter and the data receiver to transmit data, the most recent shared memory block index being used for indicating an address of a shared memory block in a shared memory segment where data recently written by the data transmitter is located; deciding whether the most recent shared memory block index is consistent with a shared memory block index corresponding to data recently read by the data receiver; and determining, according to the decision, whether to read the data in the shared memory block corresponding to the most recent shared memory block index, wherein the determining, according to the decision, whether to read the data in the shared memory block corresponding to the most recent shared memory block index comprises: ignoring the data in the shared memory block corresponding to the most recent shared memory block index if the decision indicates that the most recent shared memory block index is consistent with the shared memory block index corresponding to the data recently read by the data receiver; and reading the data in the shared memory block corresponding to the most recent shared memory block index when the decision indicates that the most recent shared memory block index is inconsistent with the shared memory block index corresponding to the data recently read by the data receiver, wherein the shared memory segment comprises a general flag variable and a general flag lock variable, the general flag variable being used for storing the most recent shared memory block index; and the acquiring the most recent shared memory block index of the shared memory segment by the data receiver comprising: acquiring the general flag lock variable by the data receiver; and r

Assignees

Inventors

Classifications

  • Buffer or queue management · CPC title

  • Migration mechanisms · CPC title

  • Command handling arrangements, e.g. command buffers, queues, command scheduling · CPC title

  • in relation to throughput · CPC title

  • Plurality of storage devices · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10423542B2 cover?
A method and a system for transmitting data are disclosed. A method embodiment comprises: acquiring a most recent shared memory block index of a shared memory segment by a data receiver, the shared memory segment being used by a data transmitter and the data receiver to transmit data; deciding whether the most recent shared memory block index is consistent with a shared memory block index corre…
Who is the assignee on this patent?
Beijing Baidu Netcom Sci & Tec
What technology area does this patent fall under?
Primary CPC classification G06F9/544. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Sep 24 2019 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).