MalikHou commented on issue #3212: URL: https://github.com/apache/brpc/issues/3212#issuecomment-3979859262
> > R2. epoll polling / hybrid mode > > Maybe you need a epoll for each pthread. And for bthread timer, you need to manager a timer queue for each pthread, and set the timeout param of epoll_wait according to the nearest timer event. > > > R4. Ability to enqueue work back to the worker’s _local_queue > > I think you need to add a private queue for each pthread to avoid work stealing. this is already implemented in my design. I use `pinned_rq` to prevent tasks from leaving the current worker and also prevent other workers from stealing tasks. MR : https://github.com/apache/brpc/pull/3232 -- 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]
