Read/write performance: single thread vs multithread
The small test program shows how memory and file I/O operations can be accelerated using multiple threads.
Scenario
The program uses
- N threads (1 means a single thread)
- X bytes of memory to allocate a huge block (255 MB by default)
- M files to dump some huge memory block …