WO1998003911A2 - Method for synchronizing processes in a distributed system - Google Patents

Method for synchronizing processes in a distributed system Download PDF

Info

Publication number
WO1998003911A2
WO1998003911A2 PCT/US1997/012663 US9712663W WO9803911A2 WO 1998003911 A2 WO1998003911 A2 WO 1998003911A2 US 9712663 W US9712663 W US 9712663W WO 9803911 A2 WO9803911 A2 WO 9803911A2
Authority
WO
WIPO (PCT)
Prior art keywords
token
access
lock token
processes
shared object
Prior art date
Application number
PCT/US1997/012663
Other languages
French (fr)
Other versions
WO1998003911A3 (en
Inventor
Jason Jeffords
Todd A Crowley
Roger Dev
Original Assignee
Cabletron Systems Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Cabletron Systems Inc filed Critical Cabletron Systems Inc
Priority to AU38053/97A priority Critical patent/AU3805397A/en
Publication of WO1998003911A2 publication Critical patent/WO1998003911A2/en
Publication of WO1998003911A3 publication Critical patent/WO1998003911A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/465Distributed object oriented systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/466Transaction processing

Abstract

A system and method for controlling access to a shared object among a plurality of interconnected processes. An associated lock token is generated for each shared object and a process must possess the lock token in order to access or to modify the associated object. When two or more processes are contending for the token at the same time, each process will wait for a random time period before again seeking control of the token.

Description


  
 



   METHOD FOR SYNCHRONIZING
 PROCESSES IN A DISTRIBUTED SYSTEM
 Background of the Invention 1. Field of the   invention   
 This invention relates to a method of synchronizing access to shared objects among a plurality of processes in a distributed system.



  2. Discussion of the Related Art
 A plurality of processes in a distributed system must be   svnchronized    for tasks that require work on shared objects (a shared object being one that can be accessed by more than one process). For example, if an object is accessed or modified by more than one process at a time, different processes may have a different view of the object's state --   i.e.,    one process might believe that the object was unchanged (if it did not change the object) and another process might believe the changes it made to the object were saved. Because of this possibility for an inconsistent object state, there must be some manner of maintaining control over the access to a shared object.



   Summary of the Invention
 The present invention provides coordinated access to a shared object in a distributed system by providing a method for allowing one and only one process to access a shared object at any given time. Once a process is finished with an object, another process can access the same.



  By thus serializing access to shared objects inconsistent states are prevented.



   Another aspect of the present invention is to provide fault tolerance. For example, when a process fails or is removed while having access to a shared object, it is necessary for the system to know that the process has failed and allow another process to access the object.



   According to a method embodiment of the present invention a lock token is associated with a given shared object. This lock token is transmitted around the distributed system, e.g.. a network, and captured by a process when it desires control of the associated shared object. Only when a process has possession of the token can it access the object. When a process is finished  with the token, it transmits the token to the next process requiring access. Additional steps are provided to rectify conflicts which occur when more than one process seeks to capture the token at the same time, and to prevent token loss if a process fails or is removed.



   The capturing step may include requesting a lock token, determining whether at least one other process is also requesting the lock token, and if at least one other process is also requesting the lock token, generating a retry delay time period and at an expiration of such period, repeating the requesting and determining steps. Then, when no other process is also requesting the lock token and assuming the lock token does not yet exist, the first process generates the lock token.



   The invention is further described with respect to the following detailed description and drawings, which are given by way of example only and are in no way restrictive.



  Brief   Description    of the Drawings
 Fig. 1 is a schematic illustration of a lock token passing in a distributed process system such as a communications network;
 Fig. 2 is a flow chart of steps according to a method embodiment of the invention;
 Fig. 3 is a more detailed flow chart of steps in a contention mode at system start-up;
 Fig. 4 is a more detailed flow chart of steps of a retry delay operation in the contention mode;
 Fig. 5 is a more detailed flow chart of steps in a token-passing mode;
 Fig. 6 is a flow chart of steps for adding or deleting a process from the network:
 Fig. 7 is a graph of a function used to create a delay table, and
 Fig. 8 is a schematic illustration of a computer apparatus for implementing the invention.



   Detailed Description
 The present embodiment is implemented using object-oriented programming methods, that is, the protocol logic is implemented by objects. A locking protocol object may be instantiated at many different levels of a distributed system in accordance with this invention.



   In object-oriented   programming    an object has state. behavior and identity. The structure and behavior of similar objects are defined in their common class. The state of an object encompasses all of the (usually static) properties of the object, plus the current (usually dynamic) values of each of these properties. An object's behavior is how it acts and reacts, in terms of its state changes and message passing.   Generally,    a message is simply an operation that one object  performs upon another, although the underlying dispatch mechanisms may be different. In most object-oriented programming languages, operations that clients perform upon an object are declared as methods (functions), which are part of the class declaration.

   Thus, the behavior of an object is a function of its state as well as the operations performed upon it, with certain operations having the effect of altering the object's state.



   One common object-oriented programming language is C++. For a further description of this and other object programming languages, see Grady Booch, "Object-Oriented Analysis And
Design, With Applications," Benjamin/Cummins Publishing Company, Redwood City,
California, 2nd Edition (1994).



   Fig. 1 shows a plurality of processes 102, i=l to N, distributed in a communications network 100. Although the network topology 104, is shown as a ring, any topology can be used.



  The processes can run on various hardware platforms including. but not limited to: SunSpare 5, 10 or 20 running SunOS or Solaris operating systems; and Intel X86 (or i960) running Windows 3.1, Windows 95 or Windows NT (or an embedded OS in the case of the i960). The locking protocol of the present invention is generic in that it can be used with any set of communicating processes and/or processors appropriately connected to one another.



   The locking protocol has two basic modes and the system, consisting of all of the processes (or peers), can be in only one of these two modes at any given time. The first mode is known as a contention mode, where there is no lock token in the system. In the contention mode, a lock token is generated so that the system can progress to a second mode known as the tokenpassing mode. In the token-passing mode, the lock token is passed from one process to another.



  The protocol generally operates in the token-passing mode, since once the token is generated it will exist until the current owner process is removed or exits from the system. Each of these modes will be discussed in greater detail below.



  Messages
 The locking protocol is managed with messages sent from one process to another. There are two basic types of messages: broadcast messages and unicast messages. Broadcast messages are more expensive (i.e., use more network resources) since one process is sending a message to every other process. A unicast message is simply a message from one process to another process.  



   There are three types of broadcast messages used:
 1) lock request;
 2)   notify Iock¯acquired;    and
 3) lock¯token¯lost.



   Each time a process wants the lock token, it requests the token from all of its peer processes by sending a   lock¯request.    The requesting process then waits until it has received responses from all other processes before attempting to capture the lock token.



   The   notify lock acquired    message is sent only after the lock token has been generated.



  This informs all peer processes that the lock token exists and that the system is now in tokenpassing mode (discussed in further detail below).



   When a process is removed or fails, and if that process is believed to have owned the token, the lock token lost message is broadcast informing all of the processes that the token is lost. If the token was not actually lost and the present owner receives this message, the owner will notify the other processes that it possesses the token.



   There are four types of unicast messages used:    I) send lock token¯to:   
 2)   send lock¯request¯to;   
 3)   accessgranted; and   
 4) access¯denied.



   The lock token is passed from the previous token owner to the new token owner with the send¯lock¯token¯to message.



   If the system is in contention mode. any process trying to acquire the lock token asks a newly added process for the lock token by sending the   send lock request to    message. One process indicates to another process interested in the token that the latter process can have the token by sending an access¯granted message. Finally. one process indicates to a second process interested in the lock token that the second process cannot have the token by sending the access¯denied message. The access¯granted and access¯denied messages received from the other process are used to decide the mode of the system and state of the process. These messages indicate what is the present state of the other process, and what is the mode of the system (according to the other process). This information allows a process to decide what action should be taken.  



  Contention Mode
 The contention mode is the default mode used when the locking protocol is started. The system is in the contention mode only if the lock token does not exist, i.e., none of the processes has the lock token. The lock token is generated in this mode by the various processes contending for (seeking to obtain) the lock token. After the lock token has been generated, the system enters into the token-passing mode.



   An overview of the system operation is shown in Fig. 2. The system starts-up (step 200) and enters the contention mode (step 202). The lock token is generated (step 204) and then the system mode changes to token-passing mode (step 206). The lock token is passed to a requesting process, otherwise it is stored by the last owner (step 208). Finally, a determination is made as to whether the lock token exists (step 210). If the lock token does exist, control passes to step 208; otherwise control passes back to step 202.



   The system can enter the contention mode in one of two ways. On system start-up, the lock token does not exist and therefore the system is initialized in contention mode. The other way of entering the contention mode is when the owner process (the process having the token) is removed, thereby causing the token to be lost.



   System start-up in contention mode is shown in further detail in Fig. 3. Step 300 represents the system in contention mode without a lock token. In step 302, an interested process broadcasts a   lock¯token¯request.    In step 304, it is determined if any other processes are interested in the token. If not, control passes to step 306 and the one interested process obtains the token lock by generating the lock token. In step 308, the process that generated the lock token announces to all of the known processes that the lock token exists. In step 310, all processes that are waiting for the lock token now wait for it to be passed to them and in step 312, the token-passing mode is entered.



   Returning now to step 304, if there are other processes that want the lock token, control passes to step 314. In effect, two or more processes have collided in their attempts to obtain the token at the same time. In step   314    each interested process recognizes that at least one other process is interested and they each wait a random retry delay period before again requesting the token. Each process will have a different retry delay, the generation of which will be described below in greater detail.



   It should be noted that when a process is waiting for its retry delay period to end. the process will respond to any other process asking for the lock token with a message of    access¯granted.    The only way a process can obtain the lock token in contention mode is when all of the other processes agree, i.e., a unanimous vote. In effect, since each contending process is delaying the reassertion of its request for the lock token, the one process which ends its delay first will request the lock token and those processes which are still waiting for their respective delay to elapse do not oppose the one process from generating the lock token.



   After the retry delay period of a process has elapsed, the process tries to obtain the lock token by broadcasting a lock request message. If two or more processes come out of the delay at the same time, they will be delayed again, but with a possibly longer delay time as the delay is proportional to the number of retries; a method is described hereinafter for minimizing the overall delay time. After contending for the lock token for some indeterminate amount of time, one of the processes will finally generate the lock token. Immediately after the token is generated, all of the processes will be notified that the lock token exists and the system will enter the token-passing mode as previously discussed (steps 306-312).



  Retrv Delav
 The retry delay (step 314 of Fig. 3) will now be discussed in more detail. The retry delay is used in the contention mode if two or more processes collide when attempting to obtain the lock token at the same time; it forces each contending process to wait a random amount of time before again trying to obtain the lock token. As shown in Fig.   4,    each interested process first recognizes that there is at least one other process interested in the lock token (step 400). Each interested process then calculates its own retry delay. (step 402) by for example. scaling a dela interval by a number chosen randomly from a look-up table.

   The discrete look-up table can be formed from any function, but in a particular embodiment. the function is the following:   
 f(x) = (- o l)02 +0.63 (1)
 5   
