You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/03/23 11:24:04 UTC

[GitHub] [incubator-brpc] ehds edited a comment on issue #1724: 看到戈神回复中,切换bthread和切换pthread都是3us左右,为什么bthread还有存在的必要呢

ehds edited a comment on issue #1724:
URL: https://github.com/apache/incubator-brpc/issues/1724#issuecomment-1076255767


   bthread 和 pthread 是 M:N 的关系,也就是说一个 pthread 上可以运行多个 bthread,并且相对于建立一个pthred,建立一个bthread的时间是非常快的,同时由于 worksteal 的调度方式,可以高效的利用多核。
   具体可以参考:[bthread](https://github.com/apache/incubator-brpc/blob/master/docs/cn/bthread.md) 和 [bthread-or-not](https://github.com/apache/incubator-brpc/blob/master/docs/cn/bthread_or_not.md)


-- 
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: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org