On 2007-05-13, Gerald Kaszuba <[EMAIL PROTECTED]> wrote: > Hi John > > On May 13, 4:46 pm, John Nagle <[EMAIL PROTECTED]> wrote: >> There's no way to set thread priorities within Python, is there? > > Not exactly. You can however use the ctypes module to access the o/s > methods of pthread_setschedparam() for UNIX and SetThreadPriority() > for Windows. > > I'm not sure why this hasn't been implemented in Python.
AFAICT, Python's threading paradigm seems to be based on the assumption that alls threads spend most of their time blocking on I/O or some other event. In that case priorities don't matter. Priorities only matter if multiple threads are ready to run. -- Grant Edwards [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list