That mechanism only boosts the priority of whatever thread is actually attached to the window in the foreground. This doesn't matter for single-threaded applications (obviously), but means the background threads can get lower priority than the main threads of other applications.