首页>
外国专利>
Method and system for dynamically bounded spinning threads on a contested mutex
Method and system for dynamically bounded spinning threads on a contested mutex
展开▼
机译:在有争议的互斥锁上动态限制旋转线程的方法和系统
展开▼
页面导航
摘要
著录项
相似文献
摘要
A method for managing a mutex in a data processing system is presented. For each mutex, a count is maintained of the number of threads that are spinning while waiting to acquire a mutex. If a thread attempts to acquire a locked mutex, then the thread enters a spin state or a sleep state based on restrictive conditions and the number of threads that are spinning during the attempted acquisition. In addition, the relative length of time that is required by a thread to spin on a mutex after already sleeping on the mutex may be used to regulate the number of threads that are allowed to spin on the mutex.
展开▼