×

Method and apparatus for managing a lock for an object

  • US 20010014905A1
  • Filed: 12/15/2000
  • Published: 08/16/2001
  • Est. Priority Date: 12/27/1999
  • Status: Abandoned Application
First Claim
Patent Images

1. In a shared memory model system, a method whereby, in a state wherein a plurality of threads exist, a bit that represents a lock type and an identifier for a thread that has acquired a lock in accordance with a first lock type, or an identifier of a second lock type, are stored in a storage area that corresponds to an object and a lock on an object is thus managed, said method comprising:

  • determining, if a second thread attempts to acquire a lock on a specific object that is held by a first thread, whether a bit that represents said lock type on said specific object represents said first lock type;

    setting a contention bit if said bit represents said first lock type;

    determining, before said first thread unlocks said specific object, whether said bit that represents said lock type represents said first lock type;

    storing in said storage area a special identifier that differs from the identifiers for said plurality of threads;

    issuing a synchronization command for said memory system;

    storing in said storage area data indicating the absence of a thread that holds said lock on said specific object;

    determining whether said contention bit has been set if said bit that represents said lock type represents said first lock type; and

    terminating an unlocking process if said contention bit has not been set without any other process being performed.

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