我试图在C.处理器农场我先开口消息队列,事后尽量使工作进程:(注意NROF_WORKERS 5) static void
makechildren (void) {
// Only the parent should fork. Any children created will become workers.
pid_t processID;
pid_t farm
我有一个运行在平行几个子流程一个bash的功能,如: #!/bin/bash
function check() {
set +m
for f in foo bar ; do
(
if [ -f $f ] ; then ls -la $f >> all; fi
) &
done
wait
}
在采购和运行这个(. scri