cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
Change the thread priority
Change the thread priority
May 1, 2008 at 8:57pm UTC
zahovicudovic
(1)
Hello everybody,
does anybody knows how I could change the thread priority?
Thanks...
May 2, 2008 at 11:15am UTC
jsmith
(5804)
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).
Topic archived. No new replies allowed.