发明名称 Method and apparatus for locking shared memory locations in multiprocessing systems
摘要 A method of synchronizing accesses to shared data in a multiprocessing system having an atomic swap capability. A distinguished lock value is defined. A processor which wishes to access a shared data memory location performs an atomic swap of the lock value to the shared data memory location. If the data received from the atomic swap is equivalent to the lock value the processor knows that the memory location has been locked by another processor. The processor then repeats the atomic swap at intervals until data is received which is not equivalent to the lock value. The processor operates on the data and then performs a write to the shared data memory location to replace the lock value with the updated data. In an alternate embodiment, in situations where a unique lock value cannot be defined, an array is created to store lock values associated with particular shared data memory locations. A processor seeking access to a shared data memory location performs atomic swaps of the lock value to the lock array to determine access to a shared data memory location.
申请公布号 US5535365(A) 申请公布日期 1996.07.09
申请号 US19930141259 申请日期 1993.10.22
申请人 CRAY RESEARCH, INC. 发明人 BARRIUSO, FRANK R.;PASE, DOUGLAS M.;SIELAFF, DAVID J.
分类号 G06F9/46;(IPC1-7):G06F12/00 主分类号 G06F9/46
代理机构 代理人
主权项
地址