BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

hoxto? process priority

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
luiji pari
Guest





PostPosted: Mon Jul 17, 2006 1:47 pm    Post subject: hoxto? process priority Reply with quote



hello,

I use BCB v5.0 on win XP pro.
I would like to launch my application with lower CPU priority than normal.

Is this possible, via C++ programming , or launch command line option?
(the use of the task manager does fit to me).

thanks,

luiji.
Back to top
Alan Bellingham
Guest





PostPosted: Mon Jul 17, 2006 2:16 pm    Post subject: Re: hoxto? process priority Reply with quote



luiji pari <ljpari (AT) yahoo (DOT) fr> wrote:

Quote:
I use BCB v5.0 on win XP pro.
I would like to launch my application with lower CPU priority than normal.

Is this possible, via C++ programming , or launch command line option?
(the use of the task manager does fit to me).

If so, it will be via the Windows API, so try asking in the
borland.public.cppbuilder.nativeapi newsgroup

Alan Bellingham
--
ACCU Conference: 11-14 April 2007 - Paramount Oxford Hotel
Back to top
John van de Geyn
Guest





PostPosted: Thu Jul 20, 2006 2:43 am    Post subject: Re: hoxto? process priority Reply with quote



If you want o do that because you have some loop in your program that takes
all system resources than try to put these 2 lines inside your loop.

Application->ProcessMessages();
Sleep(3);

It will slow your program down and pass some resources back to the OS.





"luiji pari" <ljpari (AT) yahoo (DOT) fr> wrote in message
news:44bb4eb1 (AT) newsgroups (DOT) borland.com...
Quote:
hello,

I use BCB v5.0 on win XP pro.
I would like to launch my application with lower CPU priority than normal.

Is this possible, via C++ programming , or launch command line option?
(the use of the task manager does fit to me).

thanks,

luiji.
Back to top
Pavel Vozenilek
Guest





PostPosted: Sat Jul 22, 2006 2:45 am    Post subject: Re: hoxto? process priority Reply with quote

"luiji pari" wrote:

Quote:
I use BCB v5.0 on win XP pro.
I would like to launch my application with lower CPU priority than normal.

Is this possible, via C++ programming , or launch command line option?
(the use of the task manager does fit to me).


c:\> start /low your_app.exe

or equivalent via system().

CreateProcess() allows to specify priority
in greater detail.

/Pavel
Back to top
Ed Mulroy
Guest





PostPosted: Sat Jul 22, 2006 4:31 am    Post subject: Re: hoxto? process priority Reply with quote

If you can put the code into the application itself, look up the functions
SetProcessPriorityBoost
and
GetProcessPriorityBoost

.. Ed

Quote:
luiji pari wrote in message
news:44bb4eb1 (AT) newsgroups (DOT) borland.com...

I use BCB v5.0 on win XP pro.
I would like to launch my application with lower CPU priority than normal.

Is this possible, via C++ programming , or launch command line option?
(the use of the task manager does fit to me).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.