You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/04/24 03:46:19 UTC
[GitHub] [incubator-brpc] yanglimingcn opened a new issue, #1749: butex_wake*的需求
yanglimingcn opened a new issue, #1749:
URL: https://github.com/apache/incubator-brpc/issues/1749
有些场景,在butex_wake*的时候不希望被唤醒的bthread马上和现在的bthread交换投入执行,比如,execution_queue是一个多生产者单消费者的队列,多生产者生成任务然后等待消费者将任务处理完成(比如:调用CountdownEvent::wait),消费者处理完任务唤醒生产者(比如:调用CountdownEvent::wait),在此过程中会频繁的触发协程的exchange。
需求:因为消费者是单线程,往往是性能的瓶颈点,需要最快的完成任务,如果消费者在处理完每个任务,只将消费者投入运行队列,并且能批量执行signal,这样性能应该会好很多。
--
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-unsubscribe@brpc.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] wwbmmm closed issue #1749: butex_wake*支持nosignal的需求
Posted by GitBox <gi...@apache.org>.
wwbmmm closed issue #1749: butex_wake*支持nosignal的需求
URL: https://github.com/apache/incubator-brpc/issues/1749
--
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-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] wwbmmm commented on issue #1749: butex_wake*的需求
Posted by GitBox <gi...@apache.org>.
wwbmmm commented on issue #1749:
URL: https://github.com/apache/incubator-brpc/issues/1749#issuecomment-1107714295
你是希望提供类似butex_wake_urgent/butex_wake_background这样的函数吗?
--
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-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] yanglimingcn commented on issue #1749: butex_wake*的需求
Posted by GitBox <gi...@apache.org>.
yanglimingcn commented on issue #1749:
URL: https://github.com/apache/incubator-brpc/issues/1749#issuecomment-1107781166
是的,类似这样的功能,我现在改了一下 int butex_wake_all(void* arg, bool nodelay),加个了参数,如果nodelay = false就统一走ready_to_run_general,不走下边的TaskGroup::exchange。
但是这个改动不一定优雅,可能需要你们的综合设计。
--
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-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] wwbmmm commented on issue #1749: butex_wake*的需求
Posted by GitBox <gi...@apache.org>.
wwbmmm commented on issue #1749:
URL: https://github.com/apache/incubator-brpc/issues/1749#issuecomment-1107797274
可以提个PR看看
--
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-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org