cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : UNIX/Linux Programming : Change the thread priority
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Articles
Lounge
Jobs

-

post  Change the thread priority

zahovicudovic
Hello everybody,

does anybody knows how I could change the thread priority?

Thanks...
|
jsmith
If you are using Linuxthreads (pthreads, ie, not NPTL) then you could exploit the non-POSIX compliance of the library by calling sched_setscheduler() or setpriority()
(man 2 sched_setscheduler or man 2 setpriority).
|

Registered users can reply in this forum.
Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us