Redirecting certain instruction handlers to main thread