×

Component-specific disclaimable locks

  • US 8,495,638 B2
  • Filed: 09/08/2010
  • Issued: 07/23/2013
  • Est. Priority Date: 09/08/2010
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer program product comprising:

  • a non-transitory computer readable storage medium; and

    computer usable code stored on the computer readable storage medium, where, if executed by a processor, the computer usable code causes a computer to;

    track back out activity among a plurality of threads to release a disclaimable lock having a plurality of orderable locks that are to be arranged in a list of orderable locks, wherein the computer usable code to track the back out activity is to, for a disclaiming thread among the plurality of threads,receive a request to release the disclaimable lock from the disclaiming thread,create an orderable lock in response to the request to release the disclaimable lock,add the orderable lock to the list of orderable locks associated with the disclaimable lock as a first orderable lock,designate the orderable lock as a current lock,store a recursion count of the disclaiming thread, andissue a back out event at least to enable the disclaiming thread to release the disclaimable lock,receive a request to reclaim the disclaimable lock from a current thread among the plurality of threads;

    determine whether the current lock of the disclaimable lock is associated with the current thread if the disclaimable lock is not held by another thread, wherein the current lock is associated with the current thread when the current thread is the disclaiming thread;

    remove, if the current lock of the disclaimable lock is associated with the current thread, the first orderable lock from the list of orderable locks associated with the disclaimable lock;

    newly designate a second orderable lock as the current lock;

    reinstate a recursion count of the current thread;

    grant acquisition of the current lock to the current thread based on the determination; and

    issue a reclamation event.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×