[CentOS] command to see if a process is being spread among multiple cpus

Wed Apr 4 11:06:13 UTC 2007
Antonio da Silva Martins Junior <asmartins at uem.br>

----- "Erick Perez" <eaperezh at gmail.com> wrote:
>
> What command can I use to check if a specific process is 
>being spreaded among multiple cpus?
>

  You can use "top" (among others) to see "where" your process are running,
run top, and type "f" and then "J", it'll add a "P"rocessor column on top.

  But, _a_ process can't spread on multiple CPUs... to do this the application
need to be specificaly designed to do so. A way to do this is using multi-threads, 
another one is forking multi-instances. But, with only one instance running an 
application will use only one CPU.

    Antonio.

-- 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Antonio S. Martins Jr. - Support Analist | "Only The Shadow Knows     |
| Universidade Estadual de Maringá - Brasil|   what evil lurks in the   |
| NPD - Núcleo de Processamento de Dados   |       Heart of Men!"       |
| E-Mail: asmartins at uem.br / shadow at uem.br | !!! Linux User: 52392 !!!  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


-- 
Esta mensagem foi verificada pelo sistema de antivírus e
 acredita-se estar livre de perigo.