Optical disk parallel processing method and system

文档序号:880248 发布日期:2021-03-19 浏览:9次 中文

阅读说明:本技术 一种光盘并行处理方法及系统 (Optical disk parallel processing method and system ) 是由 张理 由伟希 白世杰 宁萌 于 2019-10-08 设计创作,主要内容包括:本发明公开一种光盘并行处理方法及系统,所述方法包括获取待存储数据;对所述待存储数据进行分块,确定多个待存储数据块;对多个所述待存储数据块进行排序,确定排序后的待存储数据块;将排序后的待存储数据块依次分配到不同光盘上的刻录缓冲区,确定刻录数据;根据所述刻录数据进行刻录。本发明所提供的一种光盘并行处理方法及系统,保证了数据均匀的分配到多张光盘中,保证了光盘在刻录过程中负载均衡。(The invention discloses a method and a system for parallel processing of optical disks, wherein the method comprises the steps of obtaining data to be stored; partitioning the data to be stored, and determining a plurality of data blocks to be stored; sequencing the data blocks to be stored, and determining the sequenced data blocks to be stored; sequentially distributing the sequenced data blocks to be stored to recording buffer areas on different optical disks to determine recording data; and recording according to the recording data. The optical disk parallel processing method and the optical disk parallel processing system provided by the invention ensure that data is uniformly distributed to a plurality of optical disks and ensure that the load of the optical disks is balanced in the recording process.)

1. An optical disc parallel processing method, comprising:

acquiring data to be stored;

partitioning the data to be stored, and determining a plurality of data blocks to be stored;

sequencing the data blocks to be stored, and determining the sequenced data blocks to be stored;

sequentially distributing the sequenced data blocks to be stored to recording buffer areas on different optical disks to determine recording data;

and recording according to the recording data.

2. The optical disc parallel processing method according to claim 1, wherein the blocking the data to be stored and determining a plurality of data blocks to be stored specifically includes:

acquiring a blocking threshold;

and partitioning the data to be stored according to the partitioning threshold value, and determining a plurality of data blocks to be stored.

3. The method of claim 1, wherein the allocating the ordered data blocks to be stored to recording buffers on different optical discs in sequence, and before determining the recording data, further comprises:

obtaining available storage space of a plurality of optical discs;

and determining the optical disc with the maximum available storage space according to the available storage spaces of a plurality of optical discs.

4. The optical disc parallel processing method according to claim 3, wherein the sequentially allocating the sorted data blocks to be stored to recording buffers on different optical discs to determine recording data includes:

allocating the first bit in the sorted data blocks to be stored to a recording buffer area on the optical disc with the largest available storage space;

and sequentially distributing the rest of the sorted data blocks to be stored to the recording buffer areas on the rest of the optical discs.

5. An optical disc parallel processing system, comprising:

the data to be stored acquisition module is used for acquiring data to be stored;

the data block to be stored determining module is used for partitioning the data to be stored and determining a plurality of data blocks to be stored;

the sequenced data block to be stored determining module is used for sequencing a plurality of data blocks to be stored and determining the sequenced data blocks to be stored;

the sequenced data blocks to be stored are distributed to recording buffer areas on different optical disks in sequence, and recording data is determined;

and the data recording module is used for recording according to the recording data.

6. The optical disc parallel processing system according to claim 1, wherein the module for determining the data block to be stored specifically comprises:

a blocking threshold acquisition unit configured to acquire a blocking threshold;

and the data block to be stored determining unit is used for partitioning the data to be stored according to the partitioning threshold value and determining a plurality of data blocks to be stored.

7. The optical disc parallel processing system according to claim 1, further comprising:

an available storage space obtaining module of an optical disc, configured to obtain available storage spaces of a plurality of optical discs;

and the optical disc determination module with the largest available storage space is used for determining the optical disc with the largest available storage space according to the available storage spaces of the optical discs.

8. The optical disc parallel processing system according to claim 7, wherein the ordered data block to be stored allocating module specifically includes:

the first allocation unit of the sorted data blocks to be stored is used for allocating the first bit in the sorted data blocks to be stored to the recording buffer area on the optical disc with the largest available storage space;

and the second distribution unit of the sorted data blocks to be stored is used for sequentially distributing the rest of the sorted data blocks to be stored to the recording buffer areas on the rest of the optical discs.

Technical Field

The present invention relates to the field of data storage, and in particular, to a method and system for parallel processing of optical discs.

Background

The data growth speed of the big data era is continuously improved, and further, huge pressure is generated on the storage capacity and the performance. Among them, more and more important data needs to be preserved for a long time. Among them, optical disc storage is an inexpensive way of storing data for a long period of time.

