chenBright commented on PR #3009:
URL: https://github.com/apache/brpc/pull/3009#issuecomment-3089681936

   ```c++
   void* test(void*) {
       while (!brpc::IsAskedToQuit()) {
           sleep(2);
       }
   }
   
   for (int i = 0; i < 3; ++i) {
       bthread_t tid;
       bthread_start_background(&tid, NULL, test, NULL);
   }
   ```
   
   <img width="868" height="451" alt="image" 
src="https://github.com/user-attachments/assets/d291209c-2b9d-4c15-8339-fc85ee6c9429";
 />
   
   
   Start 3 bthreads and loop sleep for 2s. The value of bthread_worker_usage is 
correct, and the extra 1 comes from the epoll bthread.


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

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