This function, illustrated in Fig. 7, is discretely sampled and normalized to range from 0 to 1. It is important to note that the smallest possible delay is zero: therefore, a process could have no delay and instantaneously ask for the lock token again.



   An index (x) into the table is randomlv chosen using a random number generator. The value for the index in the look-up table is then scaled by certain scaling factors. One scaling factor is a delay factor (DF) which converts the delay to a unit of time related to the  properties/delay characteristics of the system in which the protocol is running. Another scaling factor is a sum of the number of retries (R) plus the number of contending processes (C) squared (a contending process is a process interested in the lock token). As the number of retries (R) and the number of contending processes (C) increase, the maximum possible delay also increases.



  The retry delay equation is as follows:    delay = DF. (R+C2) .fox) (2)   
As stated above, the delay factor DF is related to properties/delay characteristics of the system; R is the number of retries for the respective process; C is the total number of contending processes; andf(x) is the delay function where x is a random number. The sum: R+C2, controls the delay spread.



   Referring back to Fig. 4, the process enters the retry delay loop (step 404). It should be noted that while the flowchart of Fig. 4 is shown as a loop, it is implemented with timers and callbacks; in other words, the process is not really a loop, but is event driven. In step 406, when a request for the lock token is received from another process, control passes to step 408 where it is determined if the retry delay period (for the receiving process) has expired. If not, control passes to step 410 where a response allowing access (access¯granted) is sent back to the requesting process and control returns to step 404. When, at step 408, the retry delay period has expired. an access¯denied response is sent to the requesting process (step 412).

   When (at step 406) a request has not been received, control passes to step 414 where it is determined if the retry delay period has expired or if notice has been received that another process has the lock token. If (at step 414) the retry delay period has not expired or notice has not been received, then control returns to step 404; otherwise control passes to step 41 6 where it is determined if notice has been received that another process has the lock token. When the result of the determination of step 416 is no, then at step 418 the process broadcasts a   lock¯token¯request.    If (at step 416) it is determined that notice has been received that another process has the lock token, then control passes to step 420 and the retry delay is terminated at step 422 and the process waits for the lock token.



     Token-Passing    Mode
 As shown in Fig. 5, once the token passing mode has been entered, it is determined whether the process having the lock token is finished using the object (step 500). If the process  is not finished, control passes to step 502 where operations on the object are performed. If the process is finished, then at step 504 a determination is made as to whether there are any other processes interested in the lock token. If not, control passes to step 506 where the token is cached (stored). If another process becomes interested in the token while the current owner has it cached, the owner passes the token to the interested process; thus, the system stays in the tokenpassing mode at all times, even if none of the processes are interested in the token.



   When there are other processes interested in the token (step 504), control passes to step 508 where a determination is made as to whether there is more than one interested process. If there is only one interested process then the token is passed to the interested process (step 510).



  if there is more than one interested process, then a list of interested processes is sorted (step 512) to select the next process to receive the token (step 514). The token is then passed to the selected process along with the list of interested processes (step 516).



   When the lock token is generated and the   notify lock¯acquired    message is broadcast, any   processes that are interested in the lock token are added to an interested processes list. I Upon    receiving the   notifylockacquired    message these processes now wait idle for the lock token to be passed to them. If they were previously waiting on a retry delay, that delay is canceled and the process will no longer try to obtain the lock token. The process knows that the lock token will be passed to it in the future.



   At some point the current lock token owner will complete its task. The lock token owner checks the list of interested processes and if the list is not empty (step 504), the lock token will be passed to one of the interested processes along with a list of remaining processes.



   For example, the new lock token owner may be determined by sorting the list of interested processes deterministically and then selecting the process directly prior to the present lock token owner. This is accomplished by inserting the present lock token owner temporarily into the list to determine the next lock token owner. Essentially. the lock token is passed to the   "left,'    or clockwise, around the circle of interested processes (see Fig. 1). This method of lock token passing guarantees that all interested processes will receive the lock token.



   Referring to Fig. 1, if process   102N    is the present lock token owner and it has completed its operation requiring the token, and if processes   1021    1022 are both in the list of interested processes, the lock token will be passed to process   102    since it is to the "left and the closest process to the present lock token owner (process 102N). while moving in a clockwise direction around the network.  



   When another process becomes interested in the lock token, the owner will add the new
 process to the list of interested processes and therefore the lock token will be passed to that
 process at some future point. Any interested processes will be told by the present owner (upon a
 lock request) to go to an idle state to wait for the lock token to be passed to it.



   Adding. or Removing Processes
 Processes can be added or removed at any time. If a process is added to the system, all of
 the other processes are deterministically notified.



   As shown in Fig. 6, in step 600 it is determined whether a new process has been added.



   If a new process has been added, the other processes are notified (step 602). The new process will always try to obtain the lock token by broadcasting a   lock token request    to all of its peer
 processes (step 604). At step 606, if the lock token does not exist then the process will proceed in normal contention mode fashion and control will go to step 304 as shown in Fig. 3. If the lock token does exist, control passes to step 608 and the new process will be informed by the present owner that the lock token does exist. The new process will be in the interested processes list and will obtain the lock token in the future. In step   610.    the new process will wait until the lock token is passed to it and control goes to step 500, as shown in Fig. 5.



   If it is determined (step 600) that a new process has not been added, then control passes to step 612 to determine if a process has been deleted or failed. This is event driven in that the determination of a deleted or failed process occurs when contact with an existing process is lost.



  If a process has been deleted or failed then all of the other processes are notified and their state matrices are updated (step 614). The locking protocol assumes the worst case when a process exits the system. i.e., each remaining process assumes that the lock token is lost and the system enters the contention mode. Each process remembers to which other process it passed the token; since the token passes in a circle around the network, if the removed or failed process obtained the token during the most recent traversal of the lock token around the circle, one of the processes will think that the removed or failed process had the token and the lock¯token¯lost notification will be sent (step 616). This ensures that all processes know that the token may be lost and therefore may need to be regenerated.



   In step 618, it is determined if the lock token does exist. If the removed or failed process had the token, the interested processes will enter the contention mode (step 300 in Fig. 3) and the token will be generated. If the removed or failed process did not have the token. then the process  which has the token will respond and inform the system that it has the token (step 620). The system will remain in the token-passing mode and the interested processes will wait for the token (control will pass from step 620 to step 500 as shown in Fig. 5).



   The two modes of the locking protocol thus complement one another to create a faulttolerant system. One of the purposes of the contention mode is to generate and regenerate the lock token. This non-deterministic mode of the system is efficient in determining which process should obtain the token and in allowing only one token to be created. The system is only in the contention mode if the processes jointly confirm that the token does not exist. As soon as the token is generated, it will continue to exist until the current owner is removed or fails. For a typical system, this will happen infrequently. If a process fails in the contention mode, there is no problem as the system is already in the mode that generates the lock token.



   The token-passing mode deterministically passes the token from one interested process to another in an efficient and fair manner without any contention. Even though a new interested process begins in the contention mode, it will quickly enter the token-passing mode to join in and receive the token in its turn. The token-passing mode is fair in that any process interested in the token will receive it before another process receives it   twicc.    Also, if none of the processes are interested in the token, the system as a whole is idle with no messages being sent.



   Fault tolerance is achieved because a process maintains knowledge of the next process to which it passed the token. For example, if a first owner passes the token to a second owner, the first owner remembers that it passed the token to the second owner; then if the first owner hears that the second owner went down, the first owner assumes the token is lost and informs all other    processes that a new token should be generated. } however, if the token had already been passed    to a third owner, the third owner will respond that the token exists and need not be regenerated.



  With this knowledge, the system becomes fault tolerant, since, at any time a process is removed or fails, such removal or failure is detected, and the system as a whole assumes the worst case, i.e., that the lock token has been lost. This avoids any deadlock conditions and insures that the lock token will be regenerated if indeed it has been lost. If the token was not lost. there is no harm done except for a few messages sent   (i.e.,    the present owner will notify the system that it has possession of the token).



   As the number of processes contending for a lock token increases. the lock acquisition time increases only linearly and not as a square of the number of contending processes.  



   Each contending process receives the token in a deterministic amount of time (i.e., based on determinable factors). In addition, the contention process is fair since each process contending for the token will receive the token an approximately equal number of times during the same time interval, because no process has priority over any other process during token acquisition.



   in addition, the locking protocol is efficient since no messages are sent during steady state operation so that the network is not cluttered with extraneous transmissions.



   Any of the above embodiments may be implemented in a general purpose computer 190 as shown in Fig. 8. The computer may include a computer processing unit (CPU) 191, memory 192, a processing bus 193 by which the CPU can access the memory 192, and access to a network   194.    Alternatively, the invention may be implemented as a memory. such as a floppy disk, compact disc, or hard drive, which contains a computer program or data structure, for providing general purpose computer instructions and data for carrying out the functions of the previous embodiments.



   Having thus described various illustrative embodiments of the invention, various modifications will occur to those skilled in the art that are intended to be within the scope of the present invention. Thus, the foregoing description and accompanying drawings are provided by way of example only and are not intended to be limiting. The invention is defined by the following claims. 

