.. problems related to context-switching derive from parallel (outside) applications
BTW, setting the priority is system-wide, not just relative to other threads of your application. If some other application has set its priority above "normal" that's a problem with the other software.
Also, Windows DOES give more time to the thread owning the current active Window. (Buried in the doc for the SetActiveWindow function).
I have said many many times optimization is always application-specific. If you have some application giving you difficulty, the first step is to use the PROFILE function (see in compiler's help file) to identify the procedures taking the most time. Then you can put your effort into optimizing the true "time-hogs" and not waste time tinkering around the margins.
Before you start playing with system priorities, you need to take a close look at your application and make sure your own house is in order.
MCM
Leave a comment: