US9164793B2 - Prioritized lock requests to reduce blocking - Google Patents
Prioritized lock requests to reduce blocking Download PDFInfo
- Publication number
- US9164793B2 US9164793B2 US13/723,854 US201213723854A US9164793B2 US 9164793 B2 US9164793 B2 US 9164793B2 US 201213723854 A US201213723854 A US 201213723854A US 9164793 B2 US9164793 B2 US 9164793B2
- Authority
- US
- United States
- Prior art keywords
- lock
- request
- low priority
- resource
- blocking
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active, expires
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F9/526—Mutual exclusion algorithms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/52—Indexing scheme relating to G06F9/52
- G06F2209/522—Manager
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/52—Indexing scheme relating to G06F9/52
- G06F2209/523—Mode
Definitions
- Computers and computing systems have affected nearly every aspect of modern living. Computers are generally involved in work, recreation, healthcare, transportation, entertainment, household management, etc.
- Transactional computing is performed where a set of computing operations is performed atomically (i.e., a transaction) such that all of the operations or none of the operations are performed.
- An agent can place a lock on a resource (to prevent all or certain kinds of access by other agents) and perform the atomic block of operations. If the block of operations can be completed, then the transaction is committed and the operations are made durable. If any of the operations cannot be performed, the transaction is aborted and all operations are rolled back. After being committed or aborted, the lock(s) can then be released such that other agents can operate on the data.
- Data may be organized into databases.
- DDL Data Definition Language
- SCH-M exclusive lock
- SQL Server® available from Microsoft® Corporation of Redmond Wash.
- the DDL has to wait until all existing transactions have completed (committed or rolled back) and their locks released. During this time all new lock requests are blocked behind the waiting lock.
- This behavior creates two major problems for the users. First, if there are long running queries/transactions on the table, the DDL will be blocked for a long time and the DDL operation requested by the user also has to wait. However, there are some operations which need to be executed as soon as possible because their results are important for the user application. A good example is the ALTER TABLE . . . SWITCH PARTITION operation.
- This DDL allows the user to move a large volume of data into or out of a partitioned table, without requiring physically moving data, but only by modifying the metadata of the source and target tables. When the user executes this statement the user wants the new data to become available as soon as possible.
- One embodiment illustrated herein includes a method that may be practiced in a transactional computing environment.
- the method includes requesting a lock on a resource.
- the request for the lock on the resource is specified as a low priority non-blocking request that does not block one or more other requests such that one or more other requests can request a lock on the resource and obtain the lock on the resource in priority to the low priority non-blocking request, including when the one or more other requests are made after the low priority non-blocking request.
- the method includes maintaining the low priority request in a non-blocking fashion until a predetermined condition occurs. As a result of the predetermined condition occurring, the method includes handling the low priority request such that it is no longer treated as a low priority non-blocking request.
- a method may be practiced in a transactional computing environment.
- the method includes acts for requesting a lock on a resource.
- the method includes identifying a resource.
- the method further includes issuing a kill lock request as single command. Issuing the kill lock request includes killing any other operations being performed on the resource; aborting any transactions having a lock on the resource; and locking the resource to prevent other agents from operating on the resource or requesting a lock on the resource.
- FIG. 1 illustrates a lock manager and a set of queues used to manage transactional locks
- FIG. 2 illustrates a method of requesting a lock on a resource
- FIG. 3 illustrates another method of requesting a lock on a resource.
- Embodiments described herein may implement two unique and novel lock request types: the “kill” and the “low priority” lock requests.
- a “kill” lock request is a highest priority request which kills all blocking transactions and other operations being performed on a resource to acquire the lock as soon as possible. While the “kill” lock is waiting for the killed/aborted transactions to rollback and release their locks, embodiments guarantee that no new lock requests will be granted and that the “kill” request will be the first to be granted once the existing locks are released.
- a “low priority” lock request is similar to a normal lock request because it has to wait for all (conflicting) granted locks to be released and existing waiting requests to be granted. However, a “low priority” request also does not block new normal priority requests while it is waiting and guarantees that all normal priority requests (old and new) will be granted before it is.
- embodiments are able to reduce the time a DDL (or other transactional operation) has to wait for the required locks by killing all blocking transactions.
- embodiments can solve the problem that all new lock requests are blocked while the DDL is waiting for an exclusive lock.
- embodiments may be implemented where different types of lock requests are optional and include support for combining both types in a single DDL to give the users the flexibility to choose the behavior that is best for their system.
- Embodiments may be implemented where these lock request types are not tied to specific DDLs, but can be used for all kinds of transactional operations. Thus, embodiments are not “tied” to use of DDLs, but rather can be used in any one of a number of different scenarios.
- Embodiments may be implemented where using “low priority” is performed in a fashion which allows them to be combined with “lock partitioning”, an important feature for multicore systems as explained below.
- a lock manager 102 is the component which controls when a lock can be acquired.
- the lock manager 102 does not necessarily understand the role of the various entity resources (i.e. tables, pages rows, metadata objects, etc.) in the database, but distinguishes the various lock resources using a database id for each resource, the type of each resource (e.g. table, page, etc.) and a unique id assigned to each resource.
- the lock manager 102 may note a database id and a table id if the resource is a table.
- the lock manager 102 stores a number of queues. As illustrated in FIG. 1 , a grant queue 104 stores all the locks which are currently granted for the particular resource. The wait queue 106 stores all the new normal priority lock requests (for the particular resource) which are waiting to be granted. The convert queue 108 stores all the lock requests (for the particular resource) which are waiting to be granted, but were made by transactions which are already holding a lock on this resource and need to upgrade to a more exclusive lock. This convert queue 108 is used to give higher priority to the convert requests and avoid deadlocks.
- the lock manager 102 retrieves the queues for the corresponding lock resource and scans them to check if the requested lock can be immediately granted. If there are conflicting locks in the queues then the request has to wait in the wait queue 106 or the convert queue 108 depending on whether it is a new request or a request for an upgrade.
- New requests not only check the grant queue 104 for conflicting locks, but also check the convert queue 108 and the wait queue 106 . This is done to honor a First-In-First-Out (FIFO) order in the wait queue 106 to make sure that all waiting requests will be eventually satisfied and are not going to starve.
- FIFO First-In-First-Out
- SCH-S locks do not block access on the table, but only prevent schema modifications which require a SCH-M lock. If a new transaction requests a SCH-S lock on ‘t’, although this lock is not conflicting with the first SCH-S lock, which is already granted, it cannot be granted because there is a (SCH-M) request waiting in the wait queue 106 . The new request has to wait behind the request for the SCH-M lock in the wait queue 106 , to ensure that the SCH-M request will be granted first.
- some embodiments may implement new types of lock requests. Two new types are illustrated herein and referred to as “kill” and “low priority” lock request types. These two new lock request types can modify how new requests are handled; how waiting requests are granted as existing locks are released; and how the deadlock detection mechanism works.
- a ‘kill’ lock request is a high priority request which should not block behind any waiting requests (Converts or Waits). For this reason, when a ‘kill’ request arrives embodiments scan the grant queue 104 to check if the lock can be immediately granted. If there are conflicting locks in the grant queue 104 , then the lock cannot be granted and embodiments add the request to a new, special queue, illustrated herein as a ‘kill’ queue 110 , which is a high priority queue for ‘kill’ lock requests. Then, embodiments scan the grant queue 104 again and abort all the transactions which are holding a conflicting lock on the resource. As it might take time for these transactions to rollback and release their locks, embodiments may then go to sleep until an event is received indicating that the lock has been granted.
- normal priority requests may be implemented in a fashion that does not change significantly as compared to other transactional system.
- new normal priority requests also scan the ‘kill’ queue 110 , apart from the grant queue 104 , the convert queue 108 and wait queue 106 as illustrated above, to check if there are any conflicting locks. If the lock cannot be granted, then embodiments add the normal priority lock request to the convert queue 108 or the wait queue 106 depending on the request and go to sleep until an event is received indicating that the lock has been granted.
- Embodiments may alternatively or additionally implement new ‘low priority’ requests.
- To store waiting ‘low priority’ requests embodiments include two new queues for each lock resource: the ‘low priority convert’ queue 112 and the ‘low priority wait’ queue 114 .
- New ‘low priority’ requests have to wait for all high (i.e.‘kill’) and normal priority requests (new or existing), but also have to wait for existing ‘low priority requests’.
- ‘low priority’ convert requests do not have to wait for existing ‘low priority’ requests. For this reason, when a ‘low priority’ request arrives, embodiments scan all the queues to check if a lock can be granted immediately.
- the lock cannot be granted and embodiments add the request to the low priority convert queue 112 or the low priority wait queue 114 , depending on the request, and go to sleep until embodiments receive an event that the lock has been granted.
- the following illustrates actions that may be performed for granting locks.
- the lock manager 102 checks whether waiting requests can be granted.
- the previous algorithm for granting locks involved only the convert queue 108 and the wait queue 106 .
- the algorithm was performed as follows: Scan the convert queue 108 and grant as many locks as possible. If there is a request that cannot be granted, then do not scan the wait queue 106 , as embodiments want to have all convert requests granted first. Otherwise, embodiments would scan the wait queue 106 granting locks until embodiments reached a lock that could not be granted. The requests that were waiting behind this lock in the queue would not be granted because embodiments wanted to honor the FIFO order.
- the kill queue 110 stores high priority requests which may be granted by killing other transactions.
- the low priority wait queue 114 stores requests that have to wait for all high priority requests, normal priority requests, and existing low priority requests.
- the low priority convert queue 112 stores requests that have to wait for existing high priority requests and normal priority requests but do not have to wait for existing low priority requests.
- embodiments may implement an algorithm as follows:
- Embodiments scan the kill queue 110 and try to grant as many locks as possible. If there is a lock that cannot be granted, embodiments will not scan any of the other queues because this is a high priority lock and has to be granted first.
- Embodiments scan the low priority convert queue 112 and try to grant as many locks as possible, even if there were requests in the normal priority queues that were not granted. Embodiments have this special behavior for the convert queues to avoid deadlocks.
- embodiments scan the low priority wait queue 114 granting locks until embodiments reach a lock that cannot be granted.
- Embodiments may include deadlock detection functionality.
- the deadlock detection mechanism With the addition of the new queues (i.e. the kill queue 110 , the low priority convert queue 112 and the low priority wait queue 114 ) the deadlock detection mechanism becomes more complicated. For example, as illustrated in FIG. 1 , the arrows that connect the different queues show the dependency between the waiting requests. That is, low priority requests wait for normal priority requests, normal priority requests wait for kill requests, kill requests wait for granted requests, etc. This is used by the deadlock detection mechanism to identify the deadlocks.
- Embodiments may include functionality for lock partitioning.
- the queues of a lock resource are protected from concurrent access using a spinlock.
- a spinlock In systems with a large number of CPUs, there is usually a lot of contention on this spinlock.
- Lock Partitioning solves this problem by partitioning each lock resource X into N different resources (X,0), (X,1) . . . (X,N ⁇ 1), where N is the number of CPUs of the machine.
- the most common locks, which are not exclusive, are acquired on only one partition, but exclusive locks, which ensure that multiple updates cannot be made to the same resource at the same time, are acquired on all the partitions to guarantee that no one has a conflicting lock on another partition.
- embodiments iterate over all the partitions of the resource and acquire the lock on each one individually. This makes the implementation of ‘low priority’ locks more complicated:
- embodiments need an exclusive lock on resource X
- embodiments first try to acquire a low priority′ lock on resource/partition (X,0). Once this lock has been acquired, embodiments move to resource/partition (X,1) and wait there with low priority. However, while embodiments are waiting for the lock on this partition embodiments are holding an exclusive lock on the first partition and therefore block all transactions which are trying to acquire normal priority locks on this partition. This is not correct according to the semantics of the ‘low priority’ lock, since a ‘low priority’ request should not block any normal priority requests.
- Embodiments try to acquire a low priority′ lock on the first partition. Once this lock is acquired, embodiments try to lock all the other partitions but without waiting. This means that if the lock cannot be immediately granted, embodiments do not wait but simply return that the lock request failed.
- embodiments unlock the previous partitions that were locked and start the process again from the partition where the request failed. If embodiments have reached the last partition and embodiments need to move to the next one, then embodiments go back to the first partition.
- embodiments do not block normal priority requests while trying to acquire a low priority′ lock and, at the same time, by waiting on the partition where the request failed, embodiments avoid spinning around the partitions.
- embodiments may combine the new lock request types.
- the users will have the ability to specify if they want to use ‘low priority’ locks and for how long, but also what actions will be taken once the low priority period expires. This can be specified by the user at various granularities. For example, a user may specify this functionality using various calls. Alternatively, setting may be made at the database level such that all operations are subject to the use of low priority locks. Internally, embodiments may implement this logic in the caller, which may be the DDL execution, and not inside the lock manager 102 .
- the algorithm is as follows:
- Embodiments may be implemented in ways differing from the examples illustrated above. For example, some embodiments may implement consolidated queues. Instead of creating new queues for the new lock request types, the existing queues can be reused. Each queue can be logically split into different parts for high, normal and low priority requests.
- embodiments may change the request type inside lock manager 102 : Instead of having the caller handle the low priority timeout and create a new lock request with normal priority or this operation can be done inside the lock manager 102 .
- the method 200 may be practiced in a transactional computing environment.
- the method 200 includes acts for requesting a lock on a resource.
- the method 200 includes requesting a lock on a resource (act 202 ).
- the request for the lock on the resource is specified as a low priority non-blocking request that does not block one or more other requests such that one or more other requests can request a lock on the resource and obtain the lock on the resource in priority to the low priority non-blocking request. This is done even when the one or more other requests are made after the low priority non-blocking request.
- the method 200 further includes, based on the low priority request, maintaining the low priority request in a non-blocking fashion until a predetermined condition occurs (act 204 ).
- the method 200 includes handling the low priority request such that it is no longer treated as a low priority non-blocking request (act 206 ).
- the method 200 illustrates the case where a low priority non locking lock request is made, but has been in effect and has not been properly serviced, and as such alternative arrangements are made.
- the method 200 may be practiced where handling the low priority request such that it is no longer treated as a low priority non-blocking request comprises renewing the low priority request as a normal priority request for a lock on the resource that is handled in accordance with ordinary operating of a transactional computing system.
- the normal priority request may be handled using FIFO protocols.
- Renewing the low priority request may include either issuing a new request and cancelling the previous request or upgrading the previous request to a normal priority request.
- the method 200 may be practiced where handling the low priority request such that it is no longer treated as a low priority non-blocking request comprises renewing the low priority request as a high priority kill request for a lock on the resource.
- the high priority kill request may be configured to kill any operations being performed on the resource; abort any transactions having a lock on the resource; and lock the resource to prevent other agents from operating on the resource or requesting a lock on the resource.
- the method 200 may be practiced where handling the low priority request such that it is no longer treated as a low priority non-blocking request comprises aborting the low priority request.
- embodiments may be implemented to abandon attempts at obtaining the lock and performing corresponding operations associated with the lock.
- the method 200 may be practiced where the predetermined condition comprises expiration of a given period of time.
- the predetermined condition comprises expiration of a given period of time.
- embodiments may be configured to maintain a low priority lock request for a given period of time, and once the time has expired the low priority lock request is handled in a different fashion as illustrated above.
- the method 200 may be practiced where the predetermined condition comprises the occurrence of a specific time.
- a low priority request may be valid until a specific day and time or date and time is reached, and which time handling of the request changes.
- the method 200 may be practiced where the predetermined condition comprises use of a predetermined amount of storage as a result of the low priority non-blocking request being maintained.
- the predetermined condition comprises use of a predetermined amount of storage as a result of the low priority non-blocking request being maintained.
- lock requests result in the use of storage resources to maintain state information. The longer the request is valid, the more state information that needs to be stored. Thus, some embodiments may determine that when a certain amount of storage has been used to store state information that the lock request can be upgraded or abandoned.
- the method 200 may be practiced where the predetermined condition comprises a predetermined number of lock requests by other agents occurring. For example, embodiments may count the number of requests for locks that preempt the low priority request. When a sufficient number have preempted the low priority request, the low priority request may be upgraded or abandoned.
- the method 200 may be practiced where the predetermined condition comprises user input.
- the predetermined condition comprises user input.
- a user may perform some keystroke or user interface selection that causes the low priority lock request to be upgraded or abandoned.
- the method 300 may be practiced in a transactional computing environment.
- the method 300 includes acts for requesting a lock on a resource.
- the method 300 includes identifying a resource (act 302 ).
- the method 300 further includes issuing a kill lock request as single command (act 304 ).
- the kill lock request kills any operations being performed on the resource; aborts any transactions having a lock on the resource; and locks the resource to prevent other agents from operating on the resource or requesting a lock on the resource.
- the methods may be practiced by a computer system including one or more processors and computer readable media such as computer memory.
- the computer memory may store computer executable instructions that when executed by one or more processors cause various functions to be performed, such as the acts recited in the embodiments.
- Embodiments of the present invention may comprise or utilize a special purpose or general-purpose computer including computer hardware, as discussed in greater detail below.
- Embodiments within the scope of the present invention also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures.
- Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computer system.
- Computer-readable media that store computer-executable instructions are physical storage media.
- Computer-readable media that carry computer-executable instructions are transmission media.
- embodiments of the invention can comprise at least two distinctly different kinds of computer-readable media: physical computer readable storage media and transmission computer readable media.
- Physical computer readable storage media includes RAM, ROM, EEPROM, CD-ROM or other optical disk storage (such as CDs, DVDs, etc.), magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer.
- a “network” is defined as one or more data links that enable the transport of electronic data between computer systems and/or modules and/or other electronic devices.
- a network or another communications connection can include a network and/or data links which can be used to carry or desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer. Combinations of the above are also included within the scope of computer-readable media.
- program code means in the form of computer-executable instructions or data structures can be transferred automatically from transmission computer readable media to physical computer readable storage media (or vice versa).
- program code means in the form of computer-executable instructions or data structures received over a network or data link can be buffered in RAM within a network interface module (e.g., a “NIC”), and then eventually transferred to computer system RAM and/or to less volatile computer readable physical storage media at a computer system.
- NIC network interface module
- computer readable physical storage media can be included in computer system components that also (or even primarily) utilize transmission media.
- Computer-executable instructions comprise, for example, instructions and data which cause a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions.
- the computer executable instructions may be, for example, binaries, intermediate format instructions such as assembly language, or even source code.
- the invention may be practiced in network computing environments with many types of computer system configurations, including, personal computers, desktop computers, laptop computers, message processors, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile telephones, PDAs, pagers, routers, switches, and the like.
- the invention may also be practiced in distributed system environments where local and remote computer systems, which are linked (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) through a network, both perform tasks.
- program modules may be located in both local and remote memory storage devices.
- the functionally described herein can be performed, at least in part, by one or more hardware logic components.
- illustrative types of hardware logic components include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/723,854 US9164793B2 (en) | 2012-12-21 | 2012-12-21 | Prioritized lock requests to reduce blocking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/723,854 US9164793B2 (en) | 2012-12-21 | 2012-12-21 | Prioritized lock requests to reduce blocking |
Publications (2)
Publication Number | Publication Date |
---|---|
US20140181342A1 US20140181342A1 (en) | 2014-06-26 |
US9164793B2 true US9164793B2 (en) | 2015-10-20 |
Family
ID=50976017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/723,854 Active 2034-01-21 US9164793B2 (en) | 2012-12-21 | 2012-12-21 | Prioritized lock requests to reduce blocking |
Country Status (1)
Country | Link |
---|---|
US (1) | US9164793B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11409559B2 (en) * | 2019-10-24 | 2022-08-09 | EMC IP Holding Company, LLC | System and method for weak lock allowing force preemption by high priority thread |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9342549B2 (en) | 2014-03-14 | 2016-05-17 | Sap Se | Partition level operation with concurrent activities |
US9959308B1 (en) | 2014-09-29 | 2018-05-01 | Amazon Technologies, Inc. | Non-blocking processing of federated transactions for distributed data partitions |
US10133771B2 (en) * | 2015-05-13 | 2018-11-20 | International Business Machines Corporation | Opportunistic wait-triggered elastic commit |
US9940269B2 (en) * | 2016-01-22 | 2018-04-10 | International Business Machines Corporation | Conditionally releasing locks in response to requests |
US11157332B2 (en) * | 2016-07-06 | 2021-10-26 | International Business Machines Corporation | Determining when to release a lock from a first task holding the lock to grant to a second task waiting for the lock |
US10417199B2 (en) * | 2017-07-17 | 2019-09-17 | Vmware, Inc. | Distributed locks for continuous data processing and schema administration of a database |
US11347712B2 (en) | 2017-11-07 | 2022-05-31 | International Business Machines Corporation | Preventing long running transactions from holding record locks |
Citations (34)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5283903A (en) * | 1986-12-25 | 1994-02-01 | Nec Corporation | Priority selector |
US5440752A (en) * | 1991-07-08 | 1995-08-08 | Seiko Epson Corporation | Microprocessor architecture with a switch network for data transfer between cache, memory port, and IOU |
US5625815A (en) | 1995-01-23 | 1997-04-29 | Tandem Computers, Incorporated | Relational database system and method with high data availability during table data restructuring |
US5857110A (en) * | 1991-03-19 | 1999-01-05 | Hitachi, Ltd. | Priority control with concurrent switching of priorities of vector processors, for plural priority circuits for memory modules shared by the vector processors |
US5862355A (en) * | 1996-09-12 | 1999-01-19 | Telxon Corporation | Method and apparatus for overriding bus prioritization scheme |
US5872909A (en) * | 1995-01-24 | 1999-02-16 | Wind River Systems, Inc. | Logic analyzer for software |
US5872981A (en) * | 1997-05-30 | 1999-02-16 | Oracle Corporation | Method for managing termination of a lock-holding process using a waiting lock |
US6081665A (en) * | 1997-12-19 | 2000-06-27 | Newmonics Inc. | Method for efficient soft real-time execution of portable byte code computer programs |
US6122640A (en) | 1998-09-22 | 2000-09-19 | Platinum Technology Ip, Inc. | Method and apparatus for reorganizing an active DBMS table |
US6253225B1 (en) * | 1996-08-28 | 2001-06-26 | Hitachi, Ltd. | Process executing method and resource accessing method in computer system |
US6480918B1 (en) * | 1998-12-22 | 2002-11-12 | International Business Machines Corporation | Lingering locks with fairness control for multi-node computer systems |
US6678065B1 (en) * | 1998-01-09 | 2004-01-13 | Fuji Xerox Co., Ltd. | Image forming apparatus and control method thereof |
US20040034642A1 (en) * | 2002-08-15 | 2004-02-19 | Microsoft Corporation | Priority differentiated subtree locking |
US20040039884A1 (en) * | 2002-08-21 | 2004-02-26 | Qing Li | System and method for managing the memory in a computer system |
US6723190B1 (en) * | 2000-10-27 | 2004-04-20 | The United States Of America As Represented By The Secretary Of The Navy | ESD sensitivity in titanium/boron compositions |
US20040117791A1 (en) * | 2002-12-17 | 2004-06-17 | Ajith Prasad | Apparatus, system and method for limiting latency |
US20050022186A1 (en) * | 2003-07-24 | 2005-01-27 | International Business Machines Corporation | System and method for delayed priority boost |
US6910212B2 (en) * | 2000-12-04 | 2005-06-21 | International Business Machines Corporation | System and method for improved complex storage locks |
US6920632B2 (en) * | 2002-08-23 | 2005-07-19 | Xyron Corporation | Dynamic multilevel task management method and apparatus |
US6965961B1 (en) * | 2002-03-01 | 2005-11-15 | University Of Rochester | Queue-based spin lock with timeout |
US6973521B1 (en) * | 2000-05-16 | 2005-12-06 | Cisco Technology, Inc. | Lock controller supporting blocking and non-blocking requests |
US20050275875A1 (en) * | 2004-05-27 | 2005-12-15 | International Business Machines Corporation | System and method for printer-side print queue priority self-monitoring |
US20080005740A1 (en) * | 2006-06-28 | 2008-01-03 | Portal Player, Inc. | Operating system aware hardware mutex |
US7392299B2 (en) * | 2002-07-25 | 2008-06-24 | Brother Kogyo Kabushiki Kaisha | Configuration setting system for network system |
US20090006403A1 (en) * | 2007-06-29 | 2009-01-01 | International Business Machines Corporation | Efficiently boosting priority of read-copy update readers while resolving races with exiting and unlocking processes |
US20090150396A1 (en) | 2007-11-14 | 2009-06-11 | Moshe Elisha | database schema management system |
US7647443B1 (en) * | 2007-04-13 | 2010-01-12 | American Megatrends, Inc. | Implementing I/O locks in storage systems with reduced memory and performance costs |
US20100114967A1 (en) | 2006-09-04 | 2010-05-06 | Extreme Technologies Ltd. | Method for Managing Simultaneous Modification of Database Objects During Development |
US20100250508A1 (en) * | 2009-03-31 | 2010-09-30 | Commvault Systems, Inc. | Systems and methods for data migration in a clustered file system |
US7844973B1 (en) * | 2004-12-09 | 2010-11-30 | Oracle America, Inc. | Methods and apparatus providing non-blocking access to a resource |
US7886300B1 (en) * | 2006-09-26 | 2011-02-08 | Oracle America, Inc. Formerly Known As Sun Microsystems, Inc. | Mechanism for implementing thread synchronization in a priority-correct, low-memory safe manner |
US20110246694A1 (en) * | 2008-12-12 | 2011-10-06 | Panasonic Corporation | Multi-processor system and lock arbitration method thereof |
US8261279B2 (en) * | 2005-12-12 | 2012-09-04 | International Business Machines Corporation | Optimized preemption and reservation of software locks for woken threads |
US20130132627A1 (en) * | 2011-11-22 | 2013-05-23 | Futurewei Technologies, Inc. | System and Method for Implementing Locks Shared Between Kernel and User Space |
-
2012
- 2012-12-21 US US13/723,854 patent/US9164793B2/en active Active
Patent Citations (35)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5283903A (en) * | 1986-12-25 | 1994-02-01 | Nec Corporation | Priority selector |
US5857110A (en) * | 1991-03-19 | 1999-01-05 | Hitachi, Ltd. | Priority control with concurrent switching of priorities of vector processors, for plural priority circuits for memory modules shared by the vector processors |
US5440752A (en) * | 1991-07-08 | 1995-08-08 | Seiko Epson Corporation | Microprocessor architecture with a switch network for data transfer between cache, memory port, and IOU |
US20040024987A1 (en) * | 1991-07-08 | 2004-02-05 | Seiko Epson Corporation | Microprocessor architecture capable of supporting multiple heterogeneous processors |
US5625815A (en) | 1995-01-23 | 1997-04-29 | Tandem Computers, Incorporated | Relational database system and method with high data availability during table data restructuring |
US5872909A (en) * | 1995-01-24 | 1999-02-16 | Wind River Systems, Inc. | Logic analyzer for software |
US6253225B1 (en) * | 1996-08-28 | 2001-06-26 | Hitachi, Ltd. | Process executing method and resource accessing method in computer system |
US5862355A (en) * | 1996-09-12 | 1999-01-19 | Telxon Corporation | Method and apparatus for overriding bus prioritization scheme |
US5872981A (en) * | 1997-05-30 | 1999-02-16 | Oracle Corporation | Method for managing termination of a lock-holding process using a waiting lock |
US6081665A (en) * | 1997-12-19 | 2000-06-27 | Newmonics Inc. | Method for efficient soft real-time execution of portable byte code computer programs |
US6678065B1 (en) * | 1998-01-09 | 2004-01-13 | Fuji Xerox Co., Ltd. | Image forming apparatus and control method thereof |
US6122640A (en) | 1998-09-22 | 2000-09-19 | Platinum Technology Ip, Inc. | Method and apparatus for reorganizing an active DBMS table |
US6480918B1 (en) * | 1998-12-22 | 2002-11-12 | International Business Machines Corporation | Lingering locks with fairness control for multi-node computer systems |
US6973521B1 (en) * | 2000-05-16 | 2005-12-06 | Cisco Technology, Inc. | Lock controller supporting blocking and non-blocking requests |
US6723190B1 (en) * | 2000-10-27 | 2004-04-20 | The United States Of America As Represented By The Secretary Of The Navy | ESD sensitivity in titanium/boron compositions |
US6910212B2 (en) * | 2000-12-04 | 2005-06-21 | International Business Machines Corporation | System and method for improved complex storage locks |
US6965961B1 (en) * | 2002-03-01 | 2005-11-15 | University Of Rochester | Queue-based spin lock with timeout |
US7392299B2 (en) * | 2002-07-25 | 2008-06-24 | Brother Kogyo Kabushiki Kaisha | Configuration setting system for network system |
US20040034642A1 (en) * | 2002-08-15 | 2004-02-19 | Microsoft Corporation | Priority differentiated subtree locking |
US20040039884A1 (en) * | 2002-08-21 | 2004-02-26 | Qing Li | System and method for managing the memory in a computer system |
US6920632B2 (en) * | 2002-08-23 | 2005-07-19 | Xyron Corporation | Dynamic multilevel task management method and apparatus |
US20040117791A1 (en) * | 2002-12-17 | 2004-06-17 | Ajith Prasad | Apparatus, system and method for limiting latency |
US20050022186A1 (en) * | 2003-07-24 | 2005-01-27 | International Business Machines Corporation | System and method for delayed priority boost |
US20050275875A1 (en) * | 2004-05-27 | 2005-12-15 | International Business Machines Corporation | System and method for printer-side print queue priority self-monitoring |
US7844973B1 (en) * | 2004-12-09 | 2010-11-30 | Oracle America, Inc. | Methods and apparatus providing non-blocking access to a resource |
US8261279B2 (en) * | 2005-12-12 | 2012-09-04 | International Business Machines Corporation | Optimized preemption and reservation of software locks for woken threads |
US20080005740A1 (en) * | 2006-06-28 | 2008-01-03 | Portal Player, Inc. | Operating system aware hardware mutex |
US20100114967A1 (en) | 2006-09-04 | 2010-05-06 | Extreme Technologies Ltd. | Method for Managing Simultaneous Modification of Database Objects During Development |
US7886300B1 (en) * | 2006-09-26 | 2011-02-08 | Oracle America, Inc. Formerly Known As Sun Microsystems, Inc. | Mechanism for implementing thread synchronization in a priority-correct, low-memory safe manner |
US7647443B1 (en) * | 2007-04-13 | 2010-01-12 | American Megatrends, Inc. | Implementing I/O locks in storage systems with reduced memory and performance costs |
US20090006403A1 (en) * | 2007-06-29 | 2009-01-01 | International Business Machines Corporation | Efficiently boosting priority of read-copy update readers while resolving races with exiting and unlocking processes |
US20090150396A1 (en) | 2007-11-14 | 2009-06-11 | Moshe Elisha | database schema management system |
US20110246694A1 (en) * | 2008-12-12 | 2011-10-06 | Panasonic Corporation | Multi-processor system and lock arbitration method thereof |
US20100250508A1 (en) * | 2009-03-31 | 2010-09-30 | Commvault Systems, Inc. | Systems and methods for data migration in a clustered file system |
US20130132627A1 (en) * | 2011-11-22 | 2013-05-23 | Futurewei Technologies, Inc. | System and Method for Implementing Locks Shared Between Kernel and User Space |
Non-Patent Citations (4)
Title |
---|
Fridley, Barry, "Avoid Locking Conflicts", Retrieved on: Nov. 27, 2012, Available at: http://msdn.microsoft.com/en-us/library/aa260979%28v=VS.60%29.aspx. |
Henderson, Ken, "SQL Server 2005 Waiting and Blocking Issues", Published on: Apr. 20, 2007, Available at: http://www.informit.com/articles/article.aspx?p=686168&seqNum=5. |
Randal, Paul S., "In Recovery", Published on: Apr. 26, 2011, Available at: http://www.sqlskills.com/blogs/paul/category/Locking.aspx. |
Stanek, William R., "SQL Server 2008 R2: Unlock the Locks", Published on: Jan. 5, 2011, Available at: http://redmondmag.com/Articles/2011/01/01/SQL-Server-2008-R2-Unlock-the-Locks.aspx. |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11409559B2 (en) * | 2019-10-24 | 2022-08-09 | EMC IP Holding Company, LLC | System and method for weak lock allowing force preemption by high priority thread |
Also Published As
Publication number | Publication date |
---|---|
US20140181342A1 (en) | 2014-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9164793B2 (en) | Prioritized lock requests to reduce blocking | |
AU2016244128B2 (en) | Processing database transactions in a distributed computing system | |
CN107977376B (en) | Distributed database system and transaction processing method | |
US10474645B2 (en) | Automatically retrying transactions with split procedure execution | |
US20080209422A1 (en) | Deadlock avoidance mechanism in multi-threaded applications | |
US9069832B2 (en) | Approach for modularized sychronization and memory management | |
US8195702B2 (en) | Online index builds and rebuilds without blocking locks | |
US9740525B2 (en) | Scaling priority queue for task scheduling | |
US8041691B2 (en) | Acquiring locks in wait mode in a deadlock free manner | |
US11537567B2 (en) | Methods and systems for managing prioritized database transactions | |
JP7039765B2 (en) | Version-based table lock | |
US10360079B2 (en) | Architecture and services supporting reconfigurable synchronization in a multiprocessing system | |
Pandey et al. | RAPID: A real time commit protocol | |
Rehrmann et al. | Sharing opportunities for oltp workloads in different isolation levels | |
US20180137185A1 (en) | Asynchronous Database Transaction Handling | |
US9117189B2 (en) | System and method for object lock management using cached lock objects | |
Zhu et al. | Interactive transaction processing for in-memory database system | |
Pang et al. | On using similarity for resolving conflicts at commit in mixed distributed real-time databases | |
US20240126745A1 (en) | Database-native automatic compensation for sagas | |
US12045223B2 (en) | Method and system for lock after qualification for update queries | |
Krogh | Reducing Locking Issues | |
US20230039113A1 (en) | Hybrid database for transactional and analytical workloads | |
CN117348977A (en) | Method, device, equipment and medium for controlling transaction concurrency in database | |
Carpinteiro | Improving Key-Value Database Scalability with Lazy State Determination | |
Zhang et al. | An Optimized Solution for Highly Contended Transactional Workloads |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: MICROSOFT CORPORATION, WASHINGTON Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:ANTONOPOULOS, PANAGIOTIS;KODAVALLA, HANUMANTHA RAO;PRAKASH, NAVEEN;SIGNING DATES FROM 20121219 TO 20121220;REEL/FRAME:029517/0914 |
|
FEPP | Fee payment procedure |
Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
AS | Assignment |
Owner name: MICROSOFT TECHNOLOGY LICENSING, LLC, WASHINGTON Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MICROSOFT CORPORATION;REEL/FRAME:034747/0417 Effective date: 20141014 Owner name: MICROSOFT TECHNOLOGY LICENSING, LLC, WASHINGTON Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MICROSOFT CORPORATION;REEL/FRAME:039025/0454 Effective date: 20141014 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 4 |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 8 |