- Concurrent Patterns and Best Practices
- Atul S. Khot
- 134字
- 2021-07-16 17:32:28
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.
- 電腦組裝與系統安裝
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- Arch Linux Environment Setup How-to
- Extending Puppet
- PLC控制系統應用與維護
- 精解Windows8
- 深入Linux內核架構與底層原理(第2版)
- Linux使用和管理指南:從云原生到可觀測性
- 8051軟核處理器設計實戰
- Windows 7中文版從入門到精通(修訂版)
- Linux內核觀測技術BPF
- AWS Development Essentials
- Social Data Visualization with HTML5 and JavaScript
- Cassandra 3.x High Availability(Second Edition)
- HTML5 Enterprise Application Development