You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/04/14 11:59:49 UTC

[GitHub] [incubator-brpc] serverglen commented on issue #1741: bthread dead lock when yield with a lock

serverglen commented on issue #1741:
URL: https://github.com/apache/incubator-brpc/issues/1741#issuecomment-1099111724

   I think the reasons are as follows
   1. worker threads number is too small
   2. avoid using blocking pthread API in bthreads, use the corresponding data structure in bthread for example bthread_mutex_t and bthread_cond_t
   3. if must use the blocking pthread API, keep the critical sections small


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