lhsoft commented on issue #3030:
URL: https://github.com/apache/brpc/issues/3030#issuecomment-3089009371

   仔细分析了下,一个可能的原因:
   由于priority_to_run在提交任务时并没有发送signal给其他在waiting状态的worker。
   同时bthread的attr是传递的属性,导致epoll 
thread创建子thread也具有BTHREAD_GLOBAL_PRIORITY,priority_queue中会有多个task。极端情况下,只有一个worker在工作,其他在sleeping,这个工作的worker在执行完priority
 queue中的epoll task的前一个task后进去wating状态,导致再也没有worker工作。系统进入假死状态。
   


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