CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Change Priority

  1. #1
    Join Date
    May 1999
    Location
    Mangalore, Karnataka, India
    Posts
    21

    Change Priority

    Hi all ,

    Is it possible to change the priority of a thread while thread is running ? ie we create a thread with a low priority and depending on some event can we assign a higher priority to the same thread?

    TIA
    Srini.



  2. #2
    Join Date
    Jul 1999
    Location
    Moscow, Russia
    Posts
    667

    Re: Change Priority

    You have to use SuspendThread,SetThreadPriority,
    ResumeThread sequence.

    Good luck,

    Oleg




  3. #3
    Join Date
    May 1999
    Location
    Mangalore, Karnataka, India
    Posts
    21

    Re: Change Priority

    Thanx Oleg

    Srini


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured