The wait-free side of a WaitFreeQueue is designed to be single-threaded.
WaitFreeQueue 的无等待端专门设计成单线程。
An algorithm is said to be wait-free if every thread will continue to make progress in the face of arbitrary delay (or even failure) of other threads.
如果每个线程在其他线程任意延迟(或甚至失败)时都将持续进行操作,就可以说该算法是无等待的。
These classes guarantee that an RT thread, which could be blocked by GC while performing a wait-free operation, won't hold a lock that an NHRT requires in performing a wait-free operation.
RT 线程在执行无等待操作时可能被 GC 阻塞,上述类保证了 RT 线程在执行无等待操作时不会持有 NHRT 所需的锁。
应用推荐