anyway to change the priority of a thread?

Posted on 2005-04-30
Last Modified: 2010-04-05
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);
  Thids : Dword;
  CreateThread(nil, 0, @list, nil, 0, Thids);
Question by:SaLz
    LVL 13

    Accepted Solution

      Athread:=CreateThread(nil, 0, @list, nil, 0, Thids);
      SetThreadPriority(aThread, THREAD_PRIORITY_HIGHEST)
    LVL 2

    Author Comment

    Thxs :D

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    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…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now