 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
luiji pari Guest
|
Posted: Mon Jul 17, 2006 1:47 pm Post subject: hoxto? process priority |
|
|
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
|
Posted: Mon Jul 17, 2006 2:16 pm Post subject: Re: hoxto? process priority |
|
|
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
|
Posted: Thu Jul 20, 2006 2:43 am Post subject: Re: hoxto? process priority |
|
|
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
|
Posted: Sat Jul 22, 2006 2:45 am Post subject: Re: hoxto? process priority |
|
|
"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
|
Posted: Sat Jul 22, 2006 4:31 am Post subject: Re: hoxto? process priority |
|
|
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 |
|
 |
|
|
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
|
|