I/O bound and CPU bound
Hei. I'm using Node.JS with child_process to spawn bash processes. I'm trying to understand if i'm doing I/O bound, CPU bound or both. I'm using pdftotext to extract the text of 10k+ files. To control concurrences, I'm using async . Code: let spawn = require('child_process').spawn; let async = require('async'); let files = [ { path: 'path_for_file' ... }, ... ]; let maxNumber = 5; async.mapLimit(files, maxNumber, (file, callback) => { let process = child_process.spawn('pdftotext', [ "-layout", "-enc", "UTF-8", file.path, "-" ]); let result = ''; let error = ''; process.stdout.on('data',