Claims

1. A computer-implemented method for synchronizing a plurality of processes in a distributed system, the method comprising steps of: when a first process requires access to a shared object, the first process capturing a lock token associated with the shared object and transmitting a message to at least one other process indicating that the first process possesses the lock token.
2. The method of claim 1, wherein the capturing step includes: requesting the lock token; and when no other process is also requesting the lock token and when the lock token does not exist, the first process generating the lock token.
3. The method of claim 1, wherein the capturing step includes: requesting the lock token; determining whether at least one other process is also requesting the lock token, and when at least one other process is also requesting the lock token, generating a retry delay time period. and at an expiration of the retry delay time period, repeating the requesting and determining steps, and when no other process is also requesting the lock token and when the lock token does not exist, the first process generating the lock token.
4. The method of claim 3, wherein the determining step includes: granting access to another process requesting the lock token when the retry delay time period of the first process has not elapsed.
5. The method of claim 1. further comprising: determining how many other processes are waiting for access to the shared object; when only one other process is waiting for access to the shared object. defining the other process as a second process that needs access to the object and when the first process is done with the object, transmitting the token to the second process; when more than one other process is waiting for access to the shared object, compiling a list of the other processes waiting for access to the object and determining which one of the other processes is to be the second process and when the first process is done with the object, transmitting the token and the list to the second process; and when no other process is waiting for the lock token, storing the lock token locally to the first process.
6. The method of claim 5, wherein the step of determining the second process from the list includes choosing, as the second process, a process different from the first process which is positioned downstream from the first process in the distributed system.
7. In a computer network system, a method for controlling access to a shared object accessible by a plurality of processes running concurrently on the network, the method comprising steps of: associating a lock token with the shared object; and allowing a process to access the shared object only when the process possesses the associated lock token.
8. The method of claim 7. further comprising a step of: the process possessing the lock token passing the same to a next process seeking access to the shared object.
9. A system comprising: a network interconnecting a plurality of processors: and each processor including: means for capturing a lock token associated with a shared object; and means for operating on the shared object only when the processor has captured the associated lock token.
10. The system of claim 9, wherein each processor further comprises means for transmitting and receiving the lock token.
11. The system of claim 10, wherein each processor further comprises means for determining a next processor to which the lock token is to be transmitted.
12. The system of claim 9, wherein each processor further comprises means for requesting the lock token.
13. A computer-implemented method for controlling access to a shared object in a computer network system including a plurality of processes, the method comprising steps of: enabling contention for the shared object when more than one process is seeking access to the shared object at the same time, including each contending process determining a random retry delay time period and reassening contention for the shared object at the end of its retry delay time period.
14. The method of claim 13, wherein the retry delay period is determined according to the formula: delay= DF (R + C2) frx) where DF is a delay factor, R is a number of retries for the respective process of the plurality of processes, C is the total number of contending processes, and x is a random number from 0 to 1.
15. The method of claim 14,whereinf(x) = (x ¯ o l)02 +0.63.
5 16. A computer-implemented method for coordinating operations among a plurality of processes interconnected by a computer network, the method comprising steps of: (A) receiving a request from a first process of the plurality of processes for access to a first shared object; (B) determining whether at least one other process is requesting access to the first shared object at a same time as the first process; (C) when no other process is requesting access to the first object, granting access to the first shared object to the first process;
(D) when the first process and at least one other process are requesting access to the shared object at the same time. delaying the first process from requesting access to the first object for a first delay time period and delaying the second process from requesting access to the first object for a second delay time period different from the first delay time period and repeating steps (A)-(C).
17. The method of claim 16, wherein step (C) comprises steps of: generating a first lock token associated with the first shared object; sending the first lock token to the first process to indicate that the first process has sole access to the first shared object.
18. The method of claim 16, wherein step (D) includes steps of: determining the first and second delay time periods according to the formula: delay = DF (R + C2)- f(x) where DF is a delay factor, R is a number of retries for the respective process of the plurality of processes, C is the total number of contending processes, and x is a random number from 0 to 1.
19. The method of claim 18, wherein f (x) = (X - 0.1)0.2 +0.63.
5 20. The method of claim 17, further comprising steps of: (E) receiving a request from a third process for access to the first shared object; (F) determining when the first process has completed operating on the first shared object; and (G) when the first process has completed operating on the first shared object.
causing the first process to transfer the lock token to the third process giving sole access to the first object to the third process.
PCT/US1997/012663 1996-07-22 1997-07-18 Method for synchronizing processes in a distributed system WO1998003911A2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU38053/97A AU3805397A (en) 1996-07-22 1997-07-18 Method for synchronizing processes in a distributed system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US08/681,040 US6041383A (en) 1996-07-22 1996-07-22 Establishing control of lock token for shared objects upon approval messages from all other processes
US08/681,040 1996-07-22

