You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "cooper-zhzhang (via GitHub)" <gi...@apache.org> on 2023/02/07 12:56:18 UTC

[GitHub] [brpc] cooper-zhzhang commented on issue #2110: Question: scheduling of the bthread of ExecutionQueue

cooper-zhzhang commented on issue #2110:
URL: https://github.com/apache/brpc/issues/2110#issuecomment-1420727484

   1. 当有新的任务入队时,就会开启一个新的bthread消费队列(如果当时没有bthread在消费)
   2. 目前没有办法指定一个特定的bthread去消费队列中的任务。不过可以设置参数in_place_if_possible指定在当前线程直接执行任务,而不是开启一个新bthread。
   3. 在bthread中调用sleep会造成整个thread休眠。这是不允许的。
   
   


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