发明授权
- 专利标题: Elimination of traps and atomics in thread synchronization
- 专利标题(中): 在线程同步中消除陷阱和原子
-
申请号: US09204794申请日: 1998-12-03
-
公开(公告)号: US06230230B1公开(公告)日: 2001-05-08
- 发明人: William N. Joy , James M. O'Connor , Marc Tremblay
- 申请人: William N. Joy , James M. O'Connor , Marc Tremblay
- 主分类号: G06F1200
- IPC分类号: G06F1200
摘要:
Elimination of traps and atomics in thread synchronization is provided. In one embodiment, a processor includes a lock cache. The lock cache holds a value that corresponds to or identifies a computer resource only if a current thread executing on the processor owns the computer resource. A lock cache operation (e.g., a lockcachecheck instruction) determines whether a value identifying a computer resource is cached in the lock cache and returns a first predetermined value if the value identifying the computer resource is cached in the lock cache. Otherwise, a second predetermined value is returned.