Publications (2)

Publication Number Publication Date
WO1998003911A2 true WO1998003911A2 (en) 1998-01-29
WO1998003911A3 WO1998003911A3 (en) 2002-09-26

Family

ID=24733557

Family Applications (3)

Application Number Title Priority Date Filing Date
PCT/US1997/012666 WO1998003913A1 (en) 1996-07-22 1997-07-18 Method and apparatus for synchronizing transactions in a distributed system
PCT/US1997/012663 WO1998003911A2 (en) 1996-07-22 1997-07-18 Method for synchronizing processes in a distributed system
PCT/US1997/012664 WO1998003912A1 (en) 1996-07-22 1997-07-18 Method and apparatus for coordination of a shared object in a distributed system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
PCT/US1997/012666 WO1998003913A1 (en) 1996-07-22 1997-07-18 Method and apparatus for synchronizing transactions in a distributed system

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/US1997/012664 WO1998003912A1 (en) 1996-07-22 1997-07-18 Method and apparatus for coordination of a shared object in a distributed system

Country Status (3)

Country Link
US (1) US6041383A (en)
AU (1) AU3805397A (en)
WO (3) WO1998003913A1 (en)

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2334117A (en) * 1998-02-04 1999-08-11 Ibm Performing semantic concurrency control in dispatching server computer client requests
US6401110B1 (en) * 1998-11-30 2002-06-04 International Business Machines Corporation Method for managing concurrent processes using dual locking
US6694362B1 (en) * 2000-01-03 2004-02-17 Micromuse Inc. Method and system for network event impact analysis and correlation with network administrators, management policies and procedures
AU2001261258A1 (en) * 2000-05-05 2001-11-20 Aprisma Management Technologies, Inc. Help desk systems and methods for use with communications networks
US7237138B2 (en) * 2000-05-05 2007-06-26 Computer Associates Think, Inc. Systems and methods for diagnosing faults in computer networks
US7752024B2 (en) * 2000-05-05 2010-07-06 Computer Associates Think, Inc. Systems and methods for constructing multi-layer topological models of computer networks
US7500143B2 (en) 2000-05-05 2009-03-03 Computer Associates Think, Inc. Systems and methods for managing and analyzing faults in computer networks
AU2001261275A1 (en) * 2000-05-05 2001-11-20 Aprisma Management Technologies, Inc. Systems and methods for isolating faults in computer networks
US20050157654A1 (en) * 2000-10-12 2005-07-21 Farrell Craig A. Apparatus and method for automated discovery and monitoring of relationships between network elements
US7383191B1 (en) * 2000-11-28 2008-06-03 International Business Machines Corporation Method and system for predicting causes of network service outages using time domain correlation
US6966015B2 (en) * 2001-03-22 2005-11-15 Micromuse, Ltd. Method and system for reducing false alarms in network fault management systems
US7421430B2 (en) * 2001-05-14 2008-09-02 International Business Machines Corporation Method for processing real-time mobile transactions in a three-tier distributed database system
US6744739B2 (en) * 2001-05-18 2004-06-01 Micromuse Inc. Method and system for determining network characteristics using routing protocols
US7640582B2 (en) * 2003-04-16 2009-12-29 Silicon Graphics International Clustered filesystem for mix of trusted and untrusted nodes
US7043727B2 (en) * 2001-06-08 2006-05-09 Micromuse Ltd. Method and system for efficient distribution of network event data
US7516208B1 (en) 2001-07-20 2009-04-07 International Business Machines Corporation Event database management method and system for network event reporting system
US20050286685A1 (en) * 2001-08-10 2005-12-29 Nikola Vukovljak System and method for testing multiple dial-up points in a communications network
US7363368B2 (en) 2001-12-24 2008-04-22 International Business Machines Corporation System and method for transaction recording and playback
US7941533B2 (en) * 2002-02-19 2011-05-10 Jpmorgan Chase Bank, N.A. System and method for single sign-on session management without central server
US20030188096A1 (en) * 2002-03-15 2003-10-02 Otto Lehner Distributing access rights to mass storage
US20030182479A1 (en) * 2002-03-22 2003-09-25 Dieter Massa Implementing clustering in raid controllers
US7831974B2 (en) * 2002-11-12 2010-11-09 Intel Corporation Method and apparatus for serialized mutual exclusion
US7099974B2 (en) * 2003-03-20 2006-08-29 International Business Machines Corporation Method, apparatus, and system for reducing resource contention in multiprocessor systems
US7409389B2 (en) * 2003-04-29 2008-08-05 International Business Machines Corporation Managing access to objects of a computing environment
US8495266B2 (en) * 2004-12-10 2013-07-23 Hewlett-Packard Development Company, L.P. Distributed lock
CN101013381B (en) * 2007-01-26 2010-05-19 华中科技大学 Distributed lock based on object memory system
US8990954B2 (en) * 2007-06-20 2015-03-24 International Business Machines Corporation Distributed lock manager for file system objects in a shared file system
US7991822B2 (en) 2007-08-29 2011-08-02 International Business Machines Corporation Propagation of updates for attributes of a storage object from an owner node of the storage object to other nodes
US7899895B2 (en) 2007-08-29 2011-03-01 International Business Machines Corporation Transfer of ownership of a storage object in response to an original owner node becoming available after a period of unavailability
US7778986B2 (en) 2007-08-29 2010-08-17 International Business Machines Corporation Securing transfer of ownership of a storage object from an unavailable owner node to another node
US10114681B2 (en) 2016-03-30 2018-10-30 Qualcomm Incorporated Identifying enhanced synchronization operation outcomes to improve runtime operations

