Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Set my programs priority level

Posted on 1997-06-22
2
155 Views
Last Modified: 2010-04-04
Hi!

I want to set the priority level of my program, but how.
I would think it would be something like Application.Priority:=Normal.
Thanks!

Chr
0
Comment
Question by:chrb
2 Comments
 
LVL 1

Accepted Solution

by:
ygolan earned 20 total points
ID: 1337447
Chr,

Priorties can be adjusted only per thread. If your application contains only one thread (as most applications do), the following code will do the trick :

SetThreadPriority(GetCurrentThread, THREAD_PRIORITY_NORMAL);

You can replace THREAD_PRIORITY_NORMAL with any of the values documented in the SetThreadPriority function. Some of these values are : THREAD_PRIORITY_ABOVE_NORMAL, THREAD_PRIORITY_HIGHEST      etc.
0
 

Author Comment

by:chrb
ID: 1337448
Thanks!
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using idhttp to login to instagram 2 106
Help on project with Soap 10 57
Multiple image collision 13 80
Firemonkey android show image from resource ? 1 46
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question