於 Linux 想要多工、同時非同步執行, 一般都會寫 Thread、Fork 或者利用 & 等等來做, 有沒有偷懶的方法, 可以直接把參數丟給程式後, 自動平行產生多個 Process 來處理呢?
- Linux 可以安裝 xjobs 來使用看看: apt-get install xjobs
- xjobs is most useful on multi-processor/core machines when one needs to execute several time consuming command several that could possibly be run in parallel.
- xjobs - construct command line and execute jobs in parallel
註: Linux 還有 parallel 可以達成類似的事情.