发明授权
US07770172B2 Conditional variables without spinlocks 失效
没有自旋锁的条件变量

Conditional variables without spinlocks
摘要:
The use of spinlocks is avoided in the combination of mutex and condition variables by using any suitable atomic compare and swap functionality to add a thread to a list of waiting threads that waits for a data event to occur. Various embodiments of the present invention also provide an organization scheme of data, which describes an access bit, an awaken count, and a pointer to the list of waiting threads. This organization scheme of data helps to optimize the list of waiting threads so as to better awaken a waiting thread or all waiting threads at once.
公开/授权文献
信息查询
0/0