Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data reading and writing method and device, electronic equipment and readable storage medium

A technology for reading and writing data and writing data, applied in the computer field

Active Publication Date: 2018-11-30
北京三快云计算有限公司 +1
View PDF17 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a data reading and writing method and device to solve the above-mentioned problems of prior art sorting

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data reading and writing method and device, electronic equipment and readable storage medium
  • Data reading and writing method and device, electronic equipment and readable storage medium
  • Data reading and writing method and device, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a data reading and writing method and device, electronic equipment and a readable storage medium. The method includes the steps: acquiring a data reading and writing request, and adding the data reading and writing request into a data writing request queue or a data reading request queue according to a request type; writing data to be written-in into a predetermined compactdisc case by a first burning head if the data writing request queue is not empty; reading the request by a second burning head according to data in the data reading request queue if the data reading request queue is not empty, reading the data from a compact disc case to be read, and determining the compact disc case to be read through compact disc case identification carried by a data reading request. The data to be written-in are data carried by data writing requests in the data writing request queue. The method solves the problem of poor data reading and writing efficiency, data writing requests and data reading requests can be preferentially processed through different burning heads, frequent loading of the burning heads is decreased, and data reading and writing efficiency is improved.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular, to a data reading and writing method, device, electronic equipment, and readable storage medium. Background technique [0002] In a data storage system of a computer, storage media that may be used include: magnetic disks, optical disks, magnetic tapes, and the like. Among them, for optical disc storage, each cabinet is equipped with multiple optical disc magazines and multiple recording heads, so that the optical disc magazines can be loaded into the recording heads through the mechanical arm, so as to read and write data through the recording heads. [0003] In the prior art, there are three schemes for reading and writing data through the recording head. Among them, the first scheme follows the rule of reading priority, and the recording head performs the data reading operation first, that is: when there is a data reading task, the recording head...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F3/06
CPCG06F3/061G06F3/0655G06F3/0659G06F3/0677
Inventor 李卫刘天淼
Owner 北京三快云计算有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products