摘要 |
A program conversion apparatus according to the present invention includes: a thread creation unit which creates a plurality of threads equivalent to a program part included in a program, based on path information on a plurality of execution paths, each of the execution paths going from a start to an end of the program part, each of the threads being equivalent to at least one of the execution paths; a replacement unit which performs variable replacement on the threads so that a variable shared by the threads is accessed by only to one of the threads in order to avoid an access conflict among the threads; and a thread parallelization unit which generates a program which causes the threads to be speculatively executed in parallel after the variable replacement.
|