process/thread & processor
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > process/thread & processor




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    process/thread & processor  
kasthurirangan.balaji@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-13-07 12:33 PM

Hi,

Our system has 4 processors. We do not use threads. We use forks. Just
by using forks, can we guarantee that all the 4 processors are
utilized appropriately or do we need to use threads for it?( We know
that forks are costly). Is there a way to check programatically the
utilization of the processors?

Thanks,
Balaji.





[ Post a follow-up to this message ]



    Re: process/thread & processor  
Mikko Rauhala


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-13-07 06:24 PM

On Thu, 13 Dec 2007 05:06:18 -0800 (PST), kasthurirangan.balaji@gmail.com
<kasthurirangan.balaji@gmail.com> wrote:
> Our system has 4 processors. We do not use threads. We use forks. Just
> by using forks, can we guarantee that all the 4 processors are
> utilized appropriately or do we need to use threads for it?

Neither multiple processes nor multiple threads guarantee this;
however, both make it very likely (that is, you'll get appropriate
utilization if the scheduler is doing its job sanely, which includes
for example not swapping processes between processors for nothing).

In short, you should be fine, or if you're not, at least it's not the
fault of using multiple processes as such.

--
Mikko Rauhala   - mjr@iki.fi     - <URL: http://www.iki.fi/mjr/ >
Transhumanist   - WTA member     - <URL: http://transhumanism.org/ >
Singularitarian - SIAI supporter - <URL: http://singinst.org/ >





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:31 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register