Claims
- 1. A method for implementing a two-phase commit protocol, comprising:
dispatching a first two-phase commit protocol operation from a first thread to a second thread, the first two-phase commit protocol operation associated with a first resource and a first phase of two-phase commit protocol; processing a second two-phase commit protocol operation by the first thread, the second two-phase commit protocol operation associated with a second resource and the first phase of two-phase commit protocol; and determining the first two-phase commit protocol operation is complete.
- 2. The method of claim 1 further comprising:
selecting an idle server thread to process the first two-phase commit protocol operation.
- 3. The method of claim 2, wherein selecting includes:
determining available server threads in a server.
- 4. The method of claim 3 wherein a thread pool manager determines the available server threads.
- 5. The method of claim 1 further comprising:
reporting results of the first and second two-phase commit protocol to a log.
- 6. A method for processing N two-phase commit protocol operations, comprising:
processing N two-phase commit protocol operations in a first server thread, wherein the processing for each of N−1 of the two-phase commit protocol operation includes:
dispatching the two-phase commit protocol operation to a second server thread if a second server thread is determined to be available; and processing the two-phase commit protocol operation in the primary thread if no second server thread is determined to be available; and processing the remaining two-phase commit protocol operation in the first server thread.
- 7. The method of claim 6 wherein dispatching the two-phase commit protocol operation to a second server thread includes:
determining available server threads in a server; and selecting one of the available server threads to be the second server thread.
- 8. The method of claim 7 wherein a thread pool manager determines the available server threads.
- 9. The method of claim 6 wherein each of the N two-phase commit protocol operations are associated with a first phase of a two-phase commit protocol.
- 10. The method of claim 6 further comprising:
reporting results of the first and second two-phase commit protocol to a log.
CLAIM TO PRIORITY
[0001] The present application claims the benefit of priority under 35 U.S.C. §119(e) to U.S. Provisional Patent Application entitled “PARALLEL TRANSACTION EXECUTION USING JTA INTERFACE” Ser. No. 60/442,319, filed on Jan. 24, 2003, which application is incorporated herein by reference.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60442319 |
Jan 2003 |
US |