SYSTEM AND METHOD FOR UNFAIR ADVANTAGE AWARE SPINLOCK

    公开(公告)号:US20240411556A1

    公开(公告)日:2024-12-12

    申请号:US18678220

    申请日:2024-05-30

    Abstract: Disclosed herein is a method for providing a fair access to a spinlock to one or more cores in a multicore system. The method includes setting, a spinlock variable by the first core of the one or more cores. The setting of the spinlock variable corresponds to changing a cache state of the spinlock variable in a cache of the first core to MODIFIED. Further, the method includes setting a secondary variable by the second core of the one or more cores. The setting of the secondary variable corresponds to changing a cache state of the secondary variable in a cache of the second core to MODIFIED. Furthermore, the method includes releasing, by the first core, the spinlock after performing one or more operations on the critical section of data. Furthermore, the method includes updating, by the first core, the INVALID secondary variable.

Patent Agency Ranking