pifuant commented on issue #238: [ISSUE #237] CLH spinlock
URL: https://github.com/apache/rocketmq/pull/238#issuecomment-390714651
 
 
   @iamzhoug37 
   Because the compareAndSet call forces other processors to discard their own 
cached copies of the lock, so every spinning thread encounters a cache miss 
almost every time, and must fetch the new, but 
   unchanged value.
   
   Using CLH queue, a release thread just wakes up next spinning thread than 
all.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to