For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > April 2008 > Nice threads









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Nice threads
Ivan Chernetsky

2008-04-02, 4:45 am

Hi!

It is possible to nice POSIX threads?
Eric Sosman

2008-04-02, 7:42 pm

Ivan Chernetsky wrote:
> Hi!
>
> It is possible to nice POSIX threads?


Try "man -s2 priocntl". Scheduling policies differ
somewhat between Unix implementations, so you may need
to play around a bit to find the combination that works
for you.

--
Eric.Sosman@sun.com
Geoff Clare

2008-04-03, 8:41 am

Ivan Chernetsky wrote:

> It is possible to nice POSIX threads?


Look for information on pthread_attr_setschedparam(),
pthread_attr_setschedpolicy(), pthread_setschedparam()
and pthread_setschedprio().

--
Geoff Clare <netnews@gclare.org.uk>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com