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.>
Your Node.js code is I/O bound. It is doing almost none of the CPU work. You can see in your code that you are only creating external tasks and moving around the output from those tasks. You are not using long running loops or heavy math calculations. You are seeing high CPU numbers for the Node.js process because the pdftotext processes are its child processes, and therefore you are seeing its CPU values aggregated.