Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

anyway to change the priority of a thread?

hi, is there anyway to change the priority of a thread? so its set to high and can be seen in the tast manager?

with this thread?

procedure TForm1.Button1Click(Sender: TObject);
var
  Thids : Dword;
begin
  CreateThread(nil, 0, @list, nil, 0, Thids);
end;
0
SaLz
Asked:
SaLz
1 Solution
 
BlackTigerXCommented:
var
  aThread:Cardinal;
begin
  Athread:=CreateThread(nil, 0, @list, nil, 0, Thids);
  SetThreadPriority(aThread, THREAD_PRIORITY_HIGHEST)
0
 
SaLzAuthor Commented:
Thxs :D
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now