Invention Grant
- Patent Title: Managing lock and unlock operations using active spinning
-
Application No.: US15609211Application Date: 2017-05-31
-
Publication No.: US10248420B2Publication Date: 2019-04-02
- Inventor: Shubhendu Sekhar Mukherjee , Isam Wadih Akkawi , David Asher , Michael Bertone , David Albert Carlson , Bradley Dobbie , Richard Eugene Kessler
- Applicant: Cavium, LLC
- Applicant Address: US CA Santa Clara
- Assignee: Cavium, LLC
- Current Assignee: Cavium, LLC
- Current Assignee Address: US CA Santa Clara
- Agency: Young Basile Hanlon & MacFarlane, P.C.
- Main IPC: G06F9/30
- IPC: G06F9/30 ; G06F9/52 ; G06F9/48 ; G06F9/54 ; G06F9/46

Abstract:
Managing instructions on a processor includes: executing threads having access to a stored library of operations. For a first thread executing on the first processor core, for each instruction included in the first thread and identified as being associated with a lock operation corresponding to a particular lock, the managing includes determining if the particular lock has already been acquired for another thread executing on a processor core other than the first processor core, and if so, continuing to perform the lock operation for multiple attempts using a hardware lock operation different from the lock operation in the stored library, and if not, acquiring the particular lock for the first thread. The hardware lock operation performs a modified atomic operation that changes a result of the hardware lock operation for failed attempts to acquire the particular lock relative to a result of the lock operation in the stored library.
Public/Granted literature
- US20180293113A1 MANAGING LOCK AND UNLOCK OPERATIONS USING ACTIVE SPINNING Public/Granted day:2018-10-11
Information query