Reputation: 1377
On a multicore processor, if I create a subshell from a shell script file is there any chance for the subshell to go to another processor or will all the subshells and the parent shell will run in the same processor? I couldn't check on a multicore processor machine.
Upvotes: 0
Views: 197
Reputation: 363487
Yes, simultaneously existing processes may be executed on separate cores. Of course, this doesn't buy you anything unless the subshell is executed in the background with the main shell going on to do other work.
Upvotes: 3