📑 Table of Contents

在電腦科學中,load-linked/store-conditional(LL/SC),也會被稱作load-reserved/store-conditional (LR/SC)load-linkstore-conditional (LL/SC)是一对用于并发同步访问内存的CPU指令。Load-link返回内存位置处的当前值,随后的store-conditional在该内存位置处保存新值(如果从load-link后没有被修改)。这被用于实现无锁算法英语Non-blocking_algorithmread-modify-write原子操作。

历史

编辑

LL/SC最初是Jensen, Hagensen, Broughton在勞倫斯利佛摩國家實驗室S-1 AAP multiprocessor页面存档备份,存于互联网档案馆)而设计。

实现

编辑

LL/SC指令被下述架构支持:

LL/SC的硬件实现典型地不允许嵌套LL/SC对。[1] 嵌套的LL/SC机制用于提供MCAS原语(多字Compare-And-Swap,字可以是分布的)。[2] 2013年Trevor Brown, Faith Ellen, Eric Ruppert软件实现了多地址LL/SC扩展。[3]这被用来优化二叉搜索树。[4]

参见

编辑

参考文献

编辑
  1. ^ Larus, James R.; Rajwar, Ravi. Transactional Memory. Morgan & Claypool. 2007: 55. ISBN 978-1-59829-124-7. 
  2. ^ Fraser, Keir. Practical lock-freedom (PDF) (技术报告). University of Cambridge Computer Laboratory: 20. February 2004 [2017-11-22]. UCAM-CL-TR-579. (原始内容存档 (PDF)于2020-11-12). 
  3. ^ Brown, Trevor; Ellen, Faith; Ruppert, Eric. Pragmatic primitives for non-blocking data structures (PDF). PODC '13 Proceedings of the 2013 ACM symposium on Principles of distributed computing. ACM. 2013: 13–22 [2017-11-22]. ISBN 978-1-4503-2065-8. doi:10.1145/2484239.2484273. (原始内容 (PDF)存档于2015-02-03).  See also slides页面存档备份,存于互联网档案馆
  4. ^ Brown, Trevor; Ellen, Faith; Ruppert, Eric. A general technique for non-blocking trees (PDF). PPoPP '14 ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming. ACM. 2014: 329–342 [2017-11-22]. ISBN 978-1-4503-2656-8. doi:10.1145/2555243.2555267. (原始内容存档 (PDF)于2019-10-24). 

📚 Artikel Terkait di Wikipedia

通信顺序进程

CSP,它结合了时序信息用于关于实时系统的推理。 Receptive Process Theory,专门化的CSP,假定了异步(就是非阻塞(英语:Non-blocking algorithm))发送操作。 CSPP HCSP TCOZ,集成有时序的CSP于对象Z(英语:Object-Z)。

苯丙胺

“magnitude”-dependently prevent the development of an addicted phenotype possibly by blocking/reversing behavioral and neuroadaptive changes that develop during and

加沙战争中的虚假信息

[12 August 2024].  Did Israel use misleading images to claim it wasn't blocking Gaza aid?. euronews. 14 February 2024 [6 March 2024]. (原始内容存档于2 March 2024)