Boost logo

Boost Users :

From: Brian Allison (brian_at_[hidden])
Date: 2005-11-18 08:21:18



  AFAIK Pete, there are no POSIX hooks for doing this by way of having the kernel control the sleeping status of a program wrt the load factor.

  The typical approach for this problem involves having a control thread whose purpose is to control the work speed of the threads. This usually involves a programmatic solution - the nice values are only suggestions to the scheduling routine IIRC.

Pete wrote:
Under heavy load, my HP-UX 11i application can run multiple, CPU
intensive boost::thread's. Unfortunately, this has the side effect that
other processes suffer in terms of performance. I initially thought that
decreasing the nice value of my app would do the trick and ensure that
other processes with a higher value would get priority by the kernel
scheduler. However, this does not appear to be true (my app's nice value
is 30 when most other processes run at 20).

The requirement of my app is to run only whenever the system is idle. Is
there a way this can be done using boost::thread or does anybody know
how I could configure my process under HP-UX so that it behaves as
intended?

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


  


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net