set max priority for main thread