17 Nov
2005
17 Nov
'05
10:09 p.m.
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?