Lightweight single reader locks

G - Physics – 06 – F

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

G06F 9/46 (2006.01) G06F 12/14 (2006.01)

Patent

CA 2539908

A method, system and computer program product for generating a read-only lock implementation from a read-only lock portion of program code. In response to determining that a lock portion of the program code is a read-only lock, a read-only lock implementation is generated to protect at least one piece of shared data. The read-only lock implementation comprises a plurality of instructions with dependencies created between the instructions to ensure that a lock corresponding to the data is determined to be free before permitting access to that data. In one embodiment, when executed, the read-only lock implementation loads a lock word from a memory address into a register and places a reserve on the memory address. The lock word is evaluated to determine if the lock is free, and, in response to determining that the lock is free, at least one piece of shared data protected by the lock is accessed. A value is conditionally stored back to the memory address if the reserve is present. A dependency exists between the step of loading of the lock word and the step of accessing the at least one piece of shared data, thereby causing the step of loading of the lock word to be performed before the step of accessing of the at least one piece of shared data.

LandOfFree

Say what you really think

Search LandOfFree.com for Canadian inventors and patents. Rate them and share your experience with other people.

Rating

Lightweight single reader locks does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Lightweight single reader locks, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Lightweight single reader locks will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFCA-PAI-O-1483727

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.