Skip to content

协程池里面的worker是并发执行的吗 #266

Answered by panjf2000
lizzyilike asked this question in Q&A
Discussion options

You must be logged in to vote

是并发执行的,至于你的问题,不同大小的 pool 执行同一批任务,是有可能耗时不一样的,取决于你的任务有多少,如果超过了 pool 的容量,则需要等待其他任务执行完,这样就会花更多时间。

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@lizzyilike
Comment options

@josephlabeleven
Comment options

@lizzyilike
Comment options

@lizzyilike
Comment options

@josephlabeleven
Comment options

Answer selected by panjf2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants