Unlock instant, AI-driven research and patent intelligence for your innovation.

Read lock operation method, write lock operation method and system

An operating 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, improving scalability, and improving execution efficiency

Active Publication Date: 2021-07-23
BEIJING OCEANBASE TECH CO LTD
View PDF6 Cites 0 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 application discloses a read lock operation method, a write lock operation method and a system. The read lock operation method includes: setting a private reference count corresponding to each core; when threads of different cores read the same data, use the private reference counts corresponding to different cores to perform operations of adding read locks and unscrambling locks. By using the various embodiments of the present application, when threads of different cores perform read operations on the same data, they can independently perform private reference counting operations corresponding to the cores. The private reference counts corresponding to these different cores do not need to be synchronized between each core, so the execution efficiency is improved. Moreover, the scalability of read locks is also improved, that is, no matter how many core threads concurrently add and read locks, the time for adding and reading locks will hardly increase, thereby improving execution efficiency.

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