Claims
- 1. A computer program product for execution by a server computer for implementing a two-phase commit protocol, comprising:
computer code for 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; computer code for 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 computer code for determining the first two-phase commit protocol operation is complete.
- 2. The computer program product of claim 1 further comprising:
computer code for selecting an idle server thread to process the first two-phase commit protocol operation.
- 3. The computer program product of claim 2, wherein computer code for selecting includes:
computer code for determining available server threads in a server.
- 4. The computer program product of claim 3 wherein a thread pool manager determines the available server threads.
- 5. The computer program product of claim 1 further comprising:
computer code for reporting results of the first and second two-phase commit protocol to a log.
- 6. A computer program product for execution by a server computer for processing N two-phase commit protocol operations, comprising:
computer code for processing N two-phase commit protocol operations in a first server thread, wherein the computer code for processing for each of N−1 of the two-phase commit protocol operation includes:
computer code for dispatching the two-phase commit protocol operation to a second server thread if a second server thread is determined to be available; and computer code for processing the two-phase commit protocol operation in the primary thread if no second server thread is determined to be available; and computer code for processing the remaining two-phase commit protocol operation in the first server thread.
- 7. The computer program product of claim 6 wherein computer code for dispatching the two-phase commit protocol operation to a second server thread includes:
computer code for determining available server threads in a server; and computer code for selecting one of the available server threads to be the second server thread.
- 8. The computer program product of claim 7 wherein a thread pool manager determines the available server threads.
- 9. The computer program product 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 computer program product of claim 6 further comprising:
computer code for 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 |