In Perl, how can I block for a bunch of system calls to finish?

前端 未结 3 1978
-上瘾入骨i
-上瘾入骨i 2020-12-09 12:14

I\'m doing a bunch of system calls that I want to run in parallel:

system(\" sleep 5 && echo step 1 done &\");
system(\" sleep 3 && echo          


        
3条回答
  •  臣服心动
    2020-12-09 12:50

    what about running each one of the system call from a different thread and join on the threads

提交回复
热议问题