cdjingit commented on issue #1263:
URL: https://github.com/apache/incubator-brpc/issues/1263#issuecomment-707038541


   1. bthread_start_urgent只有在worker中才会立即切换到新创建的bthread执行。非worker中只能放到remote 
queue中。用brpc框架代码应该大多数时候都是运行在worker线程中。除了一些特别需要开启另外pthread执行的计算。
   2. 比如 
考虑新的bthread可能需要阻塞的情况。并且当前的bthread也可能被别的worker偷走和新的bthread并行执行。你所说的情况,不应该bthread_start_urgent一个新的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.

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