Family Cites Families (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4399504A (en) * 1980-10-06 1983-08-16 International Business Machines Corporation Method and means for the sharing of data resources in a multiprocessing, multiprogramming environment
US4598285A (en) * 1983-05-27 1986-07-01 At&T Bell Laboratories Scheme for reducing transmission delay following collision of transmissions in communication networks
US4984153A (en) * 1988-04-27 1991-01-08 Unisys Corporation Storage locking control for a plurality of processors which share a common storage unit
US5167022A (en) * 1988-10-25 1992-11-24 Hewlett-Packard Company Multiprocessor bus locking system with a winning processor broadcasting an ownership signal causing all processors to halt their requests
US4949337A (en) * 1989-01-30 1990-08-14 Honeywell Inc. Token passing communication network including a node which maintains and transmits a list specifying the order in which the token is passed
US5060144A (en) * 1989-03-16 1991-10-22 Unisys Corporation Locking control with validity status indication for a multi-host processor system that utilizes a record lock processor and a cache memory for each host processor
US5161227A (en) * 1989-11-13 1992-11-03 International Business Machines Corporation Multilevel locking system and method
US5414700A (en) * 1990-01-22 1995-05-09 Digital Equipment Corp. Negotiation protocol for establishment of full duplex communication on a token ring network
US5226143A (en) * 1990-03-14 1993-07-06 International Business Machines Corporation Multiprocessor system includes operating system for notifying only those cache managers who are holders of shared locks on a designated page by global lock manager
US5261089A (en) * 1990-05-16 1993-11-09 International Business Machines Corporation Optimization of commit procedures by utilizing a two-phase commit procedure only when necessary
US5155725A (en) * 1991-01-03 1992-10-13 Bell Communications Research, Inc. Adaptive token release mechanism for ring networks
US5263155A (en) * 1991-02-21 1993-11-16 Texas Instruments Incorporated System for selectively registering and blocking requests initiated by optimistic and pessimistic transactions respectively for shared objects based upon associated locks
US5481721A (en) * 1991-07-17 1996-01-02 Next Computer, Inc. Method for providing automatic and dynamic translation of object oriented programming language-based message passing into operation system message passing using proxy objects
US5504899A (en) * 1991-10-17 1996-04-02 Digital Equipment Corporation Guaranteeing global serializability by applying commitment ordering selectively to global transactions
US5333319A (en) * 1992-03-02 1994-07-26 International Business Machines Corporation Virtual storage data processor with enhanced dispatching priority allocation of CPU resources
US5243596A (en) * 1992-03-18 1993-09-07 Fischer & Porter Company Network architecture suitable for multicasting and resource locking
US5408629A (en) * 1992-08-13 1995-04-18 Unisys Corporation Apparatus and method for controlling exclusive access to portions of addressable memory in a multiprocessor system
US5418966A (en) * 1992-10-16 1995-05-23 International Business Machines Corporation Updating replicated objects in a plurality of memory partitions
US5469575A (en) * 1992-10-16 1995-11-21 International Business Machines Corporation Determining a winner of a race in a data processing system
US5596754A (en) * 1992-10-29 1997-01-21 Digital Equipment Corporation Method for performing private lock management
US5511196A (en) * 1992-11-17 1996-04-23 International Business Machines Corporation Method and system in a data processing system for the enhancement of relationships between reference objects in an object oriented environment and a data object outside an object oriented environment
US5535212A (en) * 1992-12-21 1996-07-09 Otis Elevator Company Implicit token media access protocol without collision detection
US5511224A (en) * 1993-02-18 1996-04-23 Unisys Corporation Configurable network using dual system busses with common protocol compatible for store-through and non-store-through cache memories
US5515537A (en) * 1993-06-01 1996-05-07 The United States Of America As Represented By The Secretary Of The Navy Real-time distributed data base locking manager
US5454108A (en) * 1994-01-26 1995-09-26 International Business Machines Corporation Distributed lock manager using a passive, state-full control-server
US5687370A (en) * 1995-01-31 1997-11-11 Next Software, Inc. Transparent local and distributed memory management system
US5550973A (en) * 1995-03-15 1996-08-27 International Business Machines Corporation System and method for failure recovery in a shared resource system having a moving write lock
US5765174A (en) * 1995-10-06 1998-06-09 Sun Microsystems, Inc. System amd method for distributed object resource management
US5761659A (en) * 1996-02-29 1998-06-02 Sun Microsystems, Inc. Method, product, and structure for flexible range locking of read and write requests using shared and exclusive locks, flags, sub-locks, and counters
US5721825A (en) * 1996-03-15 1998-02-24 Netvision, Inc. System and method for global event notification and delivery in a distributed computing environment
US5704032A (en) * 1996-04-30 1997-12-30 International Business Machines Corporation Method for group leader recovery in a distributed computing environment
US5832529A (en) * 1996-10-11 1998-11-03 Sun Microsystems, Inc. Methods, apparatus, and product for distributed garbage collection

Also Published As

Publication number Publication date
WO1998003913A1 (en) 1998-01-29
AU3805397A (en) 1998-02-10
WO1998003912A1 (en) 1998-01-29
US6041383A (en) 2000-03-21
WO1998003911A3 (en) 2002-09-26

Similar Documents

Publication Publication Date Title
US6041383A (en) Establishing control of lock token for shared objects upon approval messages from all other processes
US6510478B1 (en) Method and apparatus for coordination of a shared object in a distributed system
EP1016005B1 (en) Method for transaction within a distributed database
US6662219B1 (en) System for determining at subgroup of nodes relative weight to represent cluster by obtaining exclusive possession of quorum resource
CA2205725C (en) Preventing conflicts in distributed systems
Jurdziński et al. Efficient algorithms for leader election in radio networks
JP2000504863A (en) Method and apparatus for connecting a client node to a server node based on load level
US6950820B2 (en) Maintaining consistency of a global resource in a distributed peer process environment
US6675199B1 (en) Identification of active server cluster controller
US7310802B2 (en) Load balancing of chat servers based on gradients
Kutten et al. Sublinear bounds for randomized leader election
Craft Resource management in a decentralized system
US9501513B2 (en) Advanced concurrency management in enterprise service oriented architecture based integrated business processing of distributed application components
US6418517B1 (en) Optimized function execution for a multiprocessor computer system
Stankovic Decentralized decision-making for task reallocation in a hard real-time system
Elsässer On the communication complexity of randomized broadcasting in random-like graphs
Yap et al. Fault tolerant remote procedure call
Balter et al. Why control of the concurrency level in distributed systems is more fundamental than deadlock management
US5742499A (en) Method and system for dynamically selecting a communication mode
JP2000047890A (en) Distributed object managing system, its object selecting method and storage medium recording its processing program
KR100233238B1 (en) Two way authentication communication method using multithread in distributed transaction system
Wang et al. Distributed concurrency control with local wait-depth control policy
US20220222655A1 (en) Method for block consensus and method for managing transaction state
Bouabdallah et al. A distributed token-based algorithm for the dynamic resource allocation problem
JP2001195271A (en) Method and device for generating and deciding distributed object server thread

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AL AM AT AU AZ BA BB BG BR BY CA CH CN CU CZ DE DK EE ES FI GB GE GH HU IL IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MD MG MK MN MW MX NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT UA UG UZ VN YU ZW AM AZ BY KG KZ MD RU TJ TM

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): GH KE LS MW SD SZ UG ZW AT BE CH DE DK ES FI FR GB GR IE IT LU MC NL PT

121 Ep: the epo has been informed by wipo that ep was designated in this application
REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

NENP Non-entry into the national phase

Ref country code: JP

Ref document number: 98507125

Format of ref document f/p: F

NENP Non-entry into the national phase

Ref country code: CA

122 Ep: pct application non-entry in european phase
AK Designated states

Kind code of ref document: A3

Designated state(s): AL AM AT AU AZ BA BB BG BR BY CA CH CN CU CZ DE DK EE ES FI GB GE GH HU IL IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MD MG MK MN MW MX NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT UA UG UZ VN YU ZW

AL Designated countries for regional patents

Kind code of ref document: A3

Designated state(s): GH KE LS MW SD SZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN ML MR NE SN TD TG