发明名称 |
Read lock and write lock management system based upon mutex and semaphore availability |
摘要 |
A method and apparatus for implementing a read/write lock mechanism in software. In an operating environment that allows objects such threads to wait on a plurality of synchronization objects simultaneously, a read/write lock can be implemented using two synchronization objects such as a mutex and a semaphore. Further, a variable is introduced to track the number of reader threads awaiting to read protected data. The read/write lock permits a plurality of reader threads to access protected data simultaneously, while only allowing a single writer thread access to a protected data location.
|
申请公布号 |
US6029190(A) |
申请公布日期 |
2000.02.22 |
申请号 |
US19970937094 |
申请日期 |
1997.09.24 |
申请人 |
SONY CORPORATION;SONY ELECTRONICS, INC. |
发明人 |
OLIVER, RICHARD J. |
分类号 |
G06F9/46;(IPC1-7):G06F9/00 |
主分类号 |
G06F9/46 |
代理机构 |
|
代理人 |
|
主权项 |
|
地址 |
|