这是一个创建于 1754 天前的主题,其中的信息可能已经有所发展或是发生改变。
map
map+close+join
map_async
map_async+close+join
这四种方式啥区别?如有实例说明最好
1 条回复 • 2019-12-02 09:31:19 +08:00
|
|
1
lalalakakaka 2019-12-02 09:31:19 +08:00
个人经验,有 map 必须要有 close 和 join 关闭线程池,不然会有诡异的内存泄露问题。单独使用 map 可能会出问题也可能没问题,但是最好不要冒险。
|