468,539 Members | 1,856 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,539 developers. It's quick & easy.

Job Objects + CPU throttling + .NET

Lu
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 AssignProcessToJobObject)
3- Limit the jobs CPU time by using
JOBOBJECT_BASIC_LIMIT_INFORMATION.PerJobUserTimeLi mit (using
SetInformationJobObject). 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
JOBOBJECTINFOCLASS.JobObjectBasicAccountingInforma tion somehow but i'm can't
seem to find any documentation on how to do this.

thanks in advance.
Nov 21 '05 #1
0 1021

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Aguilar, James | last post: by
reply views Thread by Rex Winn | last post: by
161 posts views Thread by KraftDiner | last post: by
4 posts views Thread by Katie | last post: by
21 posts views Thread by George Exarchakos | last post: by
27 posts views Thread by SasQ | last post: by
14 posts views Thread by Jess | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.