Application programming interface to modify thread
US-2024289129-A1 · Aug 29, 2024 · US
US10423542B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-10423542-B2 |
| Application number | US-201615281261-A |
| Country | US |
| Kind code | B2 |
| Filing date | Sep 30, 2016 |
| Priority date | Jun 24, 2016 |
| Publication date | Sep 24, 2019 |
| Grant date | Sep 24, 2019 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
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.
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
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
Related publications grouped by family.
Answers are generated from the same data shown on this page.