Method and apparatus for providing serialization support for...

Error detection/correction and fault detection/recovery – Data processing system error or fault handling – Reliability and availability

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C714S015000, C709S241000, C709S241000, C709S241000

Reexamination Certificate

active

06665814

ABSTRACT:

BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to the field of computer systems, and more particularly to a method and apparatus for providing serialization support for a computer system or system resource, such as for a computer application program which requires sequencing of data.
2. Description of the Related Art
In the operation of computer systems, computer application programs often require serialization of the data they are operating on such that the data is handled in a particular sequence. It is very important in some application programs to maintain the sequence and/or the consistency of the data being handled.
Any application program that updates resources may fail while it has an active unit of work in progress. A unit of work is a series of operations performed by an application between two points of consistency. If the application has a requirement for sequencing of data and/or consistency of data then it may require that before the application can restart, the unit of work that was in progress at the time of failure is either completely rolled back or completely rolled forward.
A unit of work is rolled back when the transaction is stopped and the application is returned to its previous state prior to the commencement of the unit of work. A unit of work is rolled forward when an application recovers from a disaster, such as a power failure, by reading a transaction log and re-executing all instructions or by using other techniques to return the application to the state before the disaster in order that the unit of work can continue and, once completed, be committed.
As an example, the application program may perform units of work on a resource manager, such as a queue manager for managing communication between application programs running on different computers in a network. However, this disclosure is applicable to any application that has a requirement for sequencing of data and consistency of data.
Known serialization techniques for programs are known in the art as locking or latching. In the following, the term “locks” is used to cover locks and latches.
Known locking methods use a token, sometimes called a lock name, derived by the application programs and representing the process to be serialized. The application program requests ownership of the lock by passing the lock name to a specialised program called a lock manager. When the process is complete, the application releases ownership of the lock, again by passing the lock name to the lock manager program.
When the application requests ownership of a lock, if the lock is already owned by another application or by another copy of the same application then the lock manager either refuses to assign ownership, delays assigning ownership until the previous owner has released ownership, or grants shared ownership of the lock. Which of these it does depends on the lock manager implementation and/or on additional parameters passed by the application and/or on a lock definition process independent of the programs involved.
If an application program fails while holding ownership of a lock, its lock ownership can be released by the lock manager (as in the Enqueue/Dequeue ENQ/DEQ mechanism) or its ownership can be remembered by the lock manager (as in the lock management facilities provided with IBM Corporation's OS/390 operating system's cross-system extended services (XES)) so that other copies of the program and/or other programs needing the lock vary their mode of operation to take into account the failed lock holder.
In cases where a process is performed cooperatively and in parallel by several copies of a program, known locking methods have disadvantages. For example, complex and possibly inefficient protocols are required to transfer lock ownership when one program fails part way through a process and another program continues where the failed program stopped. Additional protocols may be required to identify when all components of the process (which are possibly being performed independently and in parallel) are complete and/or to identify which components remain to be done. Some form of coordination program is therefore required in the known systems.
It is an object of the present invention to provide a method of serialization support which avoids assigning ownership of the process to a particular program, application or computer. This simplifies the programming and avoids or reduces performance problems such as contention. It also avoids the requirement for a coordinating program which also simplifies the programming.
SUMMARY OF THE INVENTION
The present invention provides serialization support for a computer system or computer system resource, such as an application program, in order to maintain the sequence and/or consistency of data.
According to a first aspect of the present invention there is provided a method for providing serialization support for a computer system resource which includes processes requiring serialization, the method including: commencing one of the processes requiring serialization; creating a representation of the process and providing the representation on a medium accessible by all components of the computer system to which the serialization requirement applies; deleting the representation when the process is complete; on commencement of a further one of the processes requiring serialization, checking for the existence of the representation on said accessible medium and, if said representation check is positive, controlling serialization of said processes.
Preferably, the representation on the accessible medium includes a serialization token, and the controlling of serialization is performed with reference to the serialization token. This serialization token is preferably allocated to a process by the application program (or other system resource) that the process is part of. Alternatively, the serialization token could be allocated by a serialization controller.
Preferably, the serialization token has a locking protocol mapping to the process representation. A serialization token for a process may be used to prevent other processes commencing during the time that it is in force. Alternatively, the serialization control using serialization tokens may allow multiple processes to commence, but may prevent processes other than the first process from performing certain processing tasks. The serialization token may allow commencement of multiple processes performed on behalf of resource managers within a cooperating group while preventing commencement of other processes.
Preferably, the process representation includes at least one entry, each entry representing an element of the process, wherein each element can be performed independently. Each entry may be created, modified and deleted as the element is processed.
In the event of a failure during a process, the locking protocol is persistent until recovery across all the elements of the representation is complete. Each element of the process is recovered to a consistent state and the corresponding entry in the representation is then deleted, the representation persisting until the last entry is deleted.
Optimally, each element of the representation can be performed and recovered in parallel with the other elements.
Preferably, the serialized processes run on a plurality of subsystems which share a storage space, and the representation is provided in the shared storage space. The shared storage space may be one of a shared database, a shared file system or a coupling means between the subsystems.
In an embodiment, the computer system includes one or more queue manager programs and the serialized processes are message communication processes from application programs connected to the queue manager, each process including at least one unit of work. The computer system may use an application programming interface to indicate to the queue manager the commencement of a process with a serialization token. The elements of the process represented by entries in the representation may include thre

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Method and apparatus for providing serialization support for... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Method and apparatus for providing serialization support for..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method and apparatus for providing serialization support for... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-3154448

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.