Data read-write method and apparatus and circular queue
Abstract
The present invention provides a data read-write method and apparatus and a circular queue. The method includes: obtaining an offset position of a write pointer from a queue head of a circular queue; determining an offset position of a read pointer according to the offset position of the write pointer; and reading data from the circular queue according to the offset position of the read pointer. Single input multiple output of share memory is implemented, and therefore a plurality of read threads may read data from the circular queue in parallel, thereby effectively improving read-write efficiency of data, and reducing memory consumption.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 0.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A data read-write method, comprising: obtaining, an offset position of a write pointer, from a queue head of a circular queue; determining an offset position of a read pointer according to the offset position of the write pointer; and obtaining, a second offset position of a write pointer, from a queue head of a circular queue again after reading data from the circular queue according to the offset position of the read pointer; reading, in response to the second offset position of the write pointer is different from the offset position of the write pointer that is obtained previously, the data
- Claim 2Depends on #1
The method according to claim 1 , wherein the obtaining, the offset position of the write pointer, from a queue head of a circular queue
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.