×

SYSTEM AND METHOD FOR DYNAMICALLY ADAPTIVE MUTUAL EXCLUSION IN MULTI-THREADED COMPUTING ENVIRONMENT

  • US 20090307707A1
  • Filed: 06/09/2008
  • Published: 12/10/2009
  • Est. Priority Date: 06/09/2008
  • Status: Abandoned Application
First Claim
Patent Images

1. A method for mutually exclusively executing a critical section by a process in a computer system, the method comprising:

  • measuring a detection time representing when a locking function detects that a lock is held by another process, and a current time representing a present time, wherein the lock permits an access to the critical section;

    subsequent to said measuring, repeating at least one iteration comprising steps of determining a waiting mode of the process, and subsequently attempting to acquire the lock, wherein the waiting mode is determined such that the process in the waiting mode wastes the least amount of time while waiting for the lock pursuant to at least one delay stored in a lock delay history data structure and a suspension overhead time of the computer system;

    subsequent to said repeating, acquiring the lock;

    subsequent to said acquiring, calculating a delay representing a difference between a release time representing when the lock is released and the detection time; and

    subsequent to said calculating, storing the calculated delay in the lock delay history data structure,wherein said measuring, said repeating, said acquiring, said calculating, and said storing are performed by the locking function.

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