Supercharge Your Innovation With Domain-Expert AI Agents!

Memory operation control method and device and storage medium

An operation control and memory technology, applied in the storage field, which can solve the problems affecting the efficiency of read and write operations, blockage of read operation threads and write operation threads, etc.

Pending Publication Date: 2021-12-17
金篆信科有限责任公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The memory operation control method, device, and storage medium provided by the embodiments of the present invention mainly solve the technical problem as follows: in the related memory operation scheme, because the read and write operations will lock the memory, it is easy to cause the read operation thread for the same memory to be locked. Mutual blockage with the write operation thread, affecting the efficiency of read and write operations

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
  • Memory operation control method and device and storage medium
  • Memory operation control method and device and storage medium
  • Memory operation control method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] In order to solve the related art for a read operation and a write operation thread a thread blocked another memory, affecting the efficiency of the read and write operations, the present embodiment provides a method for controlling memory operations, the memory device may control the operation control method by the memory operation realize, see below figure 1 The memory operation is a flowchart illustrating a control method of:

[0030] S102: dividing a memory block from a memory block of K, and determines the memory address of each memory block.

[0031] The so-called "memory block" operation meant to be read for the memory read lock will not increase for the memory write operation is not write-lock, so, in a write operation thread during a write operation for the memory block, the thread does not exclusive write operation in the memory block, the write operation during the thread receiving write data, the memory block may also be acceptable to the other operation synchro...

Embodiment 2

[0047] This embodiment would proceed with the operation of the memory control method described on the basis of the memory block of the first embodiment, see Figure 4 From one of the memory block allocated for the write operation thread target memory block of the flowchart illustrated implementation:

[0048] S402: free memory allocated block number used.

[0049]In the present embodiment, the memory operation is a write operation control device when the thread allocated to the target memory block is always selected from the block of free memory. Each free memory block is allocated, i.e. also sequential write operation is performed using thread, operation of the memory control device can be managed according to the respective queue manner free memory block: is added to the first free memory block of free memory queue You will be dispensed first, then add the free memory queue also free memory block after dispensed. In this case, each block of free memory has a serial number used, w...

Embodiment 3

[0081] In order for the person skilled in the details and advantages of the embodiment memory operation control scheme according to the present invention more apparent, the present exemplary embodiment will be continued in conjunction with the program set forth:

[0082] See Figure 10 , Figure 10 Shows a structure of a memory block: an address memory block 100 comprises a readable recording space R, the number of records allocated space F, the total number of blocks of recording space L, a writable record address space (including the first recording partition W1, recording a second partition ...... W2 of the k-th recording partition Wk), at least two sub-blocks of memory (a first memory block mem1, a second memory partition MEM2 ...... k-th memory block memk) and record counts each corresponding to each memory block space (recording space first counter c1, the second counter C2 ...... k-space recording recording space counts ck).

[0083] If a recording space count memory block, a...

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 embodiment of the invention provides a memory operation control method and device and a storage medium, because the whole memory block does not need to be locked when receiving a read operation thread and a write operation thread, the read operation thread and the write operation thread can be executed in parallel at the same time, and mutual blockage is avoided. Meanwhile, the memory block is divided into at least two memory blocks, so that even if a read operation thread is parallel to a write operation thread, however, the read operation thread operates the current readable memory block of the memory block, and the write operation thread operates other memory blocks except the readable memory block; therefore, the two memory operation threads do not influence each other, and the correctness and effectiveness of data read-write operation can be ensured. Therefore, according to the scheme provided by the embodiment of the invention, the read operation thread and the write operation thread can be executed in parallel on the basis of ensuring the correctness and effectiveness of the memory operation, and the efficiency of the memory read-write operation is improved.

Description

Technical field [0001] Embodiment of the present invention relates to, but not limited to storage technologies, and in particular, but not limited to, one relates to a memory operation control method, device and storage medium. Background technique [0002] In the actual development, the write thread can query the data through the memory address public key, and writes the new data in accordance with a query to the memory address; read thread query memory address public data by key, and then follow the inquiry into the memory address and read data analysis. Memory write-lock, after the release of new data is written to a write lock when thread synchronization in order to solve the problem, the related art will write thread writes new data during a memory write-lock, if the read operation initiated by a thread, then You can only wait to write the data read operation after the end of the thread. Meanwhile, read the thread when reading data will also add memory read lock until the en...

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): G06F12/02G06F3/06G06F9/50
CPCG06F12/023G06F3/064G06F3/061G06F9/5027G06F2209/5018G06F12/02G06F3/06G06F9/50
Inventor 王烨卢勤元俞义方赵培
Owner 金篆信科有限责任公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More