会员体验
专利管家(专利管理)
工作空间(专利管理)
风险监控(情报监控)
数据分析(专利分析)
侵权分析(诉讼无效)
联系我们
交流群
官方交流:
QQ群: 891211   
微信请扫码    >>>
现在联系顾问~
热词
    • 9. 发明授权
    • Preventing unnecessary context switching by employing an indicator associated with a lock on a resource
    • 通过使用与资源上的锁相关联的指示符来防止不必要的上下文切换
    • US08510738B2
    • 2013-08-13
    • US12544376
    • 2009-08-20
    • Andrew D. RogersNeill M. Clift
    • Andrew D. RogersNeill M. Clift
    • G06F9/46
    • G06F9/50G06F9/526
    • A method of avoiding unnecessary context switching in a multithreaded environment. A thread of execution of a process waiting on a lock protecting access to a shared resource may wait for the lock to be released by executing in a loop, or “spin”. The waiting thread may continuously check, in a user mode of an operating system, an indicator of whether the lock has been released. After a certain time period, the thread may stop spinning and enter a kernel mode of the operating system. Subsequently, before going to sleep which entails costly context switching, the thread may perform an additional check of the indicator to determine whether the lock has been released. If this is the case, the thread returns to user mode and the unnecessary context switching is avoided.
    • 一种在多线程环境中避免不必要的上下文切换的方法。 执行等待锁定保护对共享资源的访问的进程的线程可以等待通过在循环中执行或“旋转”来释放锁定。 等待线程可以在操作系统的用户模式下连续检查锁定是否被释放的指示。 一段时间后,线程可能停止旋转并进入操作系统的内核模式。 随后,在睡眠之前,这需要昂贵的上下文切换,线程可以执行对指示符的附加检查以确定锁是否已被释放。 如果是这种情况,则线程返回到用户模式,避免了不必要的上下文切换。