CAP mechanism-based file access method, apparatus and device

A file access and file technology, applied in computer-readable storage media, file access field based on CAP mechanism, can solve system resource waste, reduce file read, write concurrency and performance, system resources are not fully utilized and other problems, to achieve Achieve synchronous access, improve read and write performance, and reduce waiting time

Inactive Publication Date: 2018-02-09
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, when users access files, they need to apply for permissions; for example, when users read and write files, after applying for write permissions for writing operations on files, the system assigns a mutually exclusive file lock to the thread or client to ensure that the data Consistency, when the thread or client is writing the file, other threads or clients are prohibited from reading and writing the file, even if the scope of the thread to read and write t

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
  • CAP mechanism-based file access method, apparatus and device
  • CAP mechanism-based file access method, apparatus and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0047] The embodiment of the invention discloses a file access method, device, device and computer-readable storage medium based on the CAP mechanism, so as to realize file access, avoid waste of system resources, and increase concurrency and performance of file reading and writing.

[0048] see figure 1 , a kind of file access method based on CAP mechanism that the embodiment of the present invention provides, comprises:

[0049] S101. Receive a file access reque...

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 discloses a CAP mechanism-based file access method. The method comprises the steps of receiving a file access request sent by a client; judging whether an address range of a current operation file is locked or not; if not, allocating an access permission of the file access request to the client, and adding a file lock of the address range, thereby enabling the client to perform fileaccess by utilizing the access permission; and if yes, determining a permission allocation result of the file access request according to type information of the locked address range and type information of current operation. By realizing segmental locks of the file and carrying the range of the operation file in a permission application process, file contents are subjected to segmental control and operation, so that the waiting time of the client or a thread is shortened, file synchronous access is realized, and the read-write performance is improved. The invention furthermore discloses a CAPmechanism-based file access apparatus and device, and a computer readable storage medium, which also can achieve the abovementioned technical effects.

Description

technical field [0001] The present invention relates to the technical field of file access, and more specifically, to a file access method, device, device and computer-readable storage medium based on a CAP mechanism. Background technique [0002] At present, when users access files, they need to apply for permissions; for example, when users read and write files, after applying for write permissions for writing operations on files, the system assigns a mutually exclusive file lock to the thread or client to ensure that the data Consistency, when the thread or client is writing the file, other threads or clients are prohibited from reading and writing the file, even if the scope of the thread to read and write the file is not within the scope of the current file lock thread or client to read and write When within the range, other threads can only operate the file after the thread currently holding the file lock reads and writes the data and releases the file lock, which redu...

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): G06F9/50G06F21/44
CPCG06F9/5022G06F21/44
Inventor 苏志恒
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products