By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,027 Members | 1,235 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,027 IT Pros & Developers. It's quick & easy.

Setting Priority of an App Within the App

P: n/a
Is there a way to lower an application's priority from within the
application itself? I have a vb.net app that's using too much of the CPU
and I'd like to be able to throttle it back some.

Art
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Cor

"> Is there a way to lower an application's priority from within the
application itself? I have a vb.net app that's using too much of the CPU
and I'd like to be able to throttle it back some.

Never used it, so I do'nt know if it works for you
\\\\
Threading.Thread.CurrentThread.Priority =
Threading.ThreadPriority.BelowNormal
////
But you can give it a try
Cor
Nov 20 '05 #2

P: n/a
Hello,

"Art Krumsee" <ak******@columbus.rr.com> schrieb:
Is there a way to lower an application's priority from within the
application itself? I have a vb.net app that's using too much
of the CPU and I'd like to be able to throttle it back some.


Priority Property (.NET Framework Class Library)
http://msdn.microsoft.com/library/en...orityTopic.asp

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3

P: n/a
Hi,

Yes, see Herfried's message.

However... You should look at the logic of your code. It sounds like you
are in a loop, polling some sort of "condition." Perhaps there is a more
appropriate technique. Simply changing priority may not be the best way to
tackle the problem.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.