×

Adjustment of a sleep duration for a process based on an expected time for securing a spinlock

  • US 10,228,985 B2
  • Filed: 11/03/2017
  • Issued: 03/12/2019
  • Est. Priority Date: 10/24/2016
  • Status: Active Grant
First Claim
Patent Images

1. A method, comprising:

  • maintaining, by a computational device, a spinlock for exclusive access of a resource by a process of a plurality of processes; and

    in response to determining by the process that a turn indicated by a ticket number of the process for securing the spinlock has not arrived for the process, determining a sleep duration for the process based on a number of tickets remaining to be processed for securing the spinlock and an average time duration to process a ticket; and

    entering, by the process, a sleep mode the sleep duration.

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