Subj : Re: Round Robin scheduling and non priviledged user To : comp.programming.threads From : Joe Seigh Date : Mon Jul 18 2005 09:24 am Alain wrote: > Hello, > I have an application with threads, some of them must have highest priority > than others, so, I decided to modify the scheduling policy to round robin. > It works correctly (it seems), but I am obliged to be administrator when > starting the program. When an normal user (who cannot make a su command) try > to start the program, the function pthread_attr_setschedparam return an > error code (needs proviledge to be used). Is there a possibility to write a > program that changes the scheduling policy without the neccessity to be > administrator. Works with OS X. Use OS X. :) All the scheduling stuff is system dependent. So if you're writing portable programs that are correct you shouldn't have to depend on *any* scheduling stuff. So by "works correctly" I assume you mean something else. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .