×

Optimized preemption and reservation of software locks for woken threads

  • US 8,261,279 B2
  • Filed: 03/15/2008
  • Issued: 09/04/2012
  • Est. Priority Date: 12/12/2005
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer-implemented method comprising:

  • releasing a software lock by a first thread, wherein the releasing results in the software lock being available;

    identifying a second thread waiting on the software lock at the time of the releasing;

    establishing a reservation to the software lock by the second thread in response to the identifying;

    waking the second thread in response to the releasing;

    after the establishment of the reservation and before the second thread acquires the software lock has been taken by the second thread, receiving a first request for the software lock by a first requesting thread that is not the second thread;

    in response to receiving the first request, determining a reservation status for the software lock;

    in response to determining that the software lock is reserved for the second thread, denying the first request and putting the first requesting thread to sleep, wherein denying the first request and putting the first requesting thread to sleep are performed while the software lock is available;

    clearing the reservation in response to receiving the first request;

    after the clearing and before the second thread acquires the software lock, receiving a second request for the software lock by a second requesting thread; and

    in response to the second requesting thread not being the second thread, allowing the second requesting thread to acquire the software lock in response to the second request.

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