System and Method of Automatically Transforming Serial Streaming Programs Into Parallel Streaming Programs
First Claim
1. A method of controlling timing of a commerce transaction by transforming serial code segments into parallel code segments, comprising:
- providing a plurality of code segments in an application which controls timing of a commercial transaction between first and second parties;
parsing the application by determining first ones of the code segments that must be executed as serial code segments and second ones of the code segments that can be executed as parallel code segments;
generating a parallel file for each of the parallel code segments, the parallel file containing the parallel code segment and the code segments of the application called by the parallel code segment;
transforming the application to associate each parallel file with the parallel code segment;
executing the application through the serial code segments and parallel code segments such that when encountering the serial code segment writing an output value of the serial code segment to an output stream and when encountering the location associated with the parallel file,(a) writing a tag to the output stream to reserve a position in the output stream to write an output value of the parallel file when complete,(b) executing the parallel file simultaneously with the serial code segment, and(c) writing the output value of the parallel file in the reserved position of the output stream when the parallel file execution completes; and
controlling the timing of the commercial transaction by executing the parallel files simultaneously with the serial code segments.
0 Assignments
0 Petitions
Accused Products
Abstract
A commerce transaction is controlled by transforming serial code segments into parallel code segments. An application is parsed by determining the code segments that must be executed as serial code segments and the code segments that can be executed as parallel code segments. A parallel file is generated for each parallel code segment. The parallel file contains the parallel code segment and the code segments of the application called by the parallel code segment. The application executes through the serial code segments and parallel code segments. When encountering the parallel file, a tag is written to the output stream to reserve a position to write an output value of the parallel file when complete. The parallel file is executed simultaneously with the serial code segment, and the output value of the parallel file is written in the reserved position of the output stream when the parallel file execution completes.
99 Citations
25 Claims
-
1. A method of controlling timing of a commerce transaction by transforming serial code segments into parallel code segments, comprising:
-
providing a plurality of code segments in an application which controls timing of a commercial transaction between first and second parties; parsing the application by determining first ones of the code segments that must be executed as serial code segments and second ones of the code segments that can be executed as parallel code segments; generating a parallel file for each of the parallel code segments, the parallel file containing the parallel code segment and the code segments of the application called by the parallel code segment; transforming the application to associate each parallel file with the parallel code segment; executing the application through the serial code segments and parallel code segments such that when encountering the serial code segment writing an output value of the serial code segment to an output stream and when encountering the location associated with the parallel file, (a) writing a tag to the output stream to reserve a position in the output stream to write an output value of the parallel file when complete, (b) executing the parallel file simultaneously with the serial code segment, and (c) writing the output value of the parallel file in the reserved position of the output stream when the parallel file execution completes; and controlling the timing of the commercial transaction by executing the parallel files simultaneously with the serial code segments. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method of controlling timing of a commerce transaction by transforming serial code segments into parallel code segments, comprising:
-
providing a plurality of code segments in an application which controls timing of a commercial transaction; parsing the application by determining first ones of the code segments that must be executed as serial code segments and second ones of the code segments that can be executed as parallel code segments; generating a parallel file for each of the parallel code segments, the parallel file containing the parallel code segment and the code segments of the application called by the parallel code segment; transforming the application to associate each parallel file with the parallel code segment; executing the application through the serial code segments and parallel code segments such that when encountering the serial code segment writing an output value of the serial code segment to an output stream and when encountering the location associated with the parallel file reserving a position in the output stream to write an output value of the parallel file when complete; and controlling the timing of the commercial transaction by executing the parallel files simultaneously with the serial code segments. - View Dependent Claims (8, 9, 10, 11)
-
-
12. A method of controlling timing of a commerce transaction by transforming serial code segments into parallel code segments, comprising:
-
providing a plurality of code segments in an application which controls timing of a commercial transaction; parsing the application into serial code segments and parallel code segments; executing the application through the serial code segments and parallel code segments such that when encountering the parallel code segment reserving a position in an output stream to write an output value of the parallel code segment when complete; and controlling the timing of the commercial transaction by executing the parallel code segments simultaneously with the serial code segments. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19)
-
-
20. A computer program product, comprising computer readable program code embodied in a computer readable medium, the computer readable program code controlling timing of a commerce transaction by transforming serial code segments into parallel code segments, comprising:
-
providing a plurality of code segments in an application controlling timing of a commercial transaction; parsing the application into serial code segments and parallel code segments; generating a parallel file for each of the parallel code segment, the parallel file containing the parallel code segment and the code segments of the application called by the parallel code segment; transforming the application to associate each parallel file with the parallel code segment; executing the application through the serial code segments and parallel code segments such that when encountering the serial code segment writing an output value of the serial code segment to an output stream and when encountering the location associated with the parallel file reserving a position in the output stream to write an output value of the parallel file when complete; and controlling the timing of the commercial transaction by executing the parallel files simultaneously with the serial code segments. - View Dependent Claims (21, 22, 23, 24, 25)
-
Specification