Re: Changing process priority
- From: John den Haan <nospam@xxxxxxxxxx>
- Date: Sat, 17 Feb 2007 05:18:35 +0100
Walter Roberson schreef:
In order to get a hard guarantee that your process is not going to
use half (or more) of the CPU even when nothing else is waiting to run,
you would probably need to use an OS that provided "real time"
processes and processor quanta. Common operating systems don't
provide those kind of facilities (though I don't know if Linux has
them.)
What I am looking for is something like the 'doevents()' call in VB which allows one to keep the OS responsive while running my app (a game). I mean, how do all games do it? They have to loop somewhere in order to receive input... Or do they use some form of event-driven code?
--
Cheers,
John den Haan
joDhn[dot]haEan[at]chLello[dot]nl
Remove capital 'DEL' from above addy to obtain e-mail address
.
- Follow-Ups:
- Re: Changing process priority
- From: Simon Biber
- Re: Changing process priority
- From: Jack Klein
- Re: Changing process priority
- From: Walter Roberson
- Re: Changing process priority
- References:
- Changing process priority
- From: John den Haan
- Re: Changing process priority
- From: Walter Roberson
- Changing process priority
- Prev by Date: Re: function system() from stdlib.h
- Next by Date: Re: Odd behavior with odd code
- Previous by thread: Re: Changing process priority
- Next by thread: Re: Changing process priority
- Index(es):
Relevant Pages
|