Maintaining lock-free, high frequency, high performance counters in software
    9.
    发明授权
    Maintaining lock-free, high frequency, high performance counters in software 有权
    在软件中维护无锁,高频,高性能计数器

    公开(公告)号:US09477471B1

    公开(公告)日:2016-10-25

    申请号:US14793635

    申请日:2015-07-07

    IPC分类号: G06F9/46 G06F9/30 G06F9/50

    摘要: A first and second thread-local counter is allocated to a first and second thread respectively, where the first thread-local counter is updatable only by or on behalf of the first thread and the second thread-local counter is updatable only by or on behalf of the second thread. The first and second thread-local counter are updated and the updated values are communicated to a central process. The central process updates a single counter in a central database by a value equal to the sum of the updated counter values.

    摘要翻译: 第一和第二线程局部计数器分别被分配给第一和第二线程,其中第一线程本地计数器仅由第一线程或代表第一线程可更新,并且第二线程本地计数器仅由代表或代替 的第二个线程。 更新第一个和第二个线程局部计数器,并将更新后的值传递给中央进程。 中央处理器将中央数据库中的单个计数器更新为等于更新的计数器值的总和的值。