dxw1997 commented on issue #1724:
URL: https://github.com/apache/brpc/issues/1724#issuecomment-1880244787

   > 你比较的是bthread vs. ”pthread线程池“,还是bthread vs. “纯异步"? 
pthread线程池的代价是一旦阻塞只能阻塞pthread,影响并发度(也就是pthread线程的个数),后者代码难写。bthread就是平衡一下这两者。
   
   
还是有一点不懂。我现在在bthread中同步调用下游的一个服务,同步调用的时候调用端会阻塞在一个锁上,这时候在调用端bthread所跑的pthread上,会出现bthread的切换吗?


-- 
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