Help with Optimization of Python software: real-time audio controller

Vasily Sulatskov redvasily at gmail.com
Sun Feb 11 23:14:24 EST 2007


Perhaps boosting priorities for time critical threads will help.

I don't know about MacOS but for Win32 something like that helps:

    thread = win32api.GetCurrentThread()
    win32process.SetThreadPriority(thread,
        win32process.THREAD_PRIORITY_TIME_CRITICAL)

    current_process = win32process.GetCurrentProcess()
    win32process.SetPriorityClass(current_process,
        win32process.REALTIME_PRIORITY_CLASS)





More information about the Python-list mailing list