更新 shell有名管道实现进程池.sh

This commit is contained in:
colben 2025-01-17 10:13:04 +08:00
parent 01e8b33396
commit 2ac2cc7db9

View File

@ -18,8 +18,7 @@ printf "%10s" '' >&1022
# 功能: 执行一个任务
# 根据业务需求自己实现
function ExecTask {
local ts=1
let "ts=$1%4"
local ts=$[RANDOM%10]
sleep $ts
}