×

Method and system for autonomically adaptive mutexes by considering acquisition cost value

  • US 7,383,368 B2
  • Filed: 09/25/2003
  • Issued: 06/03/2008
  • Est. Priority Date: 09/25/2003
  • Status: Active Grant
First Claim
Patent Images

1. A method for managing a mutex in a data processing system, the method comprising:

  • maintaining an average acquisition cost value for a mutex;

    attempting to acquire the mutex by a first thread;

    in response to a determination that the mutex has already been acquired by a second thread, determining to enter a spin state or a sleep state on the first thread based on the average acquisition cost value for the mutex;

    maintaining a thread-specific current acquisition cost value that represents a consumption of computational resources by the first thread after an initial attempt to acquire the mutex and prior to acquiring the mutex; and

    in response to the first thread acquiring the mutex, recomputing the average acquisition cost value for the mutex to include the thread-specific current acquisition cost value.

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