In the prior art, the storage space of an optical disc is limited, and the memory of the optical disc is insufficient for data with large memory. Therefore, the memory of the whole storage is improved by arranging a plurality of optical discs, but in the storage process, in the prior art, after the storage of one optical disc is finished, the recording storage of the next optical disc is usually carried out. That is, in the prior art, data cannot be evenly distributed to all optical discs, so that the memory of the optical disc recorded first is used up, and then the excessive memory of the optical disc recorded later remains, thereby causing the load imbalance of the optical disc during the recording process.

Disclosure of Invention

The invention aims to provide a method and a system for parallel processing of optical disks, which solve the problem of uneven distribution of the optical disks in the recording process in the prior art.

In order to achieve the purpose, the invention provides the following scheme:

an optical disc parallel processing method, comprising:

acquiring data to be stored;

partitioning the data to be stored, and determining a plurality of data blocks to be stored;

sequencing the data blocks to be stored, and determining the sequenced data blocks to be stored;

sequentially distributing the sequenced data blocks to be stored to recording buffer areas on different optical disks to determine recording data;

and recording according to the recording data.

Optionally, the blocking the data to be stored, and determining a plurality of data blocks to be stored specifically include:

acquiring a blocking threshold;

and partitioning the data to be stored according to the partitioning threshold value, and determining a plurality of data blocks to be stored.

Optionally, the sequentially allocating the sorted data blocks to be stored to recording buffers on different optical discs, before determining the recording data, further includes:

obtaining available storage space of a plurality of optical discs;

and determining the optical disc with the maximum available storage space according to the available storage spaces of a plurality of optical discs.

Optionally, the sequentially allocating the sorted data blocks to be stored to recording buffers on different optical discs to determine recording data specifically includes:

allocating the first bit in the sorted data blocks to be stored to a recording buffer area on the optical disc with the largest available storage space;

and sequentially distributing the rest of the sorted data blocks to be stored to the recording buffer areas on the rest of the optical discs.

An optical disc parallel processing system comprising:

the data to be stored acquisition module is used for acquiring data to be stored;

the data block to be stored determining module is used for partitioning the data to be stored and determining a plurality of data blocks to be stored;

the sequenced data block to be stored determining module is used for sequencing a plurality of data blocks to be stored and determining the sequenced data blocks to be stored;

the sequenced data blocks to be stored are distributed to recording buffer areas on different optical disks in sequence, and recording data is determined;

and the data recording module is used for recording according to the recording data.

Optionally, the module for determining the data block to be stored specifically includes:

a blocking threshold acquisition unit configured to acquire a blocking threshold;

and the data block to be stored determining unit is used for partitioning the data to be stored according to the partitioning threshold value and determining a plurality of data blocks to be stored.

Optionally, the method further includes:

an available storage space obtaining module of an optical disc, configured to obtain available storage spaces of a plurality of optical discs;

and the optical disc determination module with the largest available storage space is used for determining the optical disc with the largest available storage space according to the available storage spaces of the optical discs.

Optionally, the module for allocating the sorted data blocks to be stored specifically includes:

the first allocation unit of the sorted data blocks to be stored is used for allocating the first bit in the sorted data blocks to be stored to the recording buffer area on the optical disc with the largest available storage space;

and the second distribution unit of the sorted data blocks to be stored is used for sequentially distributing the rest of the sorted data blocks to be stored to the recording buffer areas on the rest of the optical discs.

According to the specific embodiment provided by the invention, the invention discloses the following technical effects: the invention provides a method and a system for parallel processing of optical disks.A plurality of data blocks to be stored are determined by partitioning the data to be stored; and then sorting the data blocks to be stored, sequentially distributing the data blocks to different optical disk recording buffer areas, and finally recording. The optical disk parallel processing method and the optical disk parallel processing system ensure that the difference of the memory occupied by the data in the optical disk is not large, namely the data are uniformly distributed into a plurality of optical disks, and the load balance of the optical disks in the recording process is ensured.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.

FIG. 1 is a flow chart of a parallel processing method for optical discs according to the present invention;

fig. 2 is a schematic structural diagram of a parallel processing system for optical discs according to the present invention.

Description of the drawings: 201-a data acquisition module to be stored, 202-a data block determination module to be stored, 203-a data block determination module to be stored after sequencing, 204-a data block distribution module to be stored after sequencing, 205-a data burning module.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The invention aims to provide a method and a system for parallel processing of optical disks, which solve the problem of uneven distribution of the optical disks in the recording process in the prior art.

In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.

Fig. 1 is a schematic flow chart of a method for parallel processing an optical disc according to the present invention, and as shown in fig. 1, the method for parallel processing an optical disc according to the present invention includes:

and S101, acquiring data to be stored.

S102, partitioning the data to be stored, and determining a plurality of data blocks to be stored.

S103, sequencing the data blocks to be stored, and determining the sequenced data blocks to be stored.

S104, the sorted data blocks to be stored are sequentially distributed to recording buffer areas on different optical discs, and recording data are determined.

S105, recording according to the recording data.

S102, blocking the data to be stored, and determining a plurality of data blocks to be stored specifically includes:

and acquiring a blocking threshold value.

And partitioning the data to be stored according to the partitioning threshold value, and determining a plurality of data blocks to be stored.

In a specific embodiment, the data to be stored is blocked according to the blocking threshold, and a plurality of data blocks to be stored are determined. And determining one data block to be stored which does not meet the size of the blocking threshold value in the plurality of data blocks to be stored. Therefore, the burning of one to-be-stored data can make the data burned on one of the discs smaller than those on the other discs.

In order to ensure that the data blocks to be stored are uniformly distributed to the recording buffer areas on the optical disc, before the ordered data blocks to be stored are sequentially distributed to the recording buffer areas on different optical discs, the method further includes:

the available storage space of a plurality of said optical discs is obtained.

And determining the optical disc with the maximum available storage space according to the available storage spaces of a plurality of optical discs.

Further, the sequentially allocating the sorted data blocks to be stored to recording buffers on different optical discs to determine recording data specifically includes:

and allocating the first bit in the sequenced data blocks to be stored to a recording buffer area on the optical disc with the largest available storage space.

And sequentially distributing the rest of the sorted data blocks to be stored to the recording buffer areas on the rest of the optical discs.

Wherein, in a specific embodiment, the optical disc is a double-sided optical disc or a single-sided optical disc; here, the different optical discs in S104 represent optical discs on different sides, and are not limited to single-sided or double-sided optical discs.

The optical disk parallel processing method provided by the invention has the advantages that the data blocks of the same data to be stored are uniformly distributed on different optical disks, so that the load balance of the data during recording is ensured, the distribution positions of the data blocks of the same data to be stored on different optical disks are similar, and the reading efficiency of the same data to be stored is further improved.

Fig. 2 is a schematic structural diagram of an optical disc parallel processing system according to the present invention, and the optical disc parallel processing system shown in fig. 2 includes: a to-be-stored data acquisition module 201, a to-be-stored data block determination module 202, a sorted to-be-stored data block determination module 203, a sorted to-be-stored data block allocation module 204, and a data burning module 205.

The data to be stored obtaining module 201 is configured to obtain data to be stored.

The to-be-stored data block determining module 202 is configured to block the to-be-stored data and determine a plurality of to-be-stored data blocks.

The sequenced data block to be stored determining module 203 is configured to sequence the plurality of data blocks to be stored, and determine the sequenced data blocks to be stored.

The sequenced data blocks to be stored allocation module 204 is configured to sequentially allocate the sequenced data blocks to be stored to recording buffers on different optical discs, so as to determine recording data.

The data recording module 205 is used for recording according to the recording data.

The to-be-stored data block determining module 202 specifically includes: the device comprises a blocking threshold value acquisition unit and a data block to be stored determination unit.

The block threshold acquisition unit is used for acquiring a block threshold.

And the data block to be stored determining unit is used for partitioning the data to be stored according to the partitioning threshold value and determining a plurality of data blocks to be stored.

In a specific embodiment, the optical disc parallel processing system provided by the present invention further includes: an available storage space obtaining module of the optical disc and an optical disc determining module with the maximum available storage space.

The available storage space acquisition module of the optical disc is used for acquiring the available storage spaces of a plurality of optical discs;

the optical disc determination module with the largest available storage space is used for determining the optical disc with the largest available storage space according to the available storage spaces of a plurality of optical discs.

Further, the sorted to-be-stored data block allocation module 203 specifically includes: the data storage device comprises a first sorted data block to be stored distribution unit and a second sorted data block to be stored distribution unit.

The first allocation unit of the sorted data blocks to be stored is used for allocating the first bit in the sorted data blocks to be stored to the recording buffer area on the optical disc with the largest available storage space;

and the second distribution unit of the sorted data blocks to be stored is used for sequentially distributing the rest of the sorted data blocks to be stored to the recording buffer areas on the rest of the optical discs.

The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.

The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:具有输入和输出的媒体内容增强系统,以及组成媒体产品的方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!