CN108572876A - 一种读写锁的实现方法及装置 - Google Patents
一种读写锁的实现方法及装置 Download PDFInfo
- Publication number
- CN108572876A CN108572876A CN201810186320.9A CN201810186320A CN108572876A CN 108572876 A CN108572876 A CN 108572876A CN 201810186320 A CN201810186320 A CN 201810186320A CN 108572876 A CN108572876 A CN 108572876A
- Authority
- CN
- China
- Prior art keywords
- state
- read
- request message
- write
- data
- 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.)
- Granted
Links
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 true CN108572876A (zh) | 2018-09-25 |
CN108572876B 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) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109698971A (zh) * | 2019-01-15 | 2019-04-30 | 青岛海信电器股份有限公司 | 一种数据处理方法及装置 |
CN110908968A (zh) * | 2019-11-14 | 2020-03-24 | 浪潮电子信息产业股份有限公司 | 一种文件锁解锁时避免惊群的方法、装置、设备及存储介质 |
CN111104412A (zh) * | 2018-10-25 | 2020-05-05 | 阿里巴巴集团控股有限公司 | 基于单线程的并发控制方法、装置和*** |
CN111857545A (zh) * | 2019-04-28 | 2020-10-30 | 深信服科技股份有限公司 | 一种读写锁冲突判断方法、***、设备及计算机介质 |
CN113419870A (zh) * | 2021-06-20 | 2021-09-21 | 济南浪潮数据技术有限公司 | 一种卷读写方法和装置 |
CN113703666A (zh) * | 2021-07-14 | 2021-11-26 | 新华三大数据技术有限公司 | 一种数据读写方法及装置 |
CN115202884A (zh) * | 2022-07-26 | 2022-10-18 | 江苏安超云软件有限公司 | 基于轮询的高性能***的加解读写锁的方法及应用 |
CN116028437A (zh) * | 2023-03-29 | 2023-04-28 | 苏州浪潮智能科技有限公司 | 文件读取方法、装置、raid卡、存储***及存储介质 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1197955A (zh) * | 1997-04-17 | 1998-11-04 | 阿尔卡塔尔-阿尔斯托姆通用电气公司 | 管理共享内存的方法 |
US20100333096A1 (en) * | 2009-06-26 | 2010-12-30 | David Dice | Transactional Locking with Read-Write Locks in Transactional Memory Systems |
CN102999378A (zh) * | 2012-12-03 | 2013-03-27 | 中国科学院软件研究所 | 一种读写锁实现方法 |
CN104102549A (zh) * | 2013-04-01 | 2014-10-15 | 华为技术有限公司 | 一种实现多线程互斥操作的方法、装置和芯片 |
CN104461705A (zh) * | 2014-11-17 | 2015-03-25 | 华为技术有限公司 | 一种业务访问的方法及存储控制器、集群存储*** |
CN106790694A (zh) * | 2017-02-21 | 2017-05-31 | 广州爱九游信息技术有限公司 | 分布式***及分布式***中目标对象的调度方法 |
CN107632794A (zh) * | 2017-10-20 | 2018-01-26 | 北京小米移动软件有限公司 | 读写锁控制方法及装置 |
-
2018
- 2018-03-07 CN CN201810186320.9A patent/CN108572876B/zh active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1197955A (zh) * | 1997-04-17 | 1998-11-04 | 阿尔卡塔尔-阿尔斯托姆通用电气公司 | 管理共享内存的方法 |
US20100333096A1 (en) * | 2009-06-26 | 2010-12-30 | David Dice | Transactional Locking with Read-Write Locks in Transactional Memory Systems |
CN102999378A (zh) * | 2012-12-03 | 2013-03-27 | 中国科学院软件研究所 | 一种读写锁实现方法 |
CN104102549A (zh) * | 2013-04-01 | 2014-10-15 | 华为技术有限公司 | 一种实现多线程互斥操作的方法、装置和芯片 |
CN104461705A (zh) * | 2014-11-17 | 2015-03-25 | 华为技术有限公司 | 一种业务访问的方法及存储控制器、集群存储*** |
CN106790694A (zh) * | 2017-02-21 | 2017-05-31 | 广州爱九游信息技术有限公司 | 分布式***及分布式***中目标对象的调度方法 |
CN107632794A (zh) * | 2017-10-20 | 2018-01-26 | 北京小米移动软件有限公司 | 读写锁控制方法及装置 |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104412A (zh) * | 2018-10-25 | 2020-05-05 | 阿里巴巴集团控股有限公司 | 基于单线程的并发控制方法、装置和*** |
CN111104412B (zh) * | 2018-10-25 | 2023-05-30 | 阿里巴巴集团控股有限公司 | 基于单线程的并发控制方法、装置和*** |
CN109698971A (zh) * | 2019-01-15 | 2019-04-30 | 青岛海信电器股份有限公司 | 一种数据处理方法及装置 |
CN109698971B (zh) * | 2019-01-15 | 2021-07-06 | 海信视像科技股份有限公司 | 一种数据处理方法及装置 |
CN111857545A (zh) * | 2019-04-28 | 2020-10-30 | 深信服科技股份有限公司 | 一种读写锁冲突判断方法、***、设备及计算机介质 |
CN111857545B (zh) * | 2019-04-28 | 2023-12-29 | 深信服科技股份有限公司 | 一种读写锁冲突判断方法、***、设备及计算机介质 |
CN110908968A (zh) * | 2019-11-14 | 2020-03-24 | 浪潮电子信息产业股份有限公司 | 一种文件锁解锁时避免惊群的方法、装置、设备及存储介质 |
CN110908968B (zh) * | 2019-11-14 | 2022-05-27 | 浪潮电子信息产业股份有限公司 | 一种文件锁解锁时避免惊群的方法、装置、设备及存储介质 |
CN113419870A (zh) * | 2021-06-20 | 2021-09-21 | 济南浪潮数据技术有限公司 | 一种卷读写方法和装置 |
CN113703666A (zh) * | 2021-07-14 | 2021-11-26 | 新华三大数据技术有限公司 | 一种数据读写方法及装置 |
CN115202884A (zh) * | 2022-07-26 | 2022-10-18 | 江苏安超云软件有限公司 | 基于轮询的高性能***的加解读写锁的方法及应用 |
CN116028437A (zh) * | 2023-03-29 | 2023-04-28 | 苏州浪潮智能科技有限公司 | 文件读取方法、装置、raid卡、存储***及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN108572876B (zh) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108572876A (zh) | 一种读写锁的实现方法及装置 | |
US20080059471A1 (en) | Using Local Locks For Global Synchronization In Multi-Node Systems | |
CN109271258A (zh) | 读写锁重入的实现方法、装置、终端及存储介质 | |
JP2007122664A (ja) | 情報処理方法および情報処理装置 | |
CN108124003A (zh) | 网络管理设备连接处理方法、装置及*** | |
RU2501075C2 (ru) | Изоляция контента посредством процессов в приложении | |
CN102541661B (zh) | 实现等待地址同步接口的方法和设备 | |
CN105630731A (zh) | 一种多cpu环境下网卡数据处理方法和装置 | |
KR100834432B1 (ko) | 다중시스템 클러스터에서의 리소스 경합을 관리하는 방법 및 장치 | |
JP4407956B2 (ja) | 情報処理方法および情報処理装置 | |
CN111240806B (zh) | 一种分布式容器镜像构建调度方法 | |
JP3910577B2 (ja) | リソース・コンテンションを管理するための方法および装置 | |
JP2016517102A (ja) | データベースにおいて再実行データを処理するための方法および装置 | |
AU2006268125A1 (en) | Blocking local sense synchronization barrier | |
CN111381972A (zh) | 分布式任务调度方法、装置和*** | |
WO2022062833A1 (zh) | 内存分配方法及相关设备 | |
CN104731635A (zh) | 一种虚拟机访问控制方法,及虚拟机访问控制*** | |
CN106385377B (zh) | 一种信息处理方法和*** | |
CN112148480A (zh) | 基于多线程的任务处理方法、装置、设备及存储介质 | |
JP5818824B2 (ja) | デュアル・モード・リーダ・ライタ・ロック | |
US20180373573A1 (en) | Lock manager | |
CN106815061B (zh) | 一种业务处理方法及装置 | |
CN114490098A (zh) | 一种防止页面配置多用户同时编辑的方法 | |
CN107678866B (zh) | 一种基于嵌入式操作***的分区通信方法及装置 | |
CN106293930B (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 | ||
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. |
|
TR01 | Transfer of patent right | ||
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. |