HI all
Is there anyway to limit the CPU usage a program uses?
I have a app which go thru all Users of my Active Directory, and for each of them insert a line of text in the notes box.
while it does this, the CPU uses 95% cpu power, and the memory also keep rising for each user, Once the program ends its cycle, then the memory go back down to 23mb.
I have 2 questions, is there a way to limit the cpu usage to 50% instead of the 95%? and a way to release used memory after each user ?
Im using a For each loop.
Is there a way to limit the CPU usage from this program to only allow it to use 50% instead of 95%.
Is there anyway to limit the CPU usage a program uses?
I have a app which go thru all Users of my Active Directory, and for each of them insert a line of text in the notes box.
while it does this, the CPU uses 95% cpu power, and the memory also keep rising for each user, Once the program ends its cycle, then the memory go back down to 23mb.
I have 2 questions, is there a way to limit the cpu usage to 50% instead of the 95%? and a way to release used memory after each user ?
Im using a For each loop.
Is there a way to limit the CPU usage from this program to only allow it to use 50% instead of 95%.