Invention Grant
US07934062B2 Read/write lock with reduced reader lock sampling overhead in absence of writer lock acquisition
有权
读取/写入锁定与减少读取器锁取样开销,没有写入器锁获取
- Patent Title: Read/write lock with reduced reader lock sampling overhead in absence of writer lock acquisition
- Patent Title (中): 读取/写入锁定与减少读取器锁取样开销,没有写入器锁获取
-
Application No.: US11767020Application Date: 2007-06-22
-
Publication No.: US07934062B2Publication Date: 2011-04-26
- Inventor: Paul E. McKenney , Vaddagiri Srivatsa , Gautham R. Shenoy
- Applicant: Paul E. McKenney , Vaddagiri Srivatsa , Gautham R. Shenoy
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Walter W. Duft
- Main IPC: G06F13/00
- IPC: G06F13/00

Abstract:
An improved reader-writer locking for synchronizing access to shared data. When writing the shared data, a writer flag is set and a lock is acquired on the shared data. The shared data may be accessed following the expiration of a grace period and a determination that there are no data readers accessing the shared data. When reading the shared data, the writer flag is tested that indicates whether a data writer is attempting to access the shared data. If the writer flag is not set, the shared data is accessed using a relatively fast read mechanism. If the writer flag is set, the shared data is accessed using a relatively slow read mechanism.
Public/Granted literature
- US20080320262A1 READ/WRITE LOCK WITH REDUCED READER LOCK SAMPLING OVERHEAD IN ABSENCE OF WRITER LOCK ACQUISITION Public/Granted day:2008-12-25
Information query