wanghenshui commented on PR #2819:
URL: https://github.com/apache/brpc/pull/2819#issuecomment-2489942731

   > 能否在bthread这个层面上,创建协程的时候设置一个属性,使它具有更高的优先级呢?现在这里专门设置了epoll_XXX,感觉有点特化。 
另外,总是让epoll的bthread优先调度的话,会不会造成堆积很多任务的情况呢?
   
   1 你说得对,是有点特化,这么改简单点
   
   如果是带优先级的bthread 可能就得改调度了,涉及到任务抢占/饥饿问题,可能麻烦一点
   
   
   2 你说的也对可能会堆积,但是epoll任务是比较少的
   
   如果改了优先级,会存在你说的优先级高的任务太多导致其他任务饿死
   
   


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