My concern was surrounding if it blocked the event loop. So if I did call an internal script would it block the event loop for the life of the script or does it activate on its own thread?
const { spawn } = require('child_process');
const pythonscript = spawn('py script.py');//assume this just runs forever
I read quite clearly from the documentation that doing this spawns a new process, but does that new process share the same thread as the Nodejs app or does it get a thread of its own? e.g. Would I literally see a "script.py" process if I checked my running processes?
If this is an OS specific question, please provide an answer with that assumption.