摘要: concurrent.futures 异步并行任务模块 提供两个池执行器 ThreadPoolExcutor 异步调用的线程池Executor ProcessPoolExecutor 异步调用的进程池Executor 首先需要定义一个池的执行器对象,Executor类子类的对象 method imp 阅读全文
posted @ 2020-10-29 17:12 ascertain 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 滑动窗口: 阅读全文
posted @ 2020-10-29 14:22 ascertain 阅读(57) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash echo $BASHPID for _ in `seq 100`;do echo start sleep 5 echo $BASH_SUBSHELL echo stop done & sleep 20 7267是脚本进程,其又开启了两个进程7268 7269,7268是for 阅读全文
posted @ 2020-10-29 12:06 ascertain 阅读(75) 评论(0) 推荐(0) 编辑