Re: Setting thread priorities

2007-05-13 Thread Nick Vatamaniuc
On May 13, 2:46 am, John Nagle <[EMAIL PROTECTED]> wrote: >There's no way to set thread priorities within Python, is there? > We have some threads that go compute-bound, and would like to > reduce their priority slightly so the other operations, like > accessing the database and servicing queri

Re: Setting thread priorities

2007-05-13 Thread Grant Edwards
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_setsc

Re: Setting thread priorities

2007-05-13 Thread Gerald Kaszuba
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 su

Setting thread priorities

2007-05-12 Thread John Nagle
There's no way to set thread priorities within Python, is there? We have some threads that go compute-bound, and would like to reduce their priority slightly so the other operations, like accessing the database and servicing queries, aren't slowed as much. John N