wwbmmm commented on issue #2000:
URL: 
https://github.com/apache/incubator-brpc/issues/2000#issuecomment-1325979641

   > 
不不,我的重点不是当前bthread挂起并signal其它的worker来继续执行这个bthread带来的性能损耗,我的重点是经过bthread的ProcessEvent并没有切换pthread,为何系统调用函数write和read的开销高于直接调用ProcessEvent时的系统调用函数write和read的开销。
   
   
有关系的。当前bthread负责IO事件的处理,如果当前bthread挂起并signal其它的worker来继续执行,那么后续的read和write动作就会跑到其它的worker的,这就会影响到系统调用函数write和read的开销


-- 
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-unsubscr...@brpc.apache.org

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


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

Reply via email to