We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用Thread或者HandlerThread时,调用Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND)设置优先级,否则仍然会降低程序响应,因为默认Thread的优先级和主线程相同。
将线程的优先级降低了,就应该降低ANR的概率。“否则仍然会降低程序响应”是不是写反了。
The text was updated successfully, but these errors were encountered:
@Blowing 详细描述下
Sorry, something went wrong.
No branches or pull requests
使用Thread或者HandlerThread时,调用Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND)设置优先级,否则仍然会降低程序响应,因为默认Thread的优先级和主线程相同。
将线程的优先级降低了,就应该降低ANR的概率。“否则仍然会降低程序响应”是不是写反了。
The text was updated successfully, but these errors were encountered: