chenBright commented on issue #2313:
URL: https://github.com/apache/brpc/issues/2313#issuecomment-1630695164

   我理解,pthread锁内挂起bthread(rpc、bthread_usleep、butex等)的逻辑是有问题的,会很容易导致死锁。例如这个场景下:
   
   
一个worker线程执行bthread的时候加了pthread锁,然后挂起了。在该bthread释放pthread锁之前,该worker线程继续调度其他bthread(逻辑与前面的bthread一样),加了同一把pthread锁。在同一个pthread中连续加两次会死锁,逐渐地其他worker也加这把pthread锁,最后所有worker就阻塞在pthread锁上了。


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