+ Reply to Thread
Results 1 to 2 of 2

Thread: How to schedule my process at higher priority like (Realtime)?

  1. #1

    How to schedule my process at higher priority like (Realtime)?

    Whenever I saw my application in Task Manager, it says that process is having priority "Normal".

    It also asks if I want to set priority to higher level or not.

    How can I do this programmatically using C/C++?

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    37
    You should consider using "SetPriorityClass" and SetThreadPriority APIs.

    Example:

    Code:
    void SetProcessPriorityToHigh()
    {
    	BOOL result = SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS) ;
    }
    See the process under Task Manager. now you should see "High"!

    Enjoy!

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts