官术网_书友最值得收藏!

Divide and conquer

GNU parallel  (https://www.gnu.org/software/parallel/) is a tool for executing commands in parallel on one or more nodes. The following diagram shows a simple run where we generate 10 text files and zip them (using the gzip command) in parallel. All the available cores are used to run gzip , thereby reducing the overall processing time:

The core principle at work is divide and conquer. We see the same principle again and again: a parallelizable job is split into pieces, each of which is processed in parallel (thereby overlapping processing and reducing the time). The parallel command also allows you to distribute long-running jobs on different nodes (machines), thereby allowing you to harness the idle (possibly unused) cores to process jobs quickly.

主站蜘蛛池模板: 遵化市| 昌都县| 靖西县| 专栏| 湘西| 龙胜| 筠连县| 南溪县| 广丰县| 广东省| 五莲县| 建宁县| 佳木斯市| 威远县| 张家界市| 枞阳县| 桐城市| 洛扎县| 青州市| 丰宁| 黔江区| 曲麻莱县| 孟州市| 辉南县| 家居| 玉山县| 西林县| 大姚县| 乌审旗| 竹山县| 西乡县| 阜平县| 潜江市| 蕲春县| 林州市| 分宜县| 孝昌县| 广元市| 华宁县| 潮安县| 南宁市|