jiazhanfeng1989 opened a new issue, #160:
URL: https://github.com/apache/brpc-website/issues/160

   
   
   User code(client-side done, server-side CallMethod) runs in bthreads with 
1MB stacksize by default. But some of them cannot run in bthreads:
   
   ......
   _**brpc offers pthread mode to solve the issues. When -usercode_in_pthread 
is turned on, user code will be run in pthreads.**_ Functions that would block 
bthreads block pthreads.
   
   Note: With -usercode_in_pthread on, brpc::thread_local_data() does not 
guarantee to return valid value.
   
   Performance issues when pthread mode is on:
   .....
   
   _**User code still runs in special bthreads actually,**_ which use stacks of 
pthread workers. These special bthreads are scheduled same with normal bthreads 
and performance differences are negligible.
   
   


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