> I tried to make it use pthread_setschedparam on linux. That would seem to be
> the 'right' way to do what Kosaki was trying to do, since it allows you to set a
>  thread priority from another thread. But it caused problems; the test program
> never finished, and wouldn't obey my ^C. So I had to back all that code out. I'll
> keep trying with that idea, since it would be preferable to have the OS handle
> priorities if at all possible.

setschedparam()? no, it's for real time thread mess. please don't use it.