Operating System - HP-UX
1820475 Members
2987 Online
109624 Solutions
New Discussion юеВ

Can a process run on more than 1 cpu?

 
Johan Barelds
Frequent Advisor

Can a process run on more than 1 cpu?

Hi all,

Situation: server with 4 cpu's.
A specific proces uses only 1 cpu for 100%. Is it possible to run this process over more then 1 cpu?

Grz. Johan
Make my day..:-)
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: Can a process run on more than 1 cpu?

The general answer is no although unless the application is multi-threaded.
If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: Can a process run on more than 1 cpu?

I am sure you can, but you will receive no benefit unless there is a lot of work that can be devided amont the CPUS'

For example a large number of calculations that can be split into multiple parts.

As to how to do it, I'd use c language. It has the right fools for splitting up work and dividing it into child processes.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: Can a process run on more than 1 cpu?

In the situation you've described - no. The application is obviously not multi-threaded and the only way to make it multi-threaded would be to rewrite it.

Pete

Pete
Sridhar Bhaskarla
Honored Contributor

Re: Can a process run on more than 1 cpu?

Hi,

It is not possible to share the load of this process across multiple cpus because it is single threaded. Single-thread is meant literally.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
monasingh_1
Trusted Contributor

Re: Can a process run on more than 1 cpu?

I think if the application is thread capable, it will use multiple cpu's but otherwise not...

untill someone writes a program like Autoport aggregation (available for network cards)!!!!