Data reading and writing method, device, electronic device and readable storage medium
A technology of data reading and writing and data writing, which is applied in the computer field to improve the efficiency of data reading and writing and reduce the effect of frequently loading the recording head
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] refer to figure 1 , which shows a flow chart of the steps of a data reading and writing method, including:
[0026] Step 101, acquire a data read and write request, and add the data read and write request to a preset data write request queue or a data read request queue according to the request type of the data read and write request.
[0027] Among them, the request type is divided into data writing and data reading.
[0028] The data write request queue stores data write requests according to the request time, the earlier requests are sorted at the front, and the later requests are sorted at the back.
[0029] The data read request queue stores data read requests according to the request time, the requests with the earlier time are sorted at the front position, and the requests with the later time are sorted at the rear position.
[0030] In the initial state, allocate storage locations for the data write request queue and the data read request queue, and set the ma...
Embodiment 2
[0045] The embodiment of the present application describes optional data reading and writing methods from the system architecture level.
[0046] refer to figure 2 , which shows a flow chart of specific steps of another data reading and writing method.
[0047] Step 201, acquiring a data read and write request.
[0048] Data read and write requests include data write requests and data read requests.
[0049] In the embodiment of the present invention, when a data read request or a data write request is obtained, the request is added to the data read request queue or the data write request queue.
[0050] Step 202, if the type of the data request is a write request, acquire data to be written, and segment the data to be written according to a preset segment size to obtain at least one segmented data.
[0051] Wherein, the fragment size can be represented by bytes. For example, for a 4GB file, if the fragment size is 1GB, the file can be divided into four 1GB fragment files...
Embodiment 3
[0131] refer to image 3 , which shows a structural diagram of a data reading and writing device, specifically as follows.
[0132] The data request obtaining module 301 is configured to obtain a data read and write request, and add the data read and write request to a preset data write request queue or a data read request queue according to the request type of the data read and write request.
[0133] The data writing module 302 is used to write the data to be written into a predetermined optical disc cartridge by using a preset first type recording head if the data writing request queue is not empty, and the data to be written is the The data carried by each data write request in the data write request queue.
[0134] The data reading module 303 is configured to, if the data reading request queue is not empty, use a preset second type recording head to read the data from the optical disc cartridge to be read according to the data reading request in the data reading request ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com