GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How a Process span across CPU
Operating System - HP-UX
1847663
Members
3345
Online
110265
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 04:42 AM
04-15-2006 04:42 AM
How a Process span across CPU
Hi gurus,
i hve a quiery !.
i hve a rp server, with 4 cpus.
My quiery is, a user process is running on cpu 0, now if that process grows to occupy more cpu, How the allocation happens ?
option 1: whether it grows up to 100% in cpu0 and spans to the next one ? (is the application support is needed for that or it is a OS duty to do it ? )
option 2: whether parallel allocation is made to the other cpus ? instead of making one cpu 100% ?
Thanks in advance
Sivakumar P
i hve a quiery !.
i hve a rp server, with 4 cpus.
My quiery is, a user process is running on cpu 0, now if that process grows to occupy more cpu, How the allocation happens ?
option 1: whether it grows up to 100% in cpu0 and spans to the next one ? (is the application support is needed for that or it is a OS duty to do it ? )
option 2: whether parallel allocation is made to the other cpus ? instead of making one cpu 100% ?
Thanks in advance
Sivakumar P
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 05:17 AM
04-15-2006 05:17 AM
Re: How a Process span across CPU
Sivakumar,
A single process will be running on a single processor, unless you have the application capable of multi threading - which will spawn multiple processes in parallel to exceute. But this totally depends on your application.
The process can use anywhere between 0-100 % of a processor time indicated by the pcpu field if you run the ps -ef command. The same process can get allocated to another processor during the execution-life of the process as usually the OS will need to time-share other processes running on your system so that they also get timeslice of the processor to execute. Thus you may find a particular process currently running on say CPU0 and after some time on say CPU1 etc.
All this - allocating processor resources to the processes is done by the kernel based on the priority of the process, state of the process and other processes running on your system at that time.
Hope this clarifies.
Ninad
A single process will be running on a single processor, unless you have the application capable of multi threading - which will spawn multiple processes in parallel to exceute. But this totally depends on your application.
The process can use anywhere between 0-100 % of a processor time indicated by the pcpu field if you run the ps -ef command. The same process can get allocated to another processor during the execution-life of the process as usually the OS will need to time-share other processes running on your system so that they also get timeslice of the processor to execute. Thus you may find a particular process currently running on say CPU0 and after some time on say CPU1 etc.
All this - allocating processor resources to the processes is done by the kernel based on the priority of the process, state of the process and other processes running on your system at that time.
Hope this clarifies.
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 06:35 AM
04-15-2006 06:35 AM
Re: How a Process span across CPU
Shalom sivakumar,
A single process doing a single job is not going to be able to use two cpus at the same time.
Since Unix provides process time on a time slice basis, it may move from cpu to cpu at time. It is possible to bind a process to a cpu, which will make system operation less efficient for every other process, but is done in certain circumstances.
Now if a program or even a script is written in such a way that there are multiple threads or processes, then its possible the program or script will run on multiple cpus.
SEP
A single process doing a single job is not going to be able to use two cpus at the same time.
Since Unix provides process time on a time slice basis, it may move from cpu to cpu at time. It is possible to bind a process to a cpu, which will make system operation less efficient for every other process, but is done in certain circumstances.
Now if a program or even a script is written in such a way that there are multiple threads or processes, then its possible the program or script will run on multiple cpus.
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 11:18 PM
04-15-2006 11:18 PM
Re: How a Process span across CPU
Hi all,
Thanks for your answers. It cleared my doubt.
Sivakumar P
Thanks for your answers. It cleared my doubt.
Sivakumar P
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP