首页>
外国专利>
System and Method for Implementing Hierarchical Queue-Based Locks Using Flat Combining
System and Method for Implementing Hierarchical Queue-Based Locks Using Flat Combining
展开▼
机译:使用平面组合实现基于分层队列的锁的系统和方法
展开▼
页面导航
摘要
著录项
相似文献
摘要
The system and methods described herein may be used to implement a scalable, hierarchal, queue-based lock using flat combining. A thread executing on a processor core in a cluster of cores that share a memory may post a request to acquire a shared lock in a node of a publication list for the cluster using a non-atomic operation. A combiner thread may build an ordered (logical) local request queue that includes its own node and nodes of other threads (in the cluster) that include lock requests. The combiner thread may splice the local request queue into a (logical) global request queue for the shared lock as a sub-queue. A thread whose request has been posted in a node that has been combined into a local sub-queue and spliced into the global request queue may spin on a lock ownership indicator in its node until it is granted the shared lock.
展开▼