Efficient locking for thread-safe self-modifying code

G - Physics – 06 – F

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

G06F 9/46 (2006.01) G06F 9/445 (2006.01)

Patent

CA 2346766

A locking mechanism for use in a multi-thread environment supporting self- modifying code in which modifications to the code are made at runtime. The locking mechanism having associated helper code accessed by a call from the first instruction address in the code block. The helper code calculating the binary encoding for the call instruction and using an atomic compare and exchange instruction to compare the calculated binary encoding with the actual contents of the first instruction address. Where there is a match, a self loop instruction is written to the first instruction address to lock the specified code block for subsequent threads. The helper code contains instructions to resolve the references in the specified block. The last such instruction is an atomic store operation to replace the self loop instruction at the first instruction address with the appropriate modified instruction.

LandOfFree

Say what you really think

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

Rating

Efficient locking for thread-safe self-modifying code does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Efficient locking for thread-safe self-modifying code, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Efficient locking for thread-safe self-modifying code will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFCA-PAI-O-1472444

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