Thank you very much for your reply
It takes several hours to run the whole loop, and some customers need to run it on a TS session
Yes it is a Windows forms program, but it doesn't run on a separate thread. Do you recommend running on a separate thread? If I were to run on the main thread, is it possible to set the main thread's priority to below normal? Is it no use in using DoEvents
Regards, Falnes
----- Willy Denoyette [MVP] wrote: ----
Very hard to tell. Why is it CPU intensive in the first place, what exactly
are you doing in the loop, how long does it takes to run the whole loop
Anyway, long running CPU intensive tasks should stay away from TS sessions ,
unless you can afford an SMP machine and run that task with CPU affinity
Now, I assume this is a windows forms program, and the CPU intensive part
runs on a separate thread (I could be wrong because you are refering to
DoEvents). In that case you could try to change that thread's priority to
"below normal"
Willy
"Falnes" <an*******@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com..
We are developing applications in VB.Net which might be very CPU
intensive. Our problem is that other applications running on the same
machine is barely getting any processor resources at all. This is
especially problematic when running our application on a terminal server.
Other users running other applications on the terminal server feel the
server stops responding Do you have any good solutions to restrict processor usage to an
application
Should we e.g. run Doevents in CPU intensive loops or should we set down
the process priority
However, if the CPU is not being used by other applications/processes we
want to be able to use all the available CPU resources we can get hold of