You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/04/14 21:05:22 UTC

[GitHub] [pulsar-client-go] jerrypeng commented on issue #221: Auto update the client to handle changes in number of partitions

jerrypeng commented on issue #221: Auto update the client to handle changes in number of partitions
URL: https://github.com/apache/pulsar-client-go/pull/221#issuecomment-613681074
 
 
   General question about how locks are handled in Go, when multiple threads are waiting on a lock. In what order are the locks released? FIFO?  Or just everyone attempts to acquire and first one wins?  I am asking because I am wondering if there are going to be any thread starvation going on for the thread that periodically checks for new partitions especially when "sendAsync" can be called quite frequently.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services