Job Objects + CPU throttling + .NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lu

    Job Objects + CPU throttling + .NET

    hi. Anyone have an example or tips on on how to do CPU throttling using Job
    Objects with VB.NET ? The documentation on this is close to nothing.

    So far I have been able to:
    1- create a job object (using CreateJobObject )
    2- Assign the process to the job object (using AssignProcessTo JobObject)
    3- Limit the jobs CPU time by using
    JOBOBJECT_BASIC _LIMIT_INFORMAT ION.PerJobUserT imeLimit (using
    SetInformationJ obObject). This last part doesn't seem to work because based
    on what I have read the process should be killed when reaching x amount of
    cpu time.

    I am pretty sure #3 isn't the real way to do CPU throttling since the
    process shouldn't be killed. I think it should involve
    JOBOBJECTINFOCL ASS.JobObjectBa sicAccountingIn formation somehow but i'm can't
    seem to find any documentation on how to do this.

    thanks in advance.


Working...