Invention Grant
US07886300B1 Mechanism for implementing thread synchronization in a priority-correct, low-memory safe manner
有权
以优先级正确,低内存安全的方式实现线程同步的机制
- Patent Title: Mechanism for implementing thread synchronization in a priority-correct, low-memory safe manner
- Patent Title (中): 以优先级正确,低内存安全的方式实现线程同步的机制
-
Application No.: US11528188Application Date: 2006-09-26
-
Publication No.: US07886300B1Publication Date: 2011-02-08
- Inventor: Dean R. E. Long , Yin Zin Mark Lam , Jiangli Zhou
- Applicant: Dean R. E. Long , Yin Zin Mark Lam , Jiangli Zhou
- Applicant Address: US CA Redwood City
- Assignee: Oracle America, Inc. formerly known as Sun Microsystems, Inc.
- Current Assignee: Oracle America, Inc. formerly known as Sun Microsystems, Inc.
- Current Assignee Address: US CA Redwood City
- Agency: Osha • Liang LLP
- Main IPC: G06F9/46
- IPC: G06F9/46 ; G06F12/00 ; G06F13/28

Abstract:
A mechanism is disclosed for implementing fast locking in a multi-threaded system. This mechanism enables fast locking to be performed even on an operating system platform that does not allow one thread to assign ownership of a lock on a mutex to another thread. In addition, the mechanism performs locking in a manner that ensures priority correctness and is low-memory safe. In one implementation, the priority correctness is achieved by using operating system mutexes to implement locking, and the low-memory safe aspect is achieved by pre-allocating a memory section to each thread. This pre-allocated memory section ensures that a thread will have sufficient memory to obtain a lock, even when a system is in a low-memory state. With this mechanism, it is possible to implement locking in a safe and efficient manner.
Information query