liangjchen opened a new issue, #2110:
URL: https://github.com/apache/brpc/issues/2110

   I try to understand scheduling behavior of ExecutionQueue and fit into our 
scenarios. My understanding is that there is a bthread (consumer) associated 
with a queue to execute tasks. Is it like a normal concurrent queue such that 
each time a new task is enqueued, the consumer is notified and woke up to 
execute? Is there any configuration that allows me to specify the consumer 
bthread's scheduling, e.g., how often it is scheduled?  
   
   Suppose that I want to introduce a small artificial delay on consumer 
execution (hoping to gather more tasks in a batch), what's the best option to 
accomplish this? Is it wise to call ``sleep`` in the consumer bthread? 
   
   thanks,


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to