Patent ID: 6938054

Claim:
A computer-implemented method for determining whether execution of serialization operations of program code is improved by substituting at least one mutex serialized operation on said computer with at least one Compare and Swap serialized operation on said computer, said program code including at least one workload code fragment that is serialized said program code, said method comprising: executing said at least one workload code fragment with said at least one mutex serialized operation while tracking mutex execution time; executing said at least one workload code fragment with said at least one Compare and Swap serialized operation while tracking Compare and Swap execution time; comparing said mutex execution time to said Compare and Swap execution time; and determining from said comparison of mutex execution time to Compare and Swap execution time whether said execution of serialization operations of program code is improved by substituting said at least one mutex serialized operation with said at least one Compare and Swap serialized operation.