CN108572876B - 一种读写锁的实现方法及装置 - Google Patents
一种读写锁的实现方法及装置 Download PDFInfo
- Publication number
- CN108572876B CN108572876B CN201810186320.9A CN201810186320A CN108572876B CN 108572876 B CN108572876 B CN 108572876B CN 201810186320 A CN201810186320 A CN 201810186320A CN 108572876 B CN108572876 B CN 108572876B
- Authority
- CN
- China
- Prior art keywords
- state
- read
- request message
- write
- lock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F9/524—Deadlock detection or avoidance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
Abstract
Description
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810186320.9A CN108572876B (zh) | 2018-03-07 | 2018-03-07 | 一种读写锁的实现方法及装置 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810186320.9A CN108572876B (zh) | 2018-03-07 | 2018-03-07 | 一种读写锁的实现方法及装置 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108572876A CN108572876A (zh) | 2018-09-25 |
CN108572876B true CN108572876B (zh) | 2020-11-20 |
Family
ID=63576762
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810186320.9A Active CN108572876B (zh) | 2018-03-07 | 2018-03-07 | 一种读写锁的实现方法及装置 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108572876B (zh) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104412B (zh) * | 2018-10-25 | 2023-05-30 | 阿里巴巴集团控股有限公司 | 基于单线程的并发控制方法、装置和*** |
CN109698971B (zh) * | 2019-01-15 | 2021-07-06 | 海信视像科技股份有限公司 | 一种数据处理方法及装置 |
CN111857545B (zh) * | 2019-04-28 | 2023-12-29 | 深信服科技股份有限公司 | 一种读写锁冲突判断方法、***、设备及计算机介质 |
CN110908968B (zh) * | 2019-11-14 | 2022-05-27 | 浪潮电子信息产业股份有限公司 | 一种文件锁解锁时避免惊群的方法、装置、设备及存储介质 |
CN113419870A (zh) * | 2021-06-20 | 2021-09-21 | 济南浪潮数据技术有限公司 | 一种卷读写方法和装置 |
CN115202884B (zh) * | 2022-07-26 | 2023-08-22 | 江苏安超云软件有限公司 | 基于轮询的高性能***的加解读写锁的方法及应用 |
CN116028437B (zh) * | 2023-03-29 | 2023-07-14 | 苏州浪潮智能科技有限公司 | 文件读取方法、装置、raid卡、存储***及存储介质 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790694A (zh) * | 2017-02-21 | 2017-05-31 | 广州爱九游信息技术有限公司 | 分布式***及分布式***中目标对象的调度方法 |
CN107632794A (zh) * | 2017-10-20 | 2018-01-26 | 北京小米移动软件有限公司 | 读写锁控制方法及装置 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2762418B1 (fr) * | 1997-04-17 | 1999-06-11 | Alsthom Cge Alcatel | Procede de gestion d'une memoire partagee |
US8973004B2 (en) * | 2009-06-26 | 2015-03-03 | Oracle America, Inc. | Transactional locking with read-write locks in transactional memory systems |
CN102999378B (zh) * | 2012-12-03 | 2015-08-26 | 中国科学院软件研究所 | 一种读写锁实现方法 |
CN104102549B (zh) * | 2013-04-01 | 2017-12-15 | 华为技术有限公司 | 一种实现多线程互斥操作的方法、装置和芯片 |
CN104461705B (zh) * | 2014-11-17 | 2019-02-19 | 华为技术有限公司 | 一种业务访问的方法及存储控制器、集群存储*** |
-
2018
- 2018-03-07 CN CN201810186320.9A patent/CN108572876B/zh active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790694A (zh) * | 2017-02-21 | 2017-05-31 | 广州爱九游信息技术有限公司 | 分布式***及分布式***中目标对象的调度方法 |
CN107632794A (zh) * | 2017-10-20 | 2018-01-26 | 北京小米移动软件有限公司 | 读写锁控制方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN108572876A (zh) | 2018-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108572876B (zh) | 一种读写锁的实现方法及装置 | |
US20040225742A1 (en) | Using local locks for global synchronization in multi-node systems | |
US20130138886A1 (en) | Scheduler, multi-core processor system, and scheduling method | |
EP2945072A1 (en) | Method and apparatus for processing redo data of database | |
US8190857B2 (en) | Deleting a shared resource node after reserving its identifier in delete pending queue until deletion condition is met to allow continued access for currently accessing processor | |
CN110704112B (zh) | 在区块链中并发执行交易的方法和装置 | |
US8666958B2 (en) | Approaches to reducing lock communications in a shared disk database | |
CN112099962B (zh) | 分布式锁实现方法、装置和电子设备 | |
CN104063355A (zh) | 对服务器集群进行配置的方法及配置中心服务器 | |
US11500693B2 (en) | Distributed system for distributed lock management and method for operating the same | |
CN112148480A (zh) | 基于多线程的任务处理方法、装置、设备及存储介质 | |
WO2015085914A1 (zh) | 数据库访问方法和装置 | |
CN110908968B (zh) | 一种文件锁解锁时避免惊群的方法、装置、设备及存储介质 | |
US10310916B2 (en) | Scalable spinlocks for non-uniform memory access | |
CN112068948B (zh) | 数据散列方法、可读存储介质和电子设备 | |
CN113961364A (zh) | 一种大规模锁***实现方法、装置、存储介质和服务器 | |
CN111261206B (zh) | 一种读写方法、装置和电子设备及可读存储介质 | |
US20090292885A1 (en) | Method and apparatus for providing atomic access to memory | |
CN112541041A (zh) | 一种数据处理方法、装置、服务器及存储介质 | |
CN115951844B (zh) | 分布式文件***的文件锁管理方法、设备及介质 | |
CN114840356B (zh) | 一种数据处理方法、数据处理***及相关装置 | |
CN113806388A (zh) | 基于分布式锁的业务处理方法及装置 | |
CN109976675B (zh) | 一种数据更新、读取方法、装置、设备及存储介质 | |
CN111814007B (zh) | 双向链表数据处理方法、装置、设备及机器可读存储介质 | |
CN117687744A (zh) | 一种硬件事务内存中对事务进行动态调度的方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 100089 Beijing city Haidian District Road No. 4 North wa Yitai three storey building Patentee after: NSFOCUS Technologies Group Co.,Ltd. Patentee after: NSFOCUS TECHNOLOGIES Inc. Address before: 100089 Beijing city Haidian District Road No. 4 North wa Yitai three storey building Patentee before: NSFOCUS INFORMATION TECHNOLOGY Co.,Ltd. Patentee before: NSFOCUS TECHNOLOGIES Inc. |
|
CP01 | Change in the name or title of a patent holder | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220330 Address after: 100089 Beijing city Haidian District Road No. 4 North wa Yitai 5 storey building Patentee after: NSFOCUS Technologies Group Co.,Ltd. Patentee after: NSFOCUS TECHNOLOGIES Inc. Patentee after: Shenzhou Lvmeng Chengdu Technology Co.,Ltd. Address before: 100089 Beijing city Haidian District Road No. 4 North wa Yitai three storey building Patentee before: NSFOCUS Technologies Group Co.,Ltd. Patentee before: NSFOCUS TECHNOLOGIES Inc. |
|
TR01 | Transfer of patent right |