Fair spinlock with protection against thread preemption
AssigneeDell Products L.P.
InventorsVladimir Shveidel, Roy Koren, Shaoqin Gong, Zhongyu Kang
Life of this patent
Estimating the term…
Loading patent…
AssigneeDell Products L.P.
InventorsVladimir Shveidel, Roy Koren, Shaoqin Gong, Zhongyu Kang
Estimating the term…
Techniques can include: thread TH1 acquiring a spinlock; while TH1 holds the spinlock, adding threads TH2 and TH3 to a wait queue based on a FIFO (first in first out) ordering in which threads attempt to acquire the spinlock, where TH1, TH2 and TH3 respectively have positions P1, P2 and P3 in the FIFO ordering; while TH1 holds the spinlock, pre-empting TH2; while TH2 is inactive and waiting at P2 in the FIFO ordering of the queue, TH1 releasing the spinlock; detecting that the spinlock is free and that TH3 is waiting in the queue at P3, where TH2 is next, in the FIFO ordering of threads in the queue, to acquire the spinlock after released by TH1; and responsive to said detecting, performing first processing including: cancelling the second position or index P2 of TH2 in the FIFO ordering; and TH3 acquiring the spinlock.
A computer-implemented method comprising:
A system comprising:
A non-transitory computer-readable media comprising code stored thereon that, when executed, performs a method comprising:
Dependencies are inferred from the claim text.