The OS is a dynamic env, it'll only be at a given load for a fraction of a second.
If you have the system only running the bare minimum OS, plus your program, you should be able to get your prog to fork new processes and check the load until you get close to the number you want.
It's trial and error.
For cpu load, use a prog that just does basic calcns, that'll make it cpu bound.
|