Patent ID: 7962900

Claim:
A method of providing an access coordination mechanism of a shared resource, comprising: (a) providing a plurality of local datastructures each associated with one of the multiple subject threads, and a global token common to each of the subject threads, wherein the multiple subject threads are executable on a subject processor, corresponding to a first processor type; (b) decoding the subject code to identify a subject setting instruction which sets a subject access coordination mechanism in relation to a shared resource, and a subject checking instruction which checks the subject access coordination mechanism; (c) in response to the subject setting instruction, generating target code for adjusting the global token, and storing at least a local token in the local datastructure for a current thread, wherein the local token is derived from the adjusted global token; (d) in response to the subject checking instruction, generating target code for execution on a target processor, corresponding to a second processor type, for comparing at least the stored local token against the global token to determine potential interference with the shared resource; and (e) in response to the comparison, clearing a reservation flag associated with the global token if a store-conditional instruction succeeded; wherein the first processor type is a different processor type than the second processor type.