-
公开(公告)号:US11126474B1
公开(公告)日:2021-09-21
申请号:US15622490
申请日:2017-06-14
Applicant: Amazon Technologies, Inc.
Inventor: Tzachi Zidenberg , Adi Habusha , Zeev Zilberman
Abstract: Techniques for reducing the probability of spinlock and/or reducing the time that a virtual central processing unit (CPU) may hold a lock are provided. In one embodiment, a computer-implemented method includes determining that an executing virtual CPU is holding a lock for exclusive use of a resource, and scheduling the executing virtual CPU to run for up to a specified time period before de-scheduling the executing virtual CPU. In one embodiment, the executing virtual CPU holding the lock writes a value to a register to indicate that the executing virtual CPU is holding the lock.