[c++] What are the use of the threads that grpc starts in async mode?

49 views
Skip to first unread message

Maysam Mehraban

unread,
Nov 7, 2017, 3:38:56 PM11/7/17
to grpc.io

Hello,

I am looking into gRPC in async mode to see if it is suitable for the application that I am working on.
I have difficulties to understand how does it really work with regards to greeter_async_server, and I have the following questions:

It seems for the provided example greeter_async_server, the framework starts 3 additional threads. Does gRPC in async mode starts its own threads to handle io? Can the number of threads be controlled and what they are used for?

Many thanks in advance.

Yang Gao

unread,
Nov 14, 2017, 6:39:11 PM11/14/17
to grpc.io
gRPC core will start some threads to do background work (executor thread) and handle timers (timer thread). 
Reply all
Reply to author
Forward
0 new messages