JackyAndroid / JackyAndroid/AndroidInterview-Q-A
ANR定位和修正
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 8k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
使用Thread或者HandlerThread时,调用Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND)设置优先级,否则仍然会降低程序响应,因为默认Thread的优先级和主线程相同。
将线程的优先级降低了,就应该降低ANR的概率。“否则仍然会降低程序响应”是不是写反了。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the interview answer about Thread or HandlerThread and the Process.setThreadPriority call. Check whether the sentence about program responsiveness is reversed, then correct the wording so the priority change and its effect on ANR risk are stated accurately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100