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
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
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
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