zchuango commented on issue #3226:
URL: https://github.com/apache/brpc/issues/3226#issuecomment-4436694169

   > bthread调度:使用 butex 等待共享内存中的通知标志位,避免自旋消耗CPU;或配置为轮询模式(低延迟场景)。/
   > 为什么需要改这个调度呢?
   
   
目前butex只能做到进程下多线程共享内存的标志位通知,对于多进程间共享内存标志位同步还无法做到吧?面对低时延场景自旋polling模式更加适合些,当然也带了cpu消耗高的问题,这个还是要结合真实业务场景需求来判别。当然也在尝试规划跨进程/跨节点的共享进程标志位通知,欢迎一起探讨下相关技术和后续演进方向
 @yanglimingcn @wwbmmm 
   
   > 这个类是对接内核的Epoll吗?还是要模拟一个高性能的Epoll?
   
   目前UBRingEpoll情况是第二种情况,使用了纯用户态的Epoll可以带来更低的时延。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to