Running shell script in parallel

后端 未结 8 2024
无人及你
无人及你 2020-11-30 19:35

I have a shell script which

  1. shuffles a large text file (6 million rows and 6 columns)
  2. sorts the file based the first column
  3. outputs 1000 fi
8条回答
  •  粉色の甜心
    2020-11-30 20:11

    There is a whole list of programs that can run jobs in parallel from a shell, which even includes comparisons between them, in the documentation for GNU parallel. There are many, many solutions out there. Another good news is that they are probably quite efficient at scheduling jobs so that all the cores/processors are kept busy at all times.

提交回复
热议问题