Server methods can absolutely be called from many threads.

On Thu, Oct 27, 2016 at 7:28 AM <jan.willem...@gmail.com> wrote:

> Hi,
>
> In the synchronous case (example:
> http://www.grpc.io/docs/tutorials/basic/c.html), are the functions
> executed concurrently, or sequentially?
> For instance in the example, is RouteGuideImpl::GetFeature called
> concurrently (from multiple threads from the same time).
>
> I've implemented such a service, but there is shared state. From my
> experiments it is quite clear that these functions can be called
> concurrently, but there is no reference to that in the documentation. I
> have tried to find this out before writing the code, but (to me) it is not
> clear from the documentation what to expect.
>
> Some messages on this mailing list also ask questions about the threading
> model, but there is no clear answer to my question.
>
> I'd be happy to do a pull request on the documentation repository, but I
> first wanted to have some confirmation.
>
> Thanks!
> Kind regards,
> Jan.
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to grpc-io+unsubscr...@googlegroups.com.
> To post to this group, send email to grpc-io@googlegroups.com.
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/5ae50e4d-7a88-4a9b-b897-447cf3331dfd%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/5ae50e4d-7a88-4a9b-b897-447cf3331dfd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAAvp3oMFSvWTSqh4-2LqKXhEhr0KEjemG6pPocmQ%2B8hUZvefBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to