×

Method and apparatus for high-concurrency client locking with java in a data processing system

  • US 6,752,836 B1
  • Filed: 07/22/1999
  • Issued: 06/22/2004
  • Est. Priority Date: 07/22/1999
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for multithreaded execution in a data processing system for managing access to objects in a container by way of synchronized blocks, the method comprising:

  • using an identifier object to retrieve a mutex object from a value set, wherein the identifier object has a value that distinguishes the mutex object from other objects in the value set and that also distinguishes a desired object from other objects in the container;

    in response to retrieving the mutex object from the value set, entering a synchronized block that locks the mutex object;

    while in the synchronized block that locks the mutex object, accessing the container to determine whether the desired object is present within the container;

    while in the synchronized block that locks the mutex object, in response to a determination that the desired object is not within the container, producing the desired object from an alternative source for insertion into the container;

    while in the synchronized block that locks the mutex object, accessing the desired object from the container; and

    exiting the synchronized block that locks the mutex object, whereby mutual exclusion with respect to accessing the desired object is maintained regardless or whether the desired object is present with the container.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×