Check patentability & draft patents in minutes with Patsnap Eureka AI!

Read lock operation method, write lock operation method and system

An operation method and operating system technology, applied in the field of computer system structure, can solve problems such as low execution efficiency and time-consuming, and achieve the effects of improving execution efficiency, scalability, and execution efficiency.

Active Publication Date: 2015-04-29
BEIJING OCEANBASE TECH CO LTD
View PDF6 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] Like this, this method in the prior art, causes when multiple threads of different cores read the same data, because the communication between the cores will take a certain time, the atomic operation of changing the read_ref value in the corresponding cache of each core is It takes a certain amount of time, so the execution efficiency is low

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
  • Read lock operation method, write lock operation method and system
  • Read lock operation method, write lock operation method and system
  • Read lock operation method, write lock operation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] Embodiments of the present application provide a read lock operation method, a write lock operation method, and a system.

[0039] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0040] First, an embodiment of the read lock operation method of the present application is introduced.

[0041] figure 1 A flow chart of an embodiment of the read lock operation method of the present applicat...

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 discloses a read lock operation method, a write lock operation method and a system. The read lock operation method comprises the following steps: setting a private reference count corresponding to each of kernels; performing reading processes to the same data at threads of the different kernels; performing read lock locking and read lock unlocking operations to the private reference counts corresponding to the different kernels. With the application of the embodiments of the invention, the threads of the different kernels can be utilized to perform read operation to the same data, and the private reference counts corresponding to the kernels can be independently operated; the private reference counts corresponding to the different kernels are not required to be synchronized at each of the kernels, so that the execution efficiency is promoted; furthermore, the read lock expansibility can be improved; namely, no matter how many threads of the kernels are locked with read lock and unlocked from read lock, and the read lock locking time is barely prolonged, so that the execution efficiency is improved.

Description

technical field [0001] The present application relates to the technical field of computer system structure, in particular to a read lock operation method, a write lock operation method and a system. Background technique [0002] A thread (thread), also known as a lightweight process (Lightweight Process, LWP), is a single sequence of control flow in a process, and serves as the smallest unit of program execution. In operating systems that introduce threads, processes are usually used as the basic unit of resource allocation, and threads are used as the basic unit of independent operation and independent scheduling. Threads can execute concurrently, for example multiple threads in a process can execute concurrently. Threads in different processes can also execute concurrently. In particular, in a computer system with multiple computing cores, such as a computer system with multiple CPU cores, threads of different cores can also be executed concurrently. [0003] When multi...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F15/16G06F9/38
Inventor 席华锋
Owner BEIJING OCEANBASE TECH CO LTD
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