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 2020/01/20 10:27:54 UTC

[GitHub] [incubator-brpc] guangpec1 commented on issue #1035: 在一个服务中使用两个Task Control 是否会有影响?

guangpec1 commented on issue #1035: 在一个服务中使用两个Task Control 是否会有影响?
URL: https://github.com/apache/incubator-brpc/issues/1035#issuecomment-576208924
 
 
   戈神,我们自己内部实现了,现在测试还没有发现问题,我详细描述一下场景. 建立两个 Task Control 分别是 T1 和 T2.  T1 中处理网络请求,然后T1将“算力较大”的部分发给 T2, T1 发给T2的只是function和arg, T2 执行funciton (本质上调度 start_background<false>(tid, attr, fn, arg)),T2 任务结束后通过signal 通知 T1.  我理解Task Control 本质上是bthread 调度引擎,与bthread 的资源解耦.   同时Task Control 每一个Thtread Worker (pthread) 是资源独立的,因此可以建立两个task control.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org