×

Latch mechanism for concurrent computing environments

  • US 7,013,463 B2
  • Filed: 06/27/2001
  • Issued: 03/14/2006
  • Est. Priority Date: 10/06/2000
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer-implemented method for providing access to a resource in a programming environment supporting concurrent tasks, comprising:

  • (a) providing a latch to a first task, wherein the first task requests the latch to obtain access to the resource;

    (b) accessing the resource with the first task;

    (c) marking the latch stealable and held by a holding task, rather than releasing the latch, wherein marking the latch stealable permits a second task to acquire the latch in response to the latch being marked stealable;

    (d) marking the latch unstealable if the first task again requests the latch to obtain access to the resource prior to the latch being requested by a second task seeking access to the resource; and

    (e) marking a set of flags for a latch;

    i. stealable, wherein the resource is not placed in a consistent state because the latch is marked stealable;

    ii. stolen, wherein the resource is placed in a consistent state and then accessed by the second task;

    oriii. unstealable, wherein the first task again requests the latch to obtain access to the resource and the latch has not been requested by a second task seeking access to the resource, as requested by the latch.

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