Invention Grant
US08972959B2 Method of converting program code of program running in multi-thread to program code causing less lock collisions, computer program and computer system for the same 有权
将程序运行在多线程中的程序代码转换为导致较少锁定冲突的程序代码,计算机程序和计算机系统的方法

Method of converting program code of program running in multi-thread to program code causing less lock collisions, computer program and computer system for the same
Abstract:
A method of converting a program code of a program running in multi-thread to a program code which causes fewer lock collisions. The method includes reading the program code into a memory and searching the program code for a first conditional statement making a branch to a path, which is in a synchronized block and has no side effect on the synchronized block; duplicating the path having no side effect to which the branch is made by the searched first conditional statement into the outside of the synchronized block; and adding a second conditional statement into the program code in response to the duplication, wherein the second conditional statement is a conditional statement making a branch to the duplicated path having no side effect. Also provided is a system and an article of manufacture which causes a computer to carry out the steps of the above method.
Information query
Patent Agency Ranking
0/0