View Full Version : [all variants] Linux processes and multiple cpu / cores

October 2nd, 2010, 07:45 PM

Is there any way that a application that runs as one process (1 pid) will use more than one cpu / core? Or is it only possible if the application forks and creates more processes?

October 3rd, 2010, 04:39 AM
There are three ways I know that a process may run on more than one core.

1. Fork a sub process
2. Create more than one thread in it's process.
3. The CPU will switch cores from time to time with heavy processes to keep the thermal profile balanced.

There may be more I'm not familiar with. More about threads here (http://en.wikipedia.org/wiki/Thread_%28computer